[FFmpeg-devel] [PATCH] avformat: Add v210 demuxer

Calvin Walton calvin.walton at kepstin.ca
Mon Nov 9 19:25:49 CET 2015


On Sat, 2015-11-07 at 22:22 -0300, James Almer wrote:
> On 11/7/2015 9:45 PM, Timothy Gu wrote:
> > +#define OFFSET(x) offsetof(V210DemuxerContext, x)
> > +#define DEC AV_OPT_FLAG_DECODING_PARAM
> > +static const AVOption v210_options[] = {
> > +    { "video_size", "set frame size", OFFSET(width),
> > AV_OPT_TYPE_IMAGE_SIZE, {.str = NULL}, 0, 0, DEC },
> 
> Isn't this what -s is for?
> 
> ffmpeg -s 1280x720 -f v210 -i INPUT

The ffmpeg command-line tool actually maps the "-s" and "-r" input
options to "video_size" and "framerate" respectively on the input
format. This will work automatically.

-- 
Calvin Walton <calvin.walton at kepstin.ca>



More information about the ffmpeg-devel mailing list