Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I can convert avi, wmv and other video files easilly, but not this format. I`ve looked for some info how to convert mjpg files with ffmpeg and found nothing.

As this format is widely used in web cameras I need to handle this and think answer how to convert it will be usefull to everybody.

share|improve this question

2 Answers 2

If you are referring to the m-jpeg format.
It might be a good idea to convert it to a regular mpg file and then to FLV.

This HOWTO is a good read if you are playing with ffmpeg.

share|improve this answer
    
really thanks for your answer! I knew a lot of information from that link. But still need to know hot to convert video from mjpg to mpg with ffmpeg? I dont mind to convert in two steps, just when I tried to convert it to mpg I got the following error:doesnt support 15/1 fps. my conversion string is the following: ffmpeg -i in.avi -out.mpg. I also tried ffmpeg -in.avi -sameq -r x -y out.mpg where x was from 1 to 15 and it didn`t work. Any ideas? –  Yaroslav Yakovlev Aug 26 '09 at 10:42

m-jpeg is not one standard format. It is a group of formats that use a series of jpegs to store the frames of your video. Each implementation of this is propriotary and generally incompatible. So basically you need the codec from manufacturer of the camera (which will likely only be available for windows) and then you can use something like virtualdub to reencode it into a standard format.

ffmpeg won't use windows codecs so is not the ideal tool to use in this case.

I would highly recommend against converting to an mpg and then to an flv as reencoding twice incurs a big loss in quality over recoding directly. If you need to do it in 2 steps then the intermediate format should be uncompressed or a lossless format such as huffyuv.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.