45 #define DEFAULT_PASS_LOGFILENAME_PREFIX "ffmpeg2pass"
47 #define MATCH_PER_STREAM_OPT(name, type, outvar, fmtctx, st)\
50 for (i = 0; i < o->nb_ ## name; i++) {\
51 char *spec = o->name[i].specifier;\
52 if ((ret = check_stream_specifier(fmtctx, st, spec)) > 0)\
53 outvar = o->name[i].u.type;\
59 #define MATCH_PER_TYPE_OPT(name, type, outvar, fmtctx, mediatype)\
62 for (i = 0; i < o->nb_ ## name; i++) {\
63 char *spec = o->name[i].specifier;\
64 if (!strcmp(spec, mediatype))\
65 outvar = o->name[i].u.type;\
70 #if CONFIG_VIDEOTOOLBOX
137 int i, *
count = (
int*)(so + 1);
160 memset(o, 0,
sizeof(*o));
177 printf(
"Hardware acceleration methods:\n");
194 char *p = strchr(e->
key,
':');
218 const AVClass *pclass = &
class;
226 "If you are looking for an option to preserve the quality (which is not "
227 "what -%s was for), use -qscale 0 or an equivalent quality factor option.\n",
268 static int opt_map(
void *optctx,
const char *opt,
const char *
arg)
272 int i, negative = 0, file_idx, disabled = 0;
273 int sync_file_idx = -1, sync_stream_idx = 0;
287 if (sync = strchr(
map,
',')) {
289 sync_file_idx = strtol(sync + 1, &sync, 0);
304 "match any streams.\n",
arg);
317 const char *
c =
map + 1;
326 if (allow_unused = strchr(
map,
'?'))
328 file_idx = strtol(
map, &p, 0);
340 *p ==
':' ? p + 1 : p) > 0)
346 *p ==
':' ? p + 1 : p) <= 0)
358 if (sync_file_idx >= 0) {
371 }
else if (disabled) {
373 "To ignore this, add a trailing '?' to the map.\n",
arg);
377 "To ignore this, add a trailing '?' to the map.\n",
arg);
420 n = sscanf(
arg,
"%d.%d.%d:%d.%d",
424 if (
n != 3 &&
n != 5) {
426 "[file.stream.channel|-1][:syncfile:syncstream]\n");
452 if (allow_unused = strchr(mapchan,
'?'))
461 "To ignore this, add a trailing '?' to the map_channel.\n",
479 static int opt_vaapi_device(
void *optctx,
const char *opt,
const char *
arg)
482 const char *prefix =
"vaapi:";
501 if (!strcmp(
arg,
"list")) {
503 printf(
"Supported hardware device types:\n");
543 if (*(++
arg) && *
arg !=
':') {
547 *stream_spec = *
arg ==
':' ?
arg + 1 :
"";
567 char type_in, type_out;
568 const char *istream_spec =
NULL, *ostream_spec =
NULL;
569 int idx_in = 0, idx_out = 0;
575 if (type_out ==
'g' || !*outspec)
577 if (type_out ==
's' || !*outspec)
579 if (type_out ==
'c' || !*outspec)
584 if (type_in ==
'g' || type_out ==
'g')
586 if (type_in ==
's' || type_out ==
's')
588 if (type_in ==
'c' || type_out ==
'c')
595 #define METADATA_CHECK_INDEX(index, nb_elems, desc)\
596 if ((index) < 0 || (index) >= (nb_elems)) {\
597 av_log(NULL, AV_LOG_FATAL, "Invalid %s index %d while processing metadata maps.\n",\
602 #define SET_DICT(type, meta, context, index)\
605 meta = &context->metadata;\
608 METADATA_CHECK_INDEX(index, context->nb_chapters, "chapter")\
609 meta = &context->chapters[index]->metadata;\
612 METADATA_CHECK_INDEX(index, context->nb_programs, "program")\
613 meta = &context->programs[index]->metadata;\
617 default: av_assert0(0);\
620 SET_DICT(type_in, meta_in, ic, idx_in);
621 SET_DICT(type_out, meta_out, oc, idx_out);
624 if (type_in ==
's') {
638 if (type_out ==
's') {
657 struct tm time = *gmtime((time_t*)&recording_timestamp);
658 if (!strftime(
buf,
sizeof(
buf),
"creation_time=%Y-%m-%dT%H:%M:%S%z", &time))
663 "tag instead.\n", opt);
670 const char *
codec_string = encoder ?
"encoder" :
"decoder";
698 char *codec_name =
NULL;
720 const char *hwaccel =
NULL;
721 char *hwaccel_output_format =
NULL;
722 char *codec_tag =
NULL;
724 char *discard_str =
NULL;
750 uint32_t
tag = strtol(codec_tag, &next, 0);
799 if (st->codec->lowres) {
825 if (!strcmp(hwaccel,
"nvdec"))
828 if (!strcmp(hwaccel,
"none"))
830 else if (!strcmp(hwaccel,
"auto"))
868 if (hwaccel_device) {
875 hwaccel_output_format, ic, st);
876 if (hwaccel_output_format) {
880 "format: %s", hwaccel_output_format);
896 char *canvas_size =
NULL;
928 fprintf(stderr,
"Error, both -y and -n supplied. Exiting.\n");
933 if (proto_name && !strcmp(proto_name,
"file") &&
avio_check(filename, 0) == 0) {
935 fprintf(stderr,
"File '%s' already exists. Overwrite ? [y/N] ", filename);
938 signal(SIGINT, SIG_DFL);
952 if (proto_name && !strcmp(proto_name,
"file")) {
957 if (!strcmp(filename, file->
ctx->
url)) {
1010 char * data_codec_name =
NULL;
1011 int scan_all_pmts_set = 0;
1035 if (!strcmp(filename,
"-"))
1039 strcmp(filename,
"/dev/stdin");
1087 if (data_codec_name)
1102 scan_all_pmts_set = 1;
1112 if (scan_all_pmts_set)
1129 for (
i = 0;
i < orig_nb_streams;
i++)
1168 int64_t seek_timestamp = timestamp;
1171 int dts_heuristic = 0;
1179 if (dts_heuristic) {
1241 "input file #%d (%s) is not a decoding option.\n", e->
key,
1248 "input file #%d (%s) has not been used for any stream. The most "
1249 "likely reason is either wrong type (e.g. a video option with "
1250 "no video streams) or that it is a private option of some decoder "
1251 "which was not actually used for any stream.\n", e->
key,
1294 char filename[1000];
1295 const char *
base[3] = { getenv(
"AVCONV_DATADIR"),
1304 snprintf(filename,
sizeof(filename),
"%s%s/%s-%s.avpreset",
base[
i],
1305 i != 1 ?
"" :
"/.avconv", codec_name, preset_name);
1309 snprintf(filename,
sizeof(filename),
"%s%s/%s.avpreset",
base[
i],
1310 i != 1 ?
"" :
"/.avconv", preset_name);
1320 char *codec_name =
NULL;
1330 "output stream #%d:%d. Default encoder for format %s (codec %s) is "
1331 "probably disabled. Please choose an encoder manually.\n",
1336 }
else if (!strcmp(codec_name,
"copy"))
1337 ost->stream_copy = 1;
1342 ost->encoding_needed = !
ost->stream_copy;
1345 ost->stream_copy = 1;
1346 ost->encoding_needed = 0;
1357 const char *bsfs =
NULL, *time_base =
NULL;
1358 char *next, *codec_tag =
NULL;
1389 if (!
ost->enc_ctx) {
1393 ost->enc_ctx->codec_type =
type;
1396 if (!
ost->ref_par) {
1411 if (!
buf[0] ||
buf[0] ==
'#') {
1415 if (!(
arg = strchr(
buf,
'='))) {
1422 }
while (!
s->eof_reached);
1427 "Preset %s specified for stream %d:%d, but could not be opened.\n",
1443 q.
num <= 0 || q.
den <= 0) {
1458 ost->enc_timebase = q;
1461 ost->max_frames = INT64_MAX;
1471 ost->copy_prior_start = -1;
1475 while (bsfs && *bsfs) {
1477 char *bsf, *bsf_options_str, *bsf_name;
1482 bsf_name =
av_strtok(bsf,
"=", &bsf_options_str);
1493 ost->nb_bitstream_filters + 1,
1494 sizeof(*
ost->bsf_ctx));
1504 ost->nb_bitstream_filters++;
1506 if (bsf_options_str &&
filter->priv_class) {
1508 const char * shorthand[2] = {
NULL};
1511 shorthand[0] = opt->
name;
1527 uint32_t
tag = strtol(codec_tag, &next, 0);
1531 ost->enc_ctx->codec_tag =
tag;
1543 ost->max_muxing_queue_size = 128;
1558 ost->source_index = source_index;
1559 if (source_index >= 0) {
1567 if (!
ost->muxing_queue)
1576 const char *p = str;
1624 if (
ost->filters_script &&
ost->filters) {
1630 if (
ost->filters_script)
1632 else if (
ost->filters)
1642 if (
ost->filters_script ||
ost->filters) {
1644 "%s '%s' was defined for %s output stream %d:%d but codec copy was selected.\n"
1645 "Filtering and streamcopy cannot be used together.\n",
1646 ost->filters ?
"Filtergraph" :
"Filtergraph script",
1647 ost->filters ?
ost->filters :
ost->filters_script,
1658 char *frame_rate =
NULL, *frame_aspect_ratio =
NULL;
1662 video_enc =
ost->enc_ctx;
1673 if (frame_aspect_ratio) {
1676 q.
num <= 0 || q.
den <= 0) {
1680 ost->frame_aspect_ratio = q;
1686 av_log(
NULL,
AV_LOG_ERROR,
"Only '-vf %s' read, ignoring remaining -vf options: Use ',' to separate filters\n",
ost->filters);
1688 if (!
ost->stream_copy) {
1689 const char *p =
NULL;
1691 char *frame_pix_fmt =
NULL;
1692 char *intra_matrix =
NULL, *inter_matrix =
NULL;
1693 char *chroma_intra_matrix =
NULL;
1705 if (frame_pix_fmt && *frame_pix_fmt ==
'+') {
1706 ost->keep_pix_fmt = 1;
1707 if (!*++frame_pix_fmt)
1708 frame_pix_fmt =
NULL;
1727 if (chroma_intra_matrix) {
1746 for (
i = 0; p;
i++) {
1748 int e = sscanf(p,
"%d,%d,%d", &
start, &
end, &q);
1792 if (
ost->logfile_prefix &&
1797 char logfilename[1024];
1800 snprintf(logfilename,
sizeof(logfilename),
"%s-%d.log",
1801 ost->logfile_prefix ?
ost->logfile_prefix :
1804 if (!strcmp(
ost->enc->name,
"libx264")) {
1808 char *logbuffer =
read_file(logfilename);
1821 "Cannot write log file '%s' for pass-1 encoding: %s\n",
1822 logfilename, strerror(errno));
1831 if (
ost->forced_keyframes)
1836 ost->top_field_first = -1;
1847 if (
ost->stream_copy)
1863 audio_enc =
ost->enc_ctx;
1869 av_log(
NULL,
AV_LOG_ERROR,
"Only '-af %s' read, ignoring remaining -af options: Use ',' to separate filters\n",
ost->filters);
1871 if (!
ost->stream_copy) {
1872 char *sample_fmt =
NULL;
1895 if ((
map->ofile_idx == -1 ||
ost->file_index ==
map->ofile_idx) &&
1896 (
map->ostream_idx == -1 ||
ost->st->
index ==
map->ostream_idx)) {
1899 if (
map->channel_idx == -1) {
1901 }
else if (
ost->source_index < 0) {
1911 ost->audio_channels_mapped + 1,
1912 sizeof(*
ost->audio_channels_map)
1916 ost->audio_channels_map[
ost->audio_channels_mapped++] =
map->channel_idx;
1922 if (
ost->stream_copy)
1933 if (!
ost->stream_copy) {
1946 if (!
ost->stream_copy) {
1957 ost->stream_copy = 1;
1970 subtitle_enc =
ost->enc_ctx;
1976 if (!
ost->stream_copy) {
1998 p = strchr(idx_str,
':');
2001 "Invalid value '%s' for option '%s', required syntax is 'index:value'\n",
2024 for (
i = 0;
i <
is->nb_chapters;
i++) {
2029 int64_t rt = (
ofile->recording_time == INT64_MAX) ? INT64_MAX :
2033 if (in_ch->
end < ts_off)
2035 if (rt != INT64_MAX && in_ch->
start > rt + ts_off)
2042 out_ch->id = in_ch->
id;
2044 out_ch->start =
FFMAX(0, in_ch->
start - ts_off);
2045 out_ch->end =
FFMIN(rt, in_ch->
end - ts_off);
2060 switch (ofilter->
type) {
2069 ost->source_index = -1;
2070 ost->filter = ofilter;
2075 if (
ost->stream_copy) {
2077 "which is fed from a complex filtergraph. Filtering and streamcopy "
2078 "cannot be used together.\n",
ost->file_index,
ost->
index);
2082 if (
ost->avfilter && (
ost->filters ||
ost->filters_script)) {
2083 const char *opt =
ost->filters ?
"-vf/-af/-filter" :
"-filter_script";
2085 "%s '%s' was specified through the %s option "
2086 "for output stream %d:%d, which is fed from a complex filtergraph.\n"
2087 "%s and -filter_complex cannot be used together for the same stream.\n",
2088 ost->filters ?
"Filtergraph" :
"Filtergraph script",
2089 ost->filters ?
ost->filters :
ost->filters_script,
2118 int format_flags = 0;
2148 if (!strcmp(filename,
"-"))
2182 switch (ofilter->
type) {
2197 int area = 0, idx = -1;
2222 int best_score = 0, idx = -1;
2231 score > best_score) {
2250 int input_props = 0, output_props = 0;
2255 if (input_descriptor)
2257 if (output_descriptor)
2260 input_props & output_props ||
2262 input_descriptor && output_descriptor &&
2263 (!input_descriptor->
props ||
2264 !output_descriptor->
props)) {
2288 if (
map->linklabel) {
2297 if (
out && !strcmp(
out->name,
map->linklabel)) {
2306 "in any defined filter graph, or was already used elsewhere.\n",
map->linklabel);
2316 map->file_index,
map->stream_index);
2342 "Cannot map stream #%d:%d - unsupported type.\n",
2343 map->file_index,
map->stream_index);
2346 "If you want unsupported types ignored instead "
2347 "of failing, please use the -ignore_unknown option\n"
2348 "If you want them copied, please use -copy_unknown\n");
2354 +
map->sync_stream_index];
2386 ost->stream_copy = 0;
2396 #if FF_API_LAVF_AVCTX
2401 if ((
ost->stream_copy ||
ost->attachment_filename)
2438 "output file #%d (%s) is not an encoding option.\n", e->
key,
2445 if (!strcmp(e->
key,
"gop_timecode"))
2449 "output file #%d (%s) has not been used for any stream. The most "
2450 "likely reason is either wrong type (e.g. a video option with "
2451 "no video streams) or that it is a private option of some encoder "
2452 "which was not actually used for any stream.\n", e->
key,
2461 if (
ost->encoding_needed &&
ost->source_index >= 0) {
2470 "Error initializing a simple filtergraph between streams "
2482 switch (
ost->enc_ctx->codec_type) {
2484 f->frame_rate =
ost->frame_rate;
2485 f->width =
ost->enc_ctx->width;
2486 f->height =
ost->enc_ctx->height;
2488 f->format =
ost->enc_ctx->pix_fmt;
2489 }
else if (
ost->enc->pix_fmts) {
2496 memcpy(
f->formats,
ost->enc->pix_fmts, (
count + 1) *
sizeof(*
f->formats));
2501 f->format =
ost->enc_ctx->sample_fmt;
2502 }
else if (
ost->enc->sample_fmts) {
2509 memcpy(
f->formats,
ost->enc->sample_fmts, (
count + 1) *
sizeof(*
f->formats));
2511 if (
ost->enc_ctx->sample_rate) {
2512 f->sample_rate =
ost->enc_ctx->sample_rate;
2513 }
else if (
ost->enc->supported_samplerates) {
2515 while (
ost->enc->supported_samplerates[
count])
2518 if (!
f->sample_rates)
2520 memcpy(
f->sample_rates,
ost->enc->supported_samplerates,
2521 (
count + 1) *
sizeof(*
f->sample_rates));
2523 if (
ost->enc_ctx->channels) {
2525 }
else if (
ost->enc->channel_layouts) {
2527 while (
ost->enc->channel_layouts[
count])
2530 if (!
f->channel_layouts)
2532 memcpy(
f->channel_layouts,
ost->enc->channel_layouts,
2533 (
count + 1) *
sizeof(*
f->channel_layouts));
2550 "No input streams but output needs an input stream\n");
2579 av_log(
NULL,
AV_LOG_FATAL,
"Invalid input file index %d while processing metadata maps\n", in_file_index);
2583 in_file_index >= 0 ?
2635 const char *to_dealloc = p2;
2650 if (!strcmp(
key,
"program_num"))
2651 progid = strtol(p2,
NULL, 0);
2661 const char *to_dealloc = p2;
2670 "No '=' character in program string %s.\n",
2678 if (!strcmp(
key,
"title")) {
2680 }
else if (!strcmp(
key,
"program_num")) {
2681 }
else if (!strcmp(
key,
"st")) {
2682 int st_num = strtol(p2,
NULL, 0);
2697 const char *stream_spec;
2717 ost->rotate_overridden = 1;
2718 ost->rotate_override_value = theta;
2761 static const char *
const frame_rates[] = {
"25",
"30000/1001",
"24000/1001" };
2763 if (!strncmp(
arg,
"pal-", 4)) {
2766 }
else if (!strncmp(
arg,
"ntsc-", 5)) {
2769 }
else if (!strncmp(
arg,
"film-", 5)) {
2786 }
else if ((fr == 29970) || (fr == 23976)) {
2806 if (!strcmp(
arg,
"vcd")) {
2833 }
else if (!strcmp(
arg,
"svcd")) {
2855 }
else if (!strcmp(
arg,
"dvd")) {
2877 }
else if (!strncmp(
arg,
"dv", 2)) {
2883 norm ==
PAL ?
"yuv420p" :
"yuv411p",
options);
2910 time_t today2 = time(
NULL);
2911 struct tm *today = localtime(&today2);
2918 snprintf(filename,
sizeof(filename),
"vstats_%02d%02d%02d.log", today->tm_hour, today->tm_min,
2965 char filename[1000],
line[1000], tmp_line[1000];
2966 const char *codec_name =
NULL;
2973 if(!strncmp(
arg,
"libx264-lossless", strlen(
"libx264-lossless"))){
2981 char *
key = tmp_line, *
value, *endptr;
2983 if (strcspn(
line,
"#\n\r") == 0)
3022 if(!strcmp(opt,
"ab")){
3025 }
else if(!strcmp(opt,
"b")){
3039 if(!strcmp(opt,
"qscale")){
3052 if(!strcmp(opt,
"profile")){
3099 char layout_str[32];
3118 stream_str = strchr(opt,
':');
3119 ac_str_size = 3 + (stream_str ? strlen(stream_str) : 0);
3174 int show_advanced = 0, show_avoptions = 0;
3177 if (!strcmp(opt,
"long"))
3179 else if (!strcmp(opt,
"full"))
3180 show_advanced = show_avoptions = 1;
3188 " -h -- print basic options\n"
3189 " -h long -- print more options\n"
3190 " -h full -- print all options (including all format and codec specific options, very long)\n"
3191 " -h type=name -- print all options for the named decoder/encoder/demuxer/muxer/filter/bsf\n"
3192 " See man %s for detailed description of the options.\n"
3199 "instead of just one file:",
3227 if (show_avoptions) {
3234 #if CONFIG_SWRESAMPLE
3256 [GROUP_INFILE] = {
"input url",
"i",
OPT_INPUT },
3274 "%s.\n", inout,
g->arg);
3299 memset(&octx, 0,
sizeof(octx));
3351 static int opt_progress(
void *optctx,
const char *opt,
const char *
arg)
3356 if (!strcmp(
arg,
"-"))
3368 #define OFFSET(x) offsetof(OptionsContext, x)
3374 "force format",
"fmt" },
3376 "overwrite output files" },
3378 "never overwrite output files" },
3380 "Ignore unknown stream types" },
3382 "Copy unknown stream types" },
3385 "codec name",
"codec" },
3388 "codec name",
"codec" },
3391 "preset name",
"preset" },
3394 "set input stream mapping",
3395 "[-]input_file_id[:stream_specifier][,sync_file_id[:stream_specifier]]" },
3397 "map an audio channel from one stream to another",
"file.stream.channel[:syncfile.syncstream]" },
3400 "set metadata information of outfile from infile",
3401 "outfile[,metadata]:infile[,metadata]" },
3404 "set chapters mapping",
"input_file_index" },
3407 "record or transcode \"duration\" seconds of audio/video",
3410 "record or transcode stop time",
"time_stop" },
3412 "set the limit file size in bytes",
"limit_size" },
3415 "set the start time offset",
"time_off" },
3418 "set the start time offset relative to EOF",
"time_off" },
3421 "enable/disable seeking by timestamp with -ss" },
3424 "enable/disable accurate seeking with -ss" },
3427 "set the input ts offset",
"time_off" },
3430 "set the input ts scale",
"scale" },
3432 "set the recording timestamp ('now' to set the current time)",
"time" },
3434 "add metadata",
"string=string" },
3436 "add program with specified streams",
"title=string:st=number..." },
3439 "set the number of data frames to output",
"number" },
3441 "add timings for benchmarking" },
3443 "add timings for each task" },
3445 "write program-readable progress information",
"url" },
3447 "enable or disable interaction on standard input" },
3449 "set max runtime in seconds",
"limit" },
3451 "dump each input packet" },
3453 "when dumping packets, also dump the payload" },
3456 "read input at native frame rate",
"" },
3458 "specify target file type (\"vcd\", \"svcd\", \"dvd\", \"dv\" or \"dv50\" "
3459 "with optional prefixes \"pal-\", \"ntsc-\" or \"film-\")",
"type" },
3461 "video sync method",
"" },
3463 "frame drop threshold",
"" },
3465 "audio sync method",
"" },
3467 "audio drift threshold",
"threshold" },
3469 "copy timestamps" },
3471 "shift input timestamps to start at 0 when using copyts" },
3473 "copy input stream time base when stream copying",
"mode" },
3476 "finish encoding within shortest input" },
3484 "timestamp discontinuity delta threshold",
"threshold" },
3486 "timestamp error delta threshold",
"threshold" },
3488 "exit on error",
"error" },
3490 "abort on the specified condition flags",
"flags" },
3493 "copy initial non-keyframes" },
3495 "copy or discard frames before start time" },
3497 "set the number of frames to output",
"number" },
3500 "force codec tag/fourcc",
"fourcc/tag" },
3503 "use fixed quality scale (VBR)",
"q" },
3506 "use fixed quality scale (VBR)",
"q" },
3508 "set profile",
"profile" },
3510 "set stream filtergraph",
"filter_graph" },
3512 "number of non-complex filter threads" },
3514 "read stream filtergraph description from a file",
"filename" },
3516 "reinit filtergraph on input parameter changes",
"" },
3518 "create a complex filtergraph",
"graph_description" },
3520 "number of threads for -filter_complex" },
3522 "create a complex filtergraph",
"graph_description" },
3524 "read complex filtergraph description from a file",
"filename" },
3526 "print progress report during encoding", },
3529 "add an attachment to the output file",
"filename" },
3532 "extract an attachment into a file",
"filename" },
3534 OPT_OFFSET, { .off =
OFFSET(
loop) },
"set number of times input stream shall be looped",
"loop count" },
3536 "print timestamp debugging info" },
3538 "ratio of errors (0.0: no errors, 1.0: 100% errors) above which ffmpeg returns an error instead of success.",
"maximum error rate" },
3544 "disposition",
"" },
3546 { .off =
OFFSET(thread_queue_size) },
3547 "set the maximum number of queued packets from the demuxer" },
3549 "read and decode the streams to fill missing information with heuristics" },
3553 "set the number of video frames to output",
"number" },
3556 "set frame rate (Hz value, fraction or abbreviation)",
"rate" },
3559 "set frame size (WxH or abbreviation)",
"size" },
3562 "set aspect ratio (4:3, 16:9 or 1.3333, 1.7777)",
"aspect" },
3565 "set pixel format",
"format" },
3567 "set the number of bits per raw sample",
"number" },
3569 "deprecated use -g 1" },
3574 "rate control override for specific intervals",
"override" },
3577 "force video codec ('copy' to copy stream)",
"codec" },
3583 "set initial TimeCode value.",
"hh:mm:ss[:;.]ff" },
3585 "select the pass number (1 to 3)",
"n" },
3588 "select two pass log file name prefix",
"prefix" },
3590 "this option is deprecated, use the yadif filter instead" },
3592 "calculate PSNR of compressed frames" },
3594 "dump video coding statistics to file" },
3596 "dump video coding statistics to file",
"file" },
3598 "Version of the vstats format to use."},
3600 "set video filters",
"filter_graph" },
3603 "specify intra matrix coeffs",
"matrix" },
3606 "specify inter matrix coeffs",
"matrix" },
3609 "specify intra matrix coeffs",
"matrix" },
3612 "top=1/bottom=0/auto=-1 field first",
"" },
3615 "force video tag/fourcc",
"fourcc/tag" },
3617 "show QP histogram" },
3620 "force the selected framerate, disable the best supported framerate selection" },
3623 "set the value of an outfile streamid",
"streamIndex:value" },
3626 "force key frames at specified timestamps",
"timestamps" },
3628 "audio bitrate (please use -b:a)",
"bitrate" },
3630 "video bitrate (please use -b:v)",
"bitrate" },
3633 "use HW accelerated decoding",
"hwaccel name" },
3636 "select a device for HW acceleration",
"devicename" },
3639 "select output format used with HW accelerated decoding",
"format" },
3640 #if CONFIG_VIDEOTOOLBOX
3644 "show available HW acceleration methods" },
3647 "automatically insert correct rotate filters" },
3651 "set the number of audio frames to output",
"number" },
3653 "set audio quality (codec-specific)",
"quality", },
3656 "set audio sampling rate (in Hz)",
"rate" },
3659 "set number of audio channels",
"channels" },
3664 "force audio codec ('copy' to copy stream)",
"codec" },
3667 "force audio tag/fourcc",
"fourcc/tag" },
3669 "change audio volume (256=normal)" ,
"volume" },
3672 "set sample format",
"format" },
3675 "set channel layout",
"layout" },
3677 "set audio filters",
"filter_graph" },
3679 "set the maximum number of channels to try to guess the channel layout" },
3683 "disable subtitle" },
3685 "force subtitle codec ('copy' to copy stream)",
"codec" },
3687 ,
"force subtitle tag/fourcc",
"fourcc/tag" },
3689 "fix subtitles duration" },
3691 "set canvas size (WxH or abbreviation)",
"size" },
3695 "deprecated, use -channel",
"channel" },
3697 "deprecated, use -standard",
"standard" },
3702 "set the maximum demux-decode delay",
"seconds" },
3704 "set the initial demux-decode delay",
"seconds" },
3706 "specify a file in which to print sdp information",
"file" },
3709 "set the desired time base hint for output stream (1:24, 1:48000 or 0.04166, 2.0833e-5)",
"ratio" },
3711 "set the desired time base for the encoder (1:24, 1:48000 or 0.04166, 2.0833e-5). "
3712 "two special values are defined - "
3713 "0 = use frame rate (video) or sample rate (audio),"
3714 "-1 = match source time base",
"ratio" },
3717 "A comma-separated list of bitstream filters",
"bitstream_filters" },
3719 "deprecated",
"audio bitstream_filters" },
3721 "deprecated",
"video bitstream_filters" },
3724 "set the audio options to the indicated preset",
"preset" },
3726 "set the video options to the indicated preset",
"preset" },
3728 "set the subtitle options to the indicated preset",
"preset" },
3730 "set options from indicated preset file",
"filename" },
3733 "maximum number of packets that can be buffered while waiting for all streams to initialize",
"packets" },
3737 "force data codec ('copy' to copy stream)",
"codec" },
3743 "set VAAPI hardware device (DRM path or X11 display name)",
"device" },
3748 "set QSV hardware device (DirectX adapter index, DRM path or X11 display name)",
"device"},
3752 "initialise hardware device",
"args" },
3754 "set hardware device used when filtering",
"device" },