Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
6bca574a
Commit
6bca574a
authored
Oct 16, 2011
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow to overwrite input stream tags.
parent
02b651a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
ffmpeg.texi
doc/ffmpeg.texi
+1
-1
ffmpeg.c
ffmpeg.c
+9
-0
No files found.
doc/ffmpeg.texi
View file @
6bca574a
...
...
@@ -864,7 +864,7 @@ ffmpeg -i h264.mp4 -c:v copy -vbsf h264_mp4toannexb -an out.h264
ffmpeg -i file.mov -an -vn -sbsf mov2textsub -c:s copy -f rawvideo sub.txt
@end example
@item -tag[:@var
{
stream
_
specifier
}
] @var
{
codec
_
tag
}
(@emph
{
output,
per-stream
}
)
@item -tag[:@var
{
stream
_
specifier
}
] @var
{
codec
_
tag
}
(@emph
{
per-stream
}
)
Force a tag/fourcc for matching streams.
@end table
...
...
ffmpeg.c
View file @
6bca574a
...
...
@@ -2988,6 +2988,7 @@ static AVCodec *choose_codec(OptionsContext *o, AVFormatContext *s, AVStream *st
static
void
add_input_streams
(
OptionsContext
*
o
,
AVFormatContext
*
ic
)
{
int
i
,
rfps
,
rfps_base
;
char
*
next
,
*
codec_tag
=
NULL
;
for
(
i
=
0
;
i
<
ic
->
nb_streams
;
i
++
)
{
AVStream
*
st
=
ic
->
streams
[
i
];
...
...
@@ -3005,6 +3006,14 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic)
MATCH_PER_STREAM_OPT
(
ts_scale
,
dbl
,
scale
,
ic
,
st
);
ist
->
ts_scale
=
scale
;
MATCH_PER_STREAM_OPT
(
codec_tags
,
str
,
codec_tag
,
ic
,
st
);
if
(
codec_tag
)
{
uint32_t
tag
=
strtol
(
codec_tag
,
&
next
,
0
);
if
(
*
next
)
tag
=
AV_RL32
(
codec_tag
);
st
->
codec
->
codec_tag
=
tag
;
}
ist
->
dec
=
choose_codec
(
o
,
ic
,
st
,
dec
->
codec_type
);
if
(
!
ist
->
dec
)
ist
->
dec
=
avcodec_find_decoder
(
dec
->
codec_id
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment