Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
46aae846
F
Ffmpeg
项目概览
小白菜888
/
Ffmpeg
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Ffmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
46aae846
编写于
9月 26, 2016
作者:
C
Carl Eugen Hoyos
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lavf/movenc: Allow to disable writing the timecode track.
Fixes ticket #5492.
上级
fb37da37
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
2 deletion
+8
-2
doc/muxers.texi
doc/muxers.texi
+3
-0
libavformat/movenc.c
libavformat/movenc.c
+4
-2
libavformat/movenc.h
libavformat/movenc.h
+1
-0
未找到文件。
doc/muxers.texi
浏览文件 @
46aae846
...
...
@@ -884,6 +884,9 @@ the new default-base-is-moof flag instead. This flag is new from
14496-12:2012. This may make the fragments easier to parse in certain
circumstances (avoiding basing track fragment location calculations
on the implicit end of the previous track fragment).
@item -write_tmcd
Specify @code{on} to force writing a timecode track, @code{off} to disable it
and @code{auto} to write a timecode track only for mov and mp4 output (default).
@end table
@subsection Example
...
...
libavformat/movenc.c
浏览文件 @
46aae846
...
...
@@ -90,6 +90,7 @@ static const AVOption options[] = {
{
"encryption_key"
,
"The media encryption key (hex)"
,
offsetof
(
MOVMuxContext
,
encryption_key
),
AV_OPT_TYPE_BINARY
,
.
flags
=
AV_OPT_FLAG_ENCODING_PARAM
},
{
"encryption_kid"
,
"The media encryption key identifier (hex)"
,
offsetof
(
MOVMuxContext
,
encryption_kid
),
AV_OPT_TYPE_BINARY
,
.
flags
=
AV_OPT_FLAG_ENCODING_PARAM
},
{
"use_stream_ids_as_track_ids"
,
"use stream ids as track ids"
,
offsetof
(
MOVMuxContext
,
use_stream_ids_as_track_ids
),
AV_OPT_TYPE_BOOL
,
{.
i64
=
0
},
0
,
1
,
AV_OPT_FLAG_ENCODING_PARAM
},
{
"write_tmcd"
,
"force or disable writing tmcd"
,
offsetof
(
MOVMuxContext
,
write_tmcd
),
AV_OPT_TYPE_BOOL
,
{.
i64
=
-
1
},
-
1
,
1
,
AV_OPT_FLAG_ENCODING_PARAM
},
{
NULL
},
};
...
...
@@ -2312,7 +2313,7 @@ static int mov_write_minf_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContext
}
else
if
(
track
->
tag
==
MKTAG
(
'r'
,
't'
,
'p'
,
' '
))
{
mov_write_hmhd_tag
(
pb
);
}
else
if
(
track
->
tag
==
MKTAG
(
't'
,
'm'
,
'c'
,
'd'
))
{
if
(
track
->
mode
==
MODE_MP4
)
if
(
track
->
mode
!=
MODE_MOV
)
mov_write_nmhd_tag
(
pb
);
else
mov_write_gmhd_tag
(
pb
,
track
);
...
...
@@ -5539,7 +5540,8 @@ static int mov_write_header(AVFormatContext *s)
}
}
if
(
mov
->
mode
==
MODE_MOV
||
mov
->
mode
==
MODE_MP4
)
{
if
(
mov
->
write_tmcd
==
-
1
&&
(
mov
->
mode
==
MODE_MOV
||
mov
->
mode
==
MODE_MP4
)
||
mov
->
write_tmcd
==
1
)
{
tmcd_track
=
mov
->
nb_streams
;
/* +1 tmcd track for each video stream with a timecode */
...
...
libavformat/movenc.h
浏览文件 @
46aae846
...
...
@@ -219,6 +219,7 @@ typedef struct MOVMuxContext {
int
use_stream_ids_as_track_ids
;
int
track_ids_ok
;
int
write_tmcd
;
}
MOVMuxContext
;
#define FF_MOV_FLAG_RTP_HINT (1 << 0)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录