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.wal...@kepstin.ca> _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel