Why do I receive an "Unrecognized field name 'SampleRate'" error when using "writeall" with MP4 files in R2021b?
Show older comments
I am attempting to use the "writeall" function with the "OutputFormat" as MP4. I am receiving the following error:
Error using matlab.io.datastore.FileDatastore/writeall (line 482)
Unrecognized field name "SampleRate".
My code is as follows:
fds = fileDatastore('myvideo.mp4','ReadFcn',@readfcn,'FileExtensions','.mp4');
location = 's3://mybucket/output/';
writeall(fds,location,'OutputFormat','mp4')
function data = readfcn(file)
data = importdata(file);
end
What is causing this error?
Accepted Answer
More Answers (0)
Categories
Find more on Video Formats and Interfaces in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!