[FFmpeg-user] ljpeg colorspace non auto?

Roger Pack rogerdpack2 at gmail.com
Fri Jun 1 01:01:40 CEST 2012


> 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?

Also saw this when attempting to use the sdl output:

$ ffmpeg -i g.avi -f sdl "SDL output"

ffmpeg version N-40824-g31dfe20 Copyright (c) 2000-2012 the FFmpeg developers
  built on May 19 2012 00:45:59 with gcc 4.6.3
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-runtime-cpudetect --enable-avisynth --enable-bzlib
--enable-frei0r --enable-libass --enable-libcelt
--enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libfreetype --enable-libgsm --enable-libmp3lame
--enable-libnut --enable-libopenjpeg --enable-librtmp
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs
--enable-libxvid --enable-zlib
  libavutil      51. 53.100 / 51. 53.100
  libavcodec     54. 21.101 / 54. 21.101
  libavformat    54.  5.100 / 54.  5.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 74.101 /  2. 74.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 12.100 /  0. 12.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, avi, from 'g.avi':
  Metadata:
    encoder         : Lavf54.5.100
  Duration: 00:00:20.06, start: 0.000000, bitrate: 87088 kb/s
    Stream #0:0: Video: huffyuv (HFYU / 0x55594648), bgra, 600x500, 48
tbr, 48 tbn, 48 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo,
s16, 128 kb/s
[buffer @ 0240c960] w:600 h:500 pixfmt:bgra tb:1/1000000 sar:0/1
sws_param:flags=2
[buffersink @ 021cd180] No opaque field provided
[sdl @ 0240b840] Unsupported pixel format 'bgra', choose one of
yuv420p, yuyv422, or uyvy422.


fix was to manually convert colorspaces: ffmpeg -i g.avi -pix_fmt
yuv420p -f sdl "SDL output"

I'm not sure how to get ljpeg to work the same way, however...

-roger-


More information about the ffmpeg-user mailing list