[Ffmpeg-devel] [PATCH] add .rgb extension for raw video format

Benoit Fouet benoit.fouet
Wed Apr 25 10:30:35 CEST 2007


M?ns Rullg?rd wrote:
> Benoit Fouet <benoit.fouet at purplelabs.com> writes:
>
>   
>> Hi,
>>
>> to be able to launch "ffmpeg -f x11grab -s cif -i :0.0 -y out.rgb", as
>> raw format for x11 grab is rgb565
>>     
>
> Doesn't the raw format depend on the X configuration?
>
>   
very likely, my X knowledge is very limited though...

>> Index: libavformat/raw.c
>> ===================================================================
>> --- libavformat/raw.c	(revision 8802)
>> +++ libavformat/raw.c	(working copy)
>> @@ -862,7 +862,7 @@
>>      "rawvideo",
>>      "raw video format",
>>      NULL,
>> -    "yuv",
>> +    "yuv,rgb",
>>      0,
>>      CODEC_ID_NONE,
>>      CODEC_ID_RAWVIDEO,
>>     
>
> As much as I dislike that design, the patch looks OK to me.
>
>   
actually, this is just meant to allow .rgb extensions

-- 
Purple Labs S.A.
www.purplelabs.com




More information about the ffmpeg-devel mailing list