[FFmpeg-devel] [PATCH] avformat: Add v210 demuxer
James Almer
jamrial at gmail.com
Sun Nov 8 02:22:34 CET 2015
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
Also, in any case you're missing height.
> + { "framerate", "set frame rate", OFFSET(framerate), AV_OPT_TYPE_VIDEO_RATE, {.str = "25"}, 0, 0, DEC },
Same here, -r. Assuming it works for the input stream.
More information about the ffmpeg-devel
mailing list