Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 801
satheesh Avatar asked Feb 26 '23 23:02

satheesh


1 Answers

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.

like image 144
Paul Gregoire Avatar answered Mar 13 '23 02:03

Paul Gregoire