[Ffmpeg-devel] Convert failure with RGB565.

Thomas Parmegiani thomasp
Thu Nov 9 17:39:57 CET 2006


> -----Message d'origine-----
> De : ffmpeg-devel-bounces at mplayerhq.hu
> [mailto:ffmpeg-devel-bounces at mplayerhq.hu]De la part de Luca Abeni
> Envoy? : jeudi 9 novembre 2006 17:40
> ? : FFmpeg development discussions and patches
> Objet : RE: [Ffmpeg-devel] Convert failure with RGB565.
>
>
> On Thu, 2006-11-09 at 17:17 +0100, Thomas Parmegiani wrote:
> [...]
> > > So I attached a rawvideo RGB565 file and I try to use the
> > > following command
> > > line :
> > >
> > > ./ffmpeg -i /G/SD720x480-None.avi /G/Test.ts
> > >
> > > Source video is detected as rawvideo RGB565 and the conversion
> > > was possible.
> > > But the converted file is ugly. It seems that a color
> conversion failure
> > > happend. Can anyone help me ?
> >
> > I found a thread with a problem similar to mine which is named
> > "[Ffmpeg-user] Color failure".
> > If anyone has a solution...
> Maybe you should post the full ffmpeg's output (so that people can, for
> example, see which options were used to configure ffmpeg).
> And also explain what "the converted file is ugly" means.
>
> Anyway, it seems to me that the file uses RGB555, and is misdetected as
> RGB565. Maybe someone with better experience on avi can comment on this.

Here is the ffmpeg's output :

./ffmpeg -i /G/TS/Atester/SD720x480-None.avi /G/TS/Test.ts
FFmpeg version SVN-r6530, Copyright (c) 2000-2006 Fabrice Bellard, et al.
  configuration:  --enable-shared --disable-static --enable-memalign-hack --
disable-strip
  libavutil version: 49.0.1
  libavcodec version: 51.16.0
  libavformat version: 50.5.0
  built on Oct 18 2006 15:01:57, gcc: 3.4.2 (mingw-special)
Input #0, avi, from 'g:/TS/Atester/SD720x480-None.avi':
  Duration: 00:00:01.0, start: 0.000000, bitrate: 167274 kb/s
  Stream #0.0, 16683/500000: Video: rawvideo, rgb565, 720x480, 16683/500000,
29.97 fps(r)
  Stream #0.1, 1/48000: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Output #0, mpegts, to 'g:/TS/Test.ts':
  Stream #0.0, 1/90000: Video: mpeg2video, yuv420p, 720x480, 1001/30000,
q=2-31, 200 kb/s, 29.97 fps(c)
  Stream #0.1, 1/90000: Audio: mp2, 48000 Hz, stereo, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
frame=   30 q=31.0 Lsize=     284kB time=1.0 bitrate=2407.6kbits/s
video:223kB audio:8kB global headers:0kB muxing overhead 23.096042%

The resulted file has wrong colors and some noise as if the colors are
shifted.





More information about the ffmpeg-devel mailing list