I encoding video with program HandBrake. Then I read this video in Matlab and everything works properly. I encoding video with program ffmpeg. Matlab reads only black frames. Both encoders are h.264 (mp4). Both videos play fine in VLC.
ffmpeg code:
ffmpeg -i Barrier.avi -c:v libx264 -b:v 500k outputt5.mp4
Best Answer