Reading frame from a 4K video?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
K M Ibrahim Khalilullah
el 31 de Ag. de 2017
Comentada: Cam Salzberger
el 3 de Sept. de 2017
I am reading a 4k video using the following code but all frames are black!
v = VideoReader('video1.mp4');
j=1;
while j<5
video = readFrame(v);
figure,imshow(video);
j=j+1;
end
3 comentarios
Cam Salzberger
el 3 de Sept. de 2017
Hmm, that's odd that you wouldn't get the data, but also wouldn't see a codec error. MATLAB uses the OS' codec's for video reading and writing. Are you able to play the video correctly in Windows Media Player (if on Windows) on the same computer running MATLAB? If you're on Mac, check playing it with Quicktime. If Linux, try any program that uses GStreamer.
formats = VideoReader.getFileFormats()
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!