[Ffmpeg-devel] [PATCH] Video generator format
Ramiro Ribeiro Polla
ramiro
Thu Apr 26 17:40:03 CEST 2007
Michael Niedermayer wrote:
> Hi
>
> On Wed, Apr 25, 2007 at 09:58:08PM -0300, Ramiro Ribeiro Polla wrote:
>
>> Hello,
>>
>> Attached demuxer generates sample videos (just like what output_example
>> does) with user supplied size, rate, and pix_fmt.
>>
>> It helps a bunch for testing, specially when different pix_fmts are needed.
>>
>> Test with command line:
>> ./ffmpeg_g -s 640x480 -pix_fmt yuyv422 -r 30 -f video_gen -i xxx output.mpg
>> (filename doesn't matter)
>>
>> Currently all planar and 2 packed yuv formats are supported.
>>
>
> why not support just one pix fmt and use the swscaler to make the others?
>
>
I thought about it, but then decided it would be more didactic this way.
It serves as an example on how to write each pix_fmt directly to a buffer.
Ramiro Polla
More information about the ffmpeg-devel
mailing list