Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
merge_av
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
胡斌
2018-01-23 19:16:47 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
921950547d0049f6ccd69d154f3f3095327e35fd
92195054
1 parent
65c50087
1.0.8
using the name of first audio or video as the output ts file's main name
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
12 行增加
和
5 行删除
merge_av/merge_av.cpp
merge_av/merge_av.cpp
查看文件 @
9219505
...
...
@@ -799,10 +799,17 @@ int concate_files_and_adjust_timecode(const char * output_dest_file){
int
get_output_file_name
(
int
i
,
const
char
*
file_prefix
,
char
*
outputfile
){
char
prefix
[
24
];
strncpy
(
prefix
,
file_prefix
,
18
);
prefix
[
18
]
=
0
;
sprintf
(
outputfile
,
"%s_%d.ts"
,
prefix
,
i
);
char
prefix
[
128
];
const
char
*
p
=
strstr
(
file_prefix
,
"."
);
if
(
p
)
{
strncpy
(
prefix
,
file_prefix
,
p
-
file_prefix
);
prefix
[
p
-
file_prefix
]
=
0
;
}
else
{
strcpy
(
prefix
,
file_prefix
);
}
sprintf
(
outputfile
,
"%s.ts"
,
prefix
,
i
);
return
0
;
}
...
...
@@ -997,7 +1004,7 @@ void get_outinfo_file_name(char * input)
int
main
(
int
argc
,
char
*
argv
[])
{
if
(
argc
<
2
)
{
printf
(
" merge_av 1.0.
7
\n
"
);
printf
(
" merge_av 1.0.
8
\n
"
);
printf
(
" run ffmpeg to merge audio and video files according to the record info file,
\n
usage:"
);
printf
(
"
\n
%s record_info_filename [-p] [-k]"
,
argv
[
0
]);
printf
(
"
\n
-p :only print the command,don't run ffmpeg"
);
...
...
请
注册
或
登录
后发表评论