Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
1de61a18
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,发现更多精彩内容 >>
提交
1de61a18
编写于
11月 05, 2006
作者:
D
Diego Biurrun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Simplify regression test execution.
Originally committed as revision 6906 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
8cd13128
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
84 addition
and
74 deletion
+84
-74
tests/regression.sh
tests/regression.sh
+84
-74
未找到文件。
tests/regression.sh
浏览文件 @
1de61a18
...
@@ -155,6 +155,16 @@ do_ffmpeg_nocheck()
...
@@ -155,6 +155,16 @@ do_ffmpeg_nocheck()
echo
`
cat
$datadir
/bench2.tmp
`
$f
>>
$benchfile
echo
`
cat
$datadir
/bench2.tmp
`
$f
>>
$benchfile
}
}
do_video_decoding
()
{
do_ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$@
$raw_dst
}
do_video_encoding
()
{
do_ffmpeg
$file
-y
$1
-f
pgmyuv
-i
$raw_src
$2
$file
}
echo
"ffmpeg regression test"
>
$logfile
echo
"ffmpeg regression test"
>
$logfile
echo
"ffmpeg benchmarks"
>
$benchfile
echo
"ffmpeg benchmarks"
>
$benchfile
...
@@ -167,195 +177,195 @@ do_ffmpeg_nocheck $pcm_ref -y -ab 128 -ac 2 -ar 44100 -f s16le -i $pcm_src -f wa
...
@@ -167,195 +177,195 @@ do_ffmpeg_nocheck $pcm_ref -y -ab 128 -ac 2 -ar 44100 -f s16le -i $pcm_src -f wa
if
[
-n
"
$do_mpeg
"
]
;
then
if
[
-n
"
$do_mpeg
"
]
;
then
# mpeg1 encoding
# mpeg1 encoding
file
=
${
outfile
}
mpeg1.mpg
file
=
${
outfile
}
mpeg1.mpg
do_
ffmpeg
$file
-y
-qscale
10
-f
pgmyuv
-i
$raw_src
-f
mpeg1video
$file
do_
video_encoding
"-qscale 10"
"-f mpeg1video"
# mpeg1 decoding
# mpeg1 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_mpeg2
"
]
;
then
if
[
-n
"
$do_mpeg2
"
]
;
then
# mpeg2 encoding
# mpeg2 encoding
file
=
${
outfile
}
mpeg2.mpg
file
=
${
outfile
}
mpeg2.mpg
do_
ffmpeg
$file
-y
-qscale
10
-f
pgmyuv
-i
$raw_src
-vcodec
mpeg2video
-f
mpeg1video
$file
do_
video_encoding
"-qscale 10"
"-vcodec mpeg2video -f mpeg1video"
# mpeg2 decoding
# mpeg2 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
# mpeg2 encoding using intra vlc
# mpeg2 encoding using intra vlc
file
=
${
outfile
}
mpeg2ivlc.mpg
file
=
${
outfile
}
mpeg2ivlc.mpg
do_
ffmpeg
$file
-y
-qscale
10
-f
pgmyuv
-i
$raw_src
-vcodec
mpeg2video
-f
mpeg1video
-flags2
+ivlc
$file
do_
video_encoding
"-qscale 10"
"-vcodec mpeg2video -f mpeg1video -flags2 +ivlc"
# mpeg2 decoding
# mpeg2 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
# mpeg2 encoding
# mpeg2 encoding
file
=
${
outfile
}
mpeg2.mpg
file
=
${
outfile
}
mpeg2.mpg
do_
ffmpeg
$file
-y
-qscale
10
-f
pgmyuv
-i
$raw_src
-vcodec
mpeg2video
-idct
int
-dct
int
-f
mpeg1video
$file
do_
video_encoding
"-qscale 10"
"-vcodec mpeg2video -idct int -dct int -f mpeg1video"
# mpeg2 decoding
# mpeg2 decoding
do_ffmpeg
$raw_dst
-y
-idct
int
-i
$file
-f
rawvideo
$raw_dst
do_ffmpeg
$raw_dst
-y
-idct
int
-i
$file
-f
rawvideo
$raw_dst
# mpeg2 encoding interlaced
# mpeg2 encoding interlaced
file
=
${
outfile
}
mpeg2i.mpg
file
=
${
outfile
}
mpeg2i.mpg
do_
ffmpeg
$file
-y
-qscale
10
-f
pgmyuv
-i
$raw_src
-vcodec
mpeg2video
-f
mpeg1video
-flags
+ildct+ilme
$file
do_
video_encoding
"-qscale 10"
"-vcodec mpeg2video -f mpeg1video -flags +ildct+ilme"
# mpeg2 decoding
# mpeg2 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_mpeg2thread
"
]
;
then
if
[
-n
"
$do_mpeg2thread
"
]
;
then
# mpeg2 encoding interlaced
# mpeg2 encoding interlaced
file
=
${
outfile
}
mpeg2thread.mpg
file
=
${
outfile
}
mpeg2thread.mpg
do_
ffmpeg
$file
-y
-qscale
10
-f
pgmyuv
-i
$raw_src
-vcodec
mpeg2video
-f
mpeg1video
-bf
2
-flags
+ildct+ilme
-threads
2
$file
do_
video_encoding
"-qscale 10"
"-vcodec mpeg2video -f mpeg1video -bf 2 -flags +ildct+ilme -threads 2"
# mpeg2 decoding
# mpeg2 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
# mpeg2 encoding interlaced using intra vlc
# mpeg2 encoding interlaced using intra vlc
file
=
${
outfile
}
mpeg2threadivlc.mpg
file
=
${
outfile
}
mpeg2threadivlc.mpg
do_
ffmpeg
$file
-y
-qscale
10
-f
pgmyuv
-i
$raw_src
-vcodec
mpeg2video
-f
mpeg1video
-bf
2
-flags
+ildct+ilme
-flags2
+ivlc
-threads
2
$file
do_
video_encoding
"-qscale 10"
"-vcodec mpeg2video -f mpeg1video -bf 2 -flags +ildct+ilme -flags2 +ivlc -threads 2"
# mpeg2 decoding
# mpeg2 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
# mpeg2 encoding interlaced
# mpeg2 encoding interlaced
file
=
${
outfile
}
mpeg2reuse.mpg
file
=
${
outfile
}
mpeg2reuse.mpg
do_ffmpeg
$file
-y
-sameq
-me_threshold
256
-mb_threshold
1024
-i
${
outfile
}
mpeg2thread.mpg
-vcodec
mpeg2video
-f
mpeg1video
-bf
2
-flags
+ildct+ilme
-threads
4
$file
do_ffmpeg
$file
-y
-sameq
-me_threshold
256
-mb_threshold
1024
-i
${
outfile
}
mpeg2thread.mpg
-vcodec
mpeg2video
-f
mpeg1video
-bf
2
-flags
+ildct+ilme
-threads
4
$file
# mpeg2 decoding
# mpeg2 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_msmpeg4v2
"
]
;
then
if
[
-n
"
$do_msmpeg4v2
"
]
;
then
# msmpeg4 encoding
# msmpeg4 encoding
file
=
${
outfile
}
msmpeg4v2.avi
file
=
${
outfile
}
msmpeg4v2.avi
do_
ffmpeg
$file
-y
-qscale
10
-f
pgmyuv
-i
$raw_src
-an
-vcodec
msmpeg4v2
$file
do_
video_encoding
"-qscale 10"
"-an -vcodec msmpeg4v2"
# msmpeg4v2 decoding
# msmpeg4v2 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_msmpeg4
"
]
;
then
if
[
-n
"
$do_msmpeg4
"
]
;
then
# msmpeg4 encoding
# msmpeg4 encoding
file
=
${
outfile
}
msmpeg4.avi
file
=
${
outfile
}
msmpeg4.avi
do_
ffmpeg
$file
-y
-qscale
10
-f
pgmyuv
-i
$raw_src
-an
-vcodec
msmpeg4
$file
do_
video_encoding
"-qscale 10"
"-an -vcodec msmpeg4"
# msmpeg4 decoding
# msmpeg4 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_wmv1
"
]
;
then
if
[
-n
"
$do_wmv1
"
]
;
then
# wmv1 encoding
# wmv1 encoding
file
=
${
outfile
}
wmv1.avi
file
=
${
outfile
}
wmv1.avi
do_
ffmpeg
$file
-y
-qscale
10
-f
pgmyuv
-i
$raw_src
-an
-vcodec
wmv1
$file
do_
video_encoding
"-qscale 10"
"-an -vcodec wmv1"
# wmv1 decoding
# wmv1 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_wmv2
"
]
;
then
if
[
-n
"
$do_wmv2
"
]
;
then
# wmv2 encoding
# wmv2 encoding
file
=
${
outfile
}
wmv2.avi
file
=
${
outfile
}
wmv2.avi
do_
ffmpeg
$file
-y
-qscale
10
-f
pgmyuv
-i
$raw_src
-an
-vcodec
wmv2
$file
do_
video_encoding
"-qscale 10"
"-an -vcodec wmv2"
# wmv2 decoding
# wmv2 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_h261
"
]
;
then
if
[
-n
"
$do_h261
"
]
;
then
# h261 encoding
# h261 encoding
file
=
${
outfile
}
h261.avi
file
=
${
outfile
}
h261.avi
do_
ffmpeg
$file
-y
-qscale
11
-f
pgmyuv
-i
$raw_src
-s
352x288
-an
-vcodec
h261
$file
do_
video_encoding
"-qscale 11"
"-s 352x288 -an -vcodec h261"
# h261 decoding
# h261 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_h263
"
]
;
then
if
[
-n
"
$do_h263
"
]
;
then
# h263 encoding
# h263 encoding
file
=
${
outfile
}
h263.avi
file
=
${
outfile
}
h263.avi
do_
ffmpeg
$file
-y
-qscale
10
-f
pgmyuv
-i
$raw_src
-s
352x288
-an
-vcodec
h263
$file
do_
video_encoding
"-qscale 10"
"-s 352x288 -an -vcodec h263"
# h263 decoding
# h263 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_h263p
"
]
;
then
if
[
-n
"
$do_h263p
"
]
;
then
# h263p encoding
# h263p encoding
file
=
${
outfile
}
h263p.avi
file
=
${
outfile
}
h263p.avi
do_
ffmpeg
$file
-y
-qscale
2
-flags
+umv+aiv+aic
-f
pgmyuv
-i
$raw_src
-s
352x288
-an
-vcodec
h263p
-ps
300
$file
do_
video_encoding
"-qscale 2 -flags +umv+aiv+aic"
"-s 352x288 -an -vcodec h263p -ps 300"
# h263p decoding
# h263p decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_mpeg4
"
]
;
then
if
[
-n
"
$do_mpeg4
"
]
;
then
# mpeg4
# mpeg4
file
=
${
outfile
}
odivx.mp4
file
=
${
outfile
}
odivx.mp4
do_
ffmpeg
$file
-y
-flags
+mv4
-mbd
bits
-qscale
10
-f
pgmyuv
-i
$raw_src
-an
-vcodec
mpeg4
$file
do_
video_encoding
"-flags +mv4 -mbd bits -qscale 10"
"-an -vcodec mpeg4"
# mpeg4 decoding
# mpeg4 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_huffyuv
"
]
;
then
if
[
-n
"
$do_huffyuv
"
]
;
then
# huffyuv
# huffyuv
file
=
${
outfile
}
huffyuv.avi
file
=
${
outfile
}
huffyuv.avi
do_
ffmpeg
$file
-y
-f
pgmyuv
-i
$raw_src
-an
-vcodec
huffyuv
-pix_fmt
yuv422p
$file
do_
video_encoding
""
"-an -vcodec huffyuv -pix_fmt yuv422p"
# huffyuv decoding
# huffyuv decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
-strict
-2
-pix_fmt
yuv420p
$raw_dst
do_
video_decoding
-strict
-2
-pix_fmt
yuv420p
fi
fi
###################################
###################################
if
[
-n
"
$do_rc
"
]
;
then
if
[
-n
"
$do_rc
"
]
;
then
# mpeg4 rate control
# mpeg4 rate control
file
=
${
outfile
}
mpeg4-rc.avi
file
=
${
outfile
}
mpeg4-rc.avi
do_
ffmpeg
$file
-y
-b
400k
-bf
2
-f
pgmyuv
-i
$raw_src
-an
-vcodec
mpeg4
$file
do_
video_encoding
"-b 400k -bf 2"
"-an -vcodec mpeg4"
# mpeg4 rate control decoding
# mpeg4 rate control decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_mpeg4adv
"
]
;
then
if
[
-n
"
$do_mpeg4adv
"
]
;
then
# mpeg4
# mpeg4
file
=
${
outfile
}
mpeg4-adv.avi
file
=
${
outfile
}
mpeg4-adv.avi
do_
ffmpeg
$file
-y
-qscale
9
-flags
+mv4+part+aic+trell
-mbd
bits
-ps
200
-f
pgmyuv
-i
$raw_src
-an
-vcodec
mpeg4
$file
do_
video_encoding
"-qscale 9 -flags +mv4+part+aic+trell -mbd bits -ps 200"
"-an -vcodec mpeg4"
# mpeg4 decoding
# mpeg4 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_mpeg4thread
"
]
;
then
if
[
-n
"
$do_mpeg4thread
"
]
;
then
# mpeg4
# mpeg4
file
=
${
outfile
}
mpeg4-thread.avi
file
=
${
outfile
}
mpeg4-thread.avi
do_
ffmpeg
$file
-y
-b
500k
-flags
+mv4+part+aic+trell
-mbd
bits
-ps
200
-bf
2
-f
pgmyuv
-i
$raw_src
-an
-vcodec
mpeg4
-threads
2
$file
do_
video_encoding
"-b 500k -flags +mv4+part+aic+trell -mbd bits -ps 200 -bf 2"
"-an -vcodec mpeg4 -threads 2"
# mpeg4 decoding
# mpeg4 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_mpeg4adv
"
]
;
then
if
[
-n
"
$do_mpeg4adv
"
]
;
then
# mpeg4
# mpeg4
file
=
${
outfile
}
mpeg4-Q.avi
file
=
${
outfile
}
mpeg4-Q.avi
do_
ffmpeg
$file
-y
-qscale
7
-flags
+mv4+qpel
-mbd
2
-bf
2
-cmp
1
-subcmp
2
-f
pgmyuv
-i
$raw_src
-an
-vcodec
mpeg4
$file
do_
video_encoding
"-qscale 7 -flags +mv4+qpel -mbd 2 -bf 2 -cmp 1 -subcmp 2"
"-an -vcodec mpeg4"
# mpeg4 decoding
# mpeg4 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
...
@@ -369,160 +379,160 @@ fi
...
@@ -369,160 +379,160 @@ fi
if
[
-n
"
$do_error
"
]
;
then
if
[
-n
"
$do_error
"
]
;
then
# damaged mpeg4
# damaged mpeg4
file
=
${
outfile
}
error-mpeg4-adv.avi
file
=
${
outfile
}
error-mpeg4-adv.avi
do_
ffmpeg
$file
-y
-qscale
7
-flags
+mv4+part+aic
-mbd
rd
-ps
250
-error
10
-f
pgmyuv
-i
$raw_src
-an
-vcodec
mpeg4
$file
do_
video_encoding
"-qscale 7 -flags +mv4+part+aic -mbd rd -ps 250 -error 10"
"-an -vcodec mpeg4"
# damaged mpeg4 decoding
# damaged mpeg4 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_mpeg4nr
"
]
;
then
if
[
-n
"
$do_mpeg4nr
"
]
;
then
# noise reduction
# noise reduction
file
=
${
outfile
}
mpeg4-nr.avi
file
=
${
outfile
}
mpeg4-nr.avi
do_
ffmpeg
$file
-y
-qscale
8
-flags
+mv4
-mbd
rd
-nr
200
-f
pgmyuv
-i
$raw_src
-an
-vcodec
mpeg4
$file
do_
video_encoding
"-qscale 8 -flags +mv4 -mbd rd -nr 200"
"-an -vcodec mpeg4"
# mpeg4 decoding
# mpeg4 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_mpeg1b
"
]
;
then
if
[
-n
"
$do_mpeg1b
"
]
;
then
# mpeg1
# mpeg1
file
=
${
outfile
}
mpeg1b.mpg
file
=
${
outfile
}
mpeg1b.mpg
do_
ffmpeg
$file
-y
-qscale
8
-bf
3
-ps
200
-f
pgmyuv
-i
$raw_src
-an
-vcodec
mpeg1video
-f
mpeg1video
$file
do_
video_encoding
"-qscale 8 -bf 3 -ps 200"
"-an -vcodec mpeg1video -f mpeg1video"
# mpeg1 decoding
# mpeg1 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_mjpeg
"
]
;
then
if
[
-n
"
$do_mjpeg
"
]
;
then
# mjpeg
# mjpeg
file
=
${
outfile
}
mjpeg.avi
file
=
${
outfile
}
mjpeg.avi
do_
ffmpeg
$file
-y
-qscale
10
-f
pgmyuv
-i
$raw_src
-an
-vcodec
mjpeg
-pix_fmt
yuvj420p
$file
do_
video_encoding
"-qscale 10"
"-an -vcodec mjpeg -pix_fmt yuvj420p"
# mjpeg decoding
# mjpeg decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
-pix_fmt
yuv420p
$raw_dst
do_
video_decoding
-pix_fmt
yuv420p
fi
fi
###################################
###################################
if
[
-n
"
$do_ljpeg
"
]
;
then
if
[
-n
"
$do_ljpeg
"
]
;
then
# ljpeg
# ljpeg
file
=
${
outfile
}
ljpeg.avi
file
=
${
outfile
}
ljpeg.avi
do_
ffmpeg
$file
-y
-f
pgmyuv
-i
$raw_src
-an
-vcodec
ljpeg
-strict
-1
$file
do_
video_encoding
""
"-an -vcodec ljpeg -strict -1"
# ljpeg decoding
# ljpeg decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_jpegls
"
]
;
then
if
[
-n
"
$do_jpegls
"
]
;
then
# jpeg ls
# jpeg ls
file
=
${
outfile
}
jpegls.avi
file
=
${
outfile
}
jpegls.avi
do_
ffmpeg
$file
-y
-f
pgmyuv
-i
$raw_src
-an
-vcodec
jpegls
-vtag
MJPG
$file
do_
video_encoding
""
"-an -vcodec jpegls -vtag MJPG"
# jpeg ls decoding
# jpeg ls decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
-pix_fmt
yuv420p
$raw_dst
do_
video_decoding
-pix_fmt
yuv420p
fi
fi
###################################
###################################
if
[
-n
"
$do_rv10
"
]
;
then
if
[
-n
"
$do_rv10
"
]
;
then
# rv10 encoding
# rv10 encoding
file
=
${
outfile
}
rv10.rm
file
=
${
outfile
}
rv10.rm
do_
ffmpeg
$file
-y
-qscale
10
-f
pgmyuv
-i
$raw_src
-an
$file
do_
video_encoding
"-qscale 10"
"-an"
# rv10 decoding
# rv10 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_rv20
"
]
;
then
if
[
-n
"
$do_rv20
"
]
;
then
# rv20 encoding
# rv20 encoding
file
=
${
outfile
}
rv20.rm
file
=
${
outfile
}
rv20.rm
do_
ffmpeg
$file
-y
-qscale
10
-f
pgmyuv
-i
$raw_src
-vcodec
rv20
-an
$file
do_
video_encoding
"-qscale 10"
"-vcodec rv20 -an"
# rv20 decoding
# rv20 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_asv1
"
]
;
then
if
[
-n
"
$do_asv1
"
]
;
then
# asv1 encoding
# asv1 encoding
file
=
${
outfile
}
asv1.avi
file
=
${
outfile
}
asv1.avi
do_
ffmpeg
$file
-y
-qscale
10
-f
pgmyuv
-i
$raw_src
-an
-vcodec
asv1
$file
do_
video_encoding
"-qscale 10"
"-an -vcodec asv1"
# asv1 decoding
# asv1 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_asv2
"
]
;
then
if
[
-n
"
$do_asv2
"
]
;
then
# asv2 encoding
# asv2 encoding
file
=
${
outfile
}
asv2.avi
file
=
${
outfile
}
asv2.avi
do_
ffmpeg
$file
-y
-qscale
10
-f
pgmyuv
-i
$raw_src
-an
-vcodec
asv2
$file
do_
video_encoding
"-qscale 10"
"-an -vcodec asv2"
# asv2 decoding
# asv2 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_flv
"
]
;
then
if
[
-n
"
$do_flv
"
]
;
then
# flv encoding
# flv encoding
file
=
${
outfile
}
flv.flv
file
=
${
outfile
}
flv.flv
do_
ffmpeg
$file
-y
-qscale
10
-f
pgmyuv
-i
$raw_src
-an
-vcodec
flv
$file
do_
video_encoding
"-qscale 10"
"-an -vcodec flv"
# flv decoding
# flv decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_ffv1
"
]
;
then
if
[
-n
"
$do_ffv1
"
]
;
then
# ffv1 encoding
# ffv1 encoding
file
=
${
outfile
}
ffv1.avi
file
=
${
outfile
}
ffv1.avi
do_
ffmpeg
$file
-y
-strict
-2
-f
pgmyuv
-i
$raw_src
-an
-vcodec
ffv1
$file
do_
video_encoding
"-strict -2"
"-an -vcodec ffv1"
# ffv1 decoding
# ffv1 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_snow
"
]
;
then
if
[
-n
"
$do_snow
"
]
;
then
# snow encoding
# snow encoding
file
=
${
outfile
}
snow.avi
file
=
${
outfile
}
snow.avi
do_
ffmpeg
$file
-y
-strict
-2
-f
pgmyuv
-i
$raw_src
-an
-vcodec
snow
-qscale
2
-flags
+qpel
-me
iter
-dia_size
2
-cmp
12
-subcmp
12
-s
128x64
$file
do_
video_encoding
"-strict -2"
"-an -vcodec snow -qscale 2 -flags +qpel -me iter -dia_size 2 -cmp 12 -subcmp 12 -s 128x64"
# snow decoding
# snow decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
-s
352x288
$raw_dst
do_
video_decoding
-s
352x288
fi
fi
###################################
###################################
if
[
-n
"
$do_snowll
"
]
;
then
if
[
-n
"
$do_snowll
"
]
;
then
# snow encoding
# snow encoding
file
=
${
outfile
}
snow53.avi
file
=
${
outfile
}
snow53.avi
do_
ffmpeg
$file
-y
-strict
-2
-f
pgmyuv
-i
$raw_src
-an
-vcodec
snow
-qscale
.001
-pred
1
-flags
+mv4+qpel
$file
do_
video_encoding
"-strict -2"
"-an -vcodec snow -qscale .001 -pred 1 -flags +mv4+qpel"
# snow decoding
# snow decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
$raw_dst
do_
video_decoding
fi
fi
###################################
###################################
if
[
-n
"
$do_dv
"
]
;
then
if
[
-n
"
$do_dv
"
]
;
then
# dv encoding
# dv encoding
file
=
${
outfile
}
dv.dv
file
=
${
outfile
}
dv.dv
do_
ffmpeg
$file
-dct
int
-y
-f
pgmyuv
-i
$raw_src
-s
pal
-an
$file
do_
video_encoding
"-dct int"
"-s pal -an"
# dv decoding
# dv decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
-s
cif
$raw_dst
do_
video_decoding
-s
cif
fi
fi
###################################
###################################
if
[
-n
"
$do_dv50
"
]
;
then
if
[
-n
"
$do_dv50
"
]
;
then
# dv50 encoding
# dv50 encoding
file
=
${
outfile
}
dv.dv
file
=
${
outfile
}
dv.dv
do_
ffmpeg
$file
-dct
int
-y
-f
pgmyuv
-i
$raw_src
-s
pal
-pix_fmt
yuv422p
-an
$file
do_
video_encoding
"-dct int"
"-s pal -pix_fmt yuv422p -an"
# dv50 decoding
# dv50 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
-s
cif
-pix_fmt
yuv420p
$raw_dst
do_
video_decoding
-s
cif
-pix_fmt
yuv420p
fi
fi
...
@@ -530,10 +540,10 @@ fi
...
@@ -530,10 +540,10 @@ fi
if
[
-n
"
$do_svq1
"
]
;
then
if
[
-n
"
$do_svq1
"
]
;
then
# svq1 encoding
# svq1 encoding
file
=
${
outfile
}
svq1.mov
file
=
${
outfile
}
svq1.mov
do_
ffmpeg
$file
-y
-f
pgmyuv
-i
$raw_src
-an
-vcodec
svq1
-qscale
3
-pix_fmt
yuv410p
$file
do_
video_encoding
""
"-an -vcodec svq1 -qscale 3 -pix_fmt yuv410p"
# svq1 decoding
# svq1 decoding
do_
ffmpeg
$raw_dst
-y
-i
$file
-f
rawvideo
-pix_fmt
yuv420p
$raw_dst
do_
video_decoding
-pix_fmt
yuv420p
fi
fi
###################################
###################################
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录