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

Måns Rullgård mans
Wed Apr 25 10:20:33 CEST 2007


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?

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

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list