[FFmpeg-user] ljpeg colorspace non auto?

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Jun 4 20:08:40 CEST 2012


Roger Pack <rogerdpack2 <at> gmail.com> writes:

> ffmpeg.exe -i a10.avi -acodec libmp3lame -vcodec ljpeg affv1.mov
> https://gist.github.com/2838741
> 
> results in:
> [buffer @ 01D4FF80] w:1536 h:600 pixfmt:yuv422p tb:1/1000000 sar:0/1 sws_param:
> [ljpeg @ 034659A0] colorspace not supported in LJPEG
> Error while opening encoder for output stream #0.0 - maybe incorrect
> parameters such as bit_rate, rate, width or height
> 
> "other" codecs will automatically insert a rescaling filter, 
> does this one not?  Any thoughts here?

This is now slightly improved and will work for example 
if the input colour space is rgb24.
Our ljpeg encoder supports yuv420p as an unofficial extension 
(needs -strict -2), so if your input stream is yuv420p 
(or 422 or 444), autodetection will accept it, but the codec 
init function will refuse the colour space if -strict experimental 
was not added.

Carl Eugen



More information about the ffmpeg-user mailing list