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
746dca48
Commit
746dca48
authored
Feb 23, 2014
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: support forcing codec tags for input streams
parent
d59fcdaf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
avconv_opt.c
avconv_opt.c
+11
-1
avconv.texi
doc/avconv.texi
+1
-1
No files found.
avconv_opt.c
View file @
746dca48
...
...
@@ -463,6 +463,8 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic)
AVCodecContext
*
dec
=
st
->
codec
;
InputStream
*
ist
=
av_mallocz
(
sizeof
(
*
ist
));
char
*
framerate
=
NULL
,
*
hwaccel
=
NULL
,
*
hwaccel_device
=
NULL
;
char
*
codec_tag
=
NULL
;
char
*
next
;
if
(
!
ist
)
exit_program
(
1
);
...
...
@@ -478,6 +480,14 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic)
ist
->
ts_scale
=
1
.
0
;
MATCH_PER_STREAM_OPT
(
ts_scale
,
dbl
,
ist
->
ts_scale
,
ic
,
st
);
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_decoder
(
o
,
ic
,
st
);
ist
->
opts
=
filter_codec_opts
(
o
->
g
->
codec_opts
,
ist
->
st
->
codec
->
codec_id
,
ic
,
st
,
ist
->
dec
);
...
...
@@ -2238,7 +2248,7 @@ const OptionDef options[] = {
{
"frames"
,
OPT_INT64
|
HAS_ARG
|
OPT_SPEC
|
OPT_OUTPUT
,
{
.
off
=
OFFSET
(
max_frames
)
},
"set the number of frames to record"
,
"number"
},
{
"tag"
,
OPT_STRING
|
HAS_ARG
|
OPT_SPEC
|
OPT_EXPERT
|
OPT_OUTPUT
,
{
.
off
=
OFFSET
(
codec_tags
)
},
OPT_EXPERT
|
OPT_OUTPUT
|
OPT_INPUT
,
{
.
off
=
OFFSET
(
codec_tags
)
},
"force codec tag/fourcc"
,
"fourcc/tag"
},
{
"q"
,
HAS_ARG
|
OPT_EXPERT
|
OPT_DOUBLE
|
OPT_SPEC
|
OPT_OUTPUT
,
{
.
off
=
OFFSET
(
qscale
)
},
...
...
doc/avconv.texi
View file @
746dca48
...
...
@@ -821,7 +821,7 @@ avconv -i h264.mp4 -c:v copy -bsf:v h264_mp4toannexb -an out.h264
avconv -i file.mov -an -vn -bsf:s 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
{
input/
output,per-stream
}
)
Force a tag/fourcc for matching streams.
@item -filter
_
complex @var
{
filtergraph
}
(@emph
{
global
}
)
...
...
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