Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I want create streaming server to stream mjpeg file. I get the help of this project[^]
Now, I want to create images from a video file ( mjpeg). By using ffmpeg I am able to get images from video file like mp4, flv, wmv & successfully stream the file. The command that I using for this

ffmpeg -i E:\Video\wmvSample.wmv -r 0.25 -f image2 E:\Video\image\image%3d.jpg

But when use above command for mjpeg file like

ffmpeg -i E:\Video\video_finale.mjpeg -r 0.25 -f image2 E:\Video\image\image%3d.jpg

then it gives error "could not find the codec parameter". Any idea to solve this problem?
Thanks
Posted
Comments
Bjørn 9-Apr-15 9:43am    
Hello, have you checked, if your file is recognized as a MJPEG file? I've downloaded a sample MJPEG avi vom http://jjc.freeshell.org/turning_pages.html because I haven't worked with that yet and your command works fine with it. Perhaps you could try ffprobe.exe to see if ffmpeg can read it at all. You can use something like this:

ffprobe.exe -hide_banner -show_format -show_streams -pretty video_finale.mjpeg

For the sample file I get this information for the video stream:

[STREAM]
index=0
codec_name=mjpeg
codec_long_name=MJPEG (Motion JPEG)
profile=unknown
codec_type=video
codec_time_base=33333/500000
codec_tag_string=MJPG
codec_tag=0x47504a4d
...
[/STREAM]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900