4

I hava a java program to stream mjpeg files.I am not able to find mjpeg file anywhere.can anyone help me how to get the file.Or tell me how to convert a file to mjpeg format? I have tried converting an avi file to mjpeg using total video converter but it didnt work.

1

2 Answers 2

13

Use ffmpeg like so:

ffmpeg -i input.mpg -vcodec mjpeg -qscale 1 -an output.avi

Just substitute the input file with the one of your choice.

Sign up to request clarification or add additional context in comments.

Comments

1

you can use mencoder and libavc:

mencoder input.mp4 -o output.mjpeg -ovc lavc -lavcopts vcodec=mjpeg -oac=copy 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.