[FFmpeg-devel] [RFC][PATCH] Fix decoding of QT WRAW file fromticket #108

Stefano Sabatini stefano.sabatini-lala at poste.it
Mon May 16 17:07:40 CEST 2011


On date Monday 2011-05-16 03:50:30 +0200, ami_stuff encoded:
> Hi,
> 
> > Not sure this is right. WRAW in AVI is used for paletted video, this
> > may force the flip of files which are currently decoded correctly.
> > 
> > Or in other words, can you show some docs which document what's the
> > assumed meaning of that tag in MOV?
> 
> This seems to be "Windows RAW", but I can't find any more useful inforamtions
> (when video should be flipped etc.).
> 
> Here is an old thread about the same problem:
> 
> http://ffmpeg.org/pipermail/ffmpeg-devel/2009-July/069984.html
> 
> Feel free to modify the patch as you like to support correctly the file which I uploaded.

So resuming:
* in AVI, WRAW is paletted 8-bit

* in MOV, it means Windows RAW and it means rawvideo stream, the exact
  format depends on pix_fmt_bps_mov.

Or maybe WRAW in AVI is rawvideo as well (according to
pix_fmt_bps_mov), but the only analyzed sample was paletted so we
didn't check on pix_fmt_bps_avi.

As for the flipping, I have no ideas nor samples, so I don't know when
we're assumed to flip it, according to Michael:

http://ffmpeg.org/pipermail/ffmpeg-devel/2009-July/070210.html

|all rgb should be fliped unless height<0 or so IIRC

Also should it be RGB or BGR?

>From here:
http://developer.apple.com/library/mac/#documentation/QuickTime/QTFF/QTFFChap3/qtff3.html
http://wiki.multimedia.cx/index.php?title=Raw_RGB

I couldn't find relevant information, nor in fourcc.org.
-- 
FFmpeg = Faithless & Fantastic Maxi Puritan Exuberant Glue


More information about the ffmpeg-devel mailing list