History

Merge commit '746dca483a2f0f2639265f6e1c0085c8861875a1'

* commit '746dca483a2f0f2639265f6e1c0085c8861875a1': avconv: support forcing codec tags for input streams Conflicts: doc/ffmpeg.texi

Michael Niedermayer committed 12 years ago

Commit cc6cc842 parents 3f3d748 746dca42 files · +4 −3Browse files

Unified · Split

2 files
  1. doc/ffmpeg.texi +1 −1
  2. ffmpeg_opt.c +3 −2
doc/ffmpeg.texi+1−1
@@ -1042,7 +1042,7 @@ ffmpeg -i h264.mp4 -c:v copy -bsf:v h264_mp4toannexb -an out.h264 · 1041 unmodified lines
10421042 ffmpeg -i file.mov -an -vn -bsf:s mov2textsub -c:s copy -f rawvideo sub.txt
10431043 @end example
10441044
1045−@item -tag[:@var{stream_specifier}] @var{codec_tag} (@emph{per-stream})
1045+@item -tag[:@var{stream_specifier}] @var{codec_tag} (@emph{input/output,per-stream})
10461046 Force a tag/fourcc for matching streams.
10471047
10481048 @item -timecode @var{hh}:@var{mm}:@var{ss}SEP@var{ff}
ffmpeg_opt.c+3−2
@@ -559,13 +559,14 @@ static AVCodec *choose_decoder(OptionsContext *o, AVFormatContext *s, AVStream * · 558 unmodified lines
559559 static void add_input_streams(OptionsContext *o, AVFormatContext *ic)
560560 {
561561 int i;
562− char *next, *codec_tag = NULL;
563562
564563 for (i = 0; i < ic->nb_streams; i++) {
565564 AVStream *st = ic->streams[i];
566565 AVCodecContext *dec = st->codec;
567566 InputStream *ist = av_mallocz(sizeof(*ist));
568567 char *framerate = NULL, *hwaccel = NULL, *hwaccel_device = NULL;
568+ char *codec_tag = NULL;
569+ char *next;
569570
570571 if (!ist)
571572 exit_program(1);
@@ -2780,7 +2781,7 @@ const OptionDef options[] = { · 2208 unmodified lines
27802781 { "frames", OPT_INT64 | HAS_ARG | OPT_SPEC | OPT_OUTPUT, { .off = OFFSET(max_frames) },
27812782 "set the number of frames to record", "number" },
27822783 { "tag", OPT_STRING | HAS_ARG | OPT_SPEC |
2783− OPT_EXPERT | OPT_OUTPUT, { .off = OFFSET(codec_tags) },
2784+ OPT_EXPERT | OPT_OUTPUT | OPT_INPUT, { .off = OFFSET(codec_tags) },
27842785 "force codec tag/fourcc", "fourcc/tag" },
27852786 { "q", HAS_ARG | OPT_EXPERT | OPT_DOUBLE |
27862787 OPT_SPEC | OPT_OUTPUT, { .off = OFFSET(qscale) },

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t