[FFmpeg-user] Can you encode lossless Motion JPEG 2000 videos with ffmpeg using the right command line arguments?

Gabri Nurtinaz Shally gabri.ns at gmail.com
Tue Jun 19 03:17:20 CEST 2012


On Jun 19, 2012 8:00 AM, "Shyamal Chandra" <shyamalc at gmail.com> wrote:
>
> Hi,
>
> Can you encode lossless Motion JPEG videos with ffmpeg using the right
> command line arguments?
>
> I want to convert an uncompressed AVI into a lossless Motion JPEG 2000.
>

yes, you can, since mjpeg can be found in "ffmpeg -codecs" output. you can
try:
ffmpeg -i yourfile.avi -vcodec mjpeg -acodec copy output.mkv

FYI, JPEG itself is a lossy format, so overall it is not a lossless video.
for me, i'll choose h264 for same bitrate.


More information about the ffmpeg-user mailing list