GNOME Bugzilla – Bug 327075
[qtdemux] add support for palettized SMC videos
Last modified: 2006-05-03 21:51:23 UTC
I have a QuickTime (.mov) file with fourcc 'SMC ' and a 256-colour palette. This does not play with current GStreamer. This patch adds support for that file. Actually, it should add support for all QuickTime with 256-colour or 256-shades-of-gray palettes, but I do not have files to test the general case.
Created attachment 57406 [details] [review] Patch to add support for QuickTime SMC files and QuickTime 256-colour palette files
While writing the patch, I looked a lot at FFmpeg's code (especially mov.c and qtpalette.h in libavformat). However this should not present license problems as FFmpeg is LGPL'ed
Any chance you could make that file that you have available to us for testing?
Committed with the following changes: - reformat default palette tables to make full use of the line width instead of using up one line for each value - use palette data directly for palette buffer, without copying the data - use 32-bit integers for the palette tables, not ints (otherwise the palette data won't be picked up correctly on 64-bit architectures, will it?) Thanks for the patch! 2006-02-24 Tim-Philipp Müller <tim at centricular dot net> * gst/qtdemux/qtdemux.c: (gst_qtdemux_add_stream), (qtdemux_parse_trak), (qtdemux_video_caps): Add support for palettised Apple SMC videos (#327075, based on patch by: Fabrizio Gennari <fabrizio dot ge at tiscali dot it>).