satheesh
satheesh

Reputation: 1451

converting video to mjpeg file format

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.

Upvotes: 4

Views: 12177

Answers (2)

Jasen
Jasen

Reputation: 12412

you can use mencoder and libavc:

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

Upvotes: 0

Paul Gregoire
Paul Gregoire

Reputation: 9793

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.

Upvotes: 13

Related Questions