How can i read mjpeg video?
Show older comments
Hello, I'm struggling with reading mp4 files.
I firstly had an error using VideoReader to read my video file(.mp4). After i downloaded Windows Media Codec, I don't get the error message. But the Numframe is empty.
Filename = 'world.mp4';
vid = VideoReader(Filename)
vid =
VideoReader - 속성 있음:
일반 속성(general):
Name: 'world.mp4'
Path: 'C:\Users\Lee\Desktop\Content\VD\code'
Duration: 180.3010
CurrentTime: 180.3010
NumFrames: <계산 중(calculating)...> 자세히 알아보기
비디오 속성(video):
Width: 1280
Height: 720
FrameRate: 59.9402
BitsPerPixel: 24
VideoFormat: 'RGB24'
So I used
info = mmfileinfo('world.mp4')
and it says that the video format is 'mp4v' and i haven't heared of this.(I guess that this video is Motion JPEG, but i am not sure)
Which code should i use to decode mjpeg video? ( or if i have to use ffmpeg, can you please tell me what should i do?)
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!