Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
038c0b1e
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,发现更多精彩内容 >>
提交
038c0b1e
编写于
8月 19, 2012
作者:
A
Anton Khirnov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
avconv: make the -pass option per-stream.
上级
e2785fa7
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
8 addition
and
12 deletion
+8
-12
Changelog
Changelog
+2
-1
avconv.h
avconv.h
+2
-0
avconv_opt.c
avconv_opt.c
+3
-10
doc/avconv.texi
doc/avconv.texi
+1
-1
未找到文件。
Changelog
浏览文件 @
038c0b1e
...
...
@@ -42,7 +42,8 @@ version <next>:
- RTMPE protocol support
- RTMPTE protocol support
- Canopus Lossless Codec decoder
- avconv -shortest option is now per-output file
- avconv -shortest option is now per-output file,
-pass is now per-output stream
- Ut Video encoder
...
...
avconv.h
浏览文件 @
038c0b1e
...
...
@@ -158,6 +158,8 @@ typedef struct OptionsContext {
int
nb_copy_initial_nonkeyframes
;
SpecifierOpt
*
filters
;
int
nb_filters
;
SpecifierOpt
*
pass
;
int
nb_pass
;
}
OptionsContext
;
typedef
struct
InputFilter
{
...
...
avconv_opt.c
浏览文件 @
038c0b1e
...
...
@@ -77,7 +77,6 @@ int same_quant = 0;
static
int
file_overwrite
=
0
;
static
int
video_discard
=
0
;
static
int
intra_dc_precision
=
8
;
static
int
do_pass
=
0
;
static
int
using_stdin
=
0
;
static
int
input_sync
;
...
...
@@ -886,6 +885,7 @@ static OutputStream *new_video_stream(OptionsContext *o, AVFormatContext *oc)
char
*
frame_aspect_ratio
=
NULL
,
*
frame_pix_fmt
=
NULL
;
char
*
intra_matrix
=
NULL
,
*
inter_matrix
=
NULL
;
const
char
*
filters
=
"null"
;
int
do_pass
=
0
;
int
i
;
MATCH_PER_STREAM_OPT
(
frame_rates
,
str
,
frame_rate
,
oc
,
st
);
...
...
@@ -958,6 +958,7 @@ static OutputStream *new_video_stream(OptionsContext *o, AVFormatContext *oc)
video_enc
->
intra_dc_precision
=
intra_dc_precision
-
8
;
/* two pass mode */
MATCH_PER_STREAM_OPT
(
pass
,
i
,
do_pass
,
oc
,
st
);
if
(
do_pass
)
{
if
(
do_pass
==
1
)
{
video_enc
->
flags
|=
CODEC_FLAG_PASS1
;
...
...
@@ -1495,14 +1496,6 @@ loop_end:
reset_options
(
o
);
}
/* same option as mencoder */
static
int
opt_pass
(
const
char
*
opt
,
const
char
*
arg
)
{
do_pass
=
parse_number_or_die
(
opt
,
arg
,
OPT_INT
,
1
,
2
);
return
0
;
}
static
int
opt_target
(
void
*
optctx
,
const
char
*
opt
,
const
char
*
arg
)
{
OptionsContext
*
o
=
optctx
;
...
...
@@ -1972,7 +1965,7 @@ const OptionDef options[] = {
"force video codec ('copy' to copy stream)"
,
"codec"
},
{
"same_quant"
,
OPT_VIDEO
|
OPT_BOOL
|
OPT_EXPERT
,
{
&
same_quant
},
"use same quantizer as source (implies VBR)"
},
{
"pass"
,
OPT_VIDEO
|
HAS_ARG
,
{
opt_pass
},
{
"pass"
,
OPT_VIDEO
|
HAS_ARG
|
OPT_SPEC
|
OPT_INT
,
{
.
off
=
OFFSET
(
pass
)
},
"select the pass number (1 or 2)"
,
"n"
},
{
"passlogfile"
,
OPT_VIDEO
|
HAS_ARG
|
OPT_STRING
|
OPT_EXPERT
,
{
&
pass_logfilename_prefix
},
"select two pass log file name prefix"
,
"prefix"
},
...
...
doc/avconv.texi
浏览文件 @
038c0b1e
...
...
@@ -479,7 +479,7 @@ Use same quantizer as source (implies VBR).
Note that this is NOT SAME QUALITY. Do not use this option unless you know you
need it.
@item -pass
@var
{
n
}
@item -pass
[:@var
{
stream
_
specifier
}
] @var
{
n
}
(@emph
{
output,per-stream
}
)
Select the pass number (1 or 2). It is used to do two-pass
video encoding. The statistics of the video are recorded in the first
pass into a log file (see also the option -passlogfile),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录