Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
2009721d
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,发现更多精彩内容 >>
提交
2009721d
编写于
2月 03, 2008
作者:
M
Måns Rullgård
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
split lavf regression tests
Originally committed as revision 11833 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
4383ed5c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
129 addition
and
30 deletion
+129
-30
Makefile
Makefile
+39
-4
tests/libav.regression.ref
tests/libav.regression.ref
+9
-9
tests/regression.sh
tests/regression.sh
+78
-14
tests/seek.regression.ref
tests/seek.regression.ref
+3
-3
未找到文件。
Makefile
浏览文件 @
2009721d
...
...
@@ -310,7 +310,42 @@ CODEC_TESTS = $(addprefix regtest-, \
wma
\
)
LAVF_TESTS
=
regtest-lavf
LAVF_TESTS
=
$(
addprefix
regtest-,
\
avi
\
asf
\
rm
\
mpg
\
ts
\
swf
\
ffm
\
flv_fmt
\
mov
\
dv_fmt
\
gxf
\
nut
\
mkv
\
pbmpipe
\
pgmpipe
\
ppmpipe
\
gif
\
yuv4mpeg
\
pgm
\
ppm
\
bmp
\
tga
\
tiff
\
sgi
\
jpg
\
wav
\
alaw
\
mulaw
\
au
\
mmf
\
aiff
\
voc
\
ogg
\
pixfmt
\
)
REGFILES
=
$(
addprefix
tests/data/,
$(
addsuffix
.
$(1)
,
$
(
2:regtest-%
=
%
)))
...
...
@@ -346,11 +381,11 @@ $(CODEC_TESTS) $(LAVF_TESTS): regtest-ref
regtest-ref
:
ffmpeg$(EXESUF) tests/vsynth1/00.pgm tests/vsynth2/00.pgm tests/asynth1.sw
$(CODEC_TESTS) regtest-ref
:
tests/tiny_psnr$(EXESUF)
$(SRC_PATH)
/tests/regression.sh
$@
vsynth tests/vsynth1
$(SRC_PATH)
/tests/regression.sh
$@
rotozoom tests/vsynth2
$(SRC_PATH)
/tests/regression.sh
$@
vsynth tests/vsynth1
a
$(SRC_PATH)
/tests/regression.sh
$@
rotozoom tests/vsynth2
a
$(LAVF_TESTS)
:
$(SRC_PATH)
/tests/regression.sh
$@
lavf tests/vsynth1
$(SRC_PATH)
/tests/regression.sh
$@
lavf tests/vsynth1
b
seektest
:
codectest libavtest tests/seek_test$(EXESUF)
$(SRC_PATH)
/tests/seek_test.sh
$(SEEK_REFFILE)
...
...
tests/libav.regression.ref
浏览文件 @
2009721d
...
...
@@ -36,15 +36,15 @@ b54fe5ee2983506550b4433b63845daf *./tests/data/b-libav.nut
43238b15f1012aa27536c2be20bb2383 *./tests/data/b-libav.mkv
329854 ./tests/data/b-libav.mkv
./tests/data/b-libav.mkv CRC=0x400c29e9
9a9da315747599f7718cc9a9a09c21ff *./tests/data/b-
libav
.pbm
317075 ./tests/data/b-
libav
.pbm
./tests/data/b-
libav
.pbm CRC=0xb92906cb
6ea0e1faf08f6fcdb44db4a104361b57 *./tests/data/b-
libav
.pgm
2534775 ./tests/data/b-
libav
.pgm
./tests/data/b-
libav
.pgm CRC=0xf4aa7c47
0c5fe86621b7377705837f304d4ba1e9 *./tests/data/b-
libav
.ppm
7603575 ./tests/data/b-
libav
.ppm
./tests/data/b-
libav
.ppm CRC=0xb2bb8e92
9a9da315747599f7718cc9a9a09c21ff *./tests/data/b-
pbmpipe
.pbm
317075 ./tests/data/b-
pbmpipe
.pbm
./tests/data/b-
pbmpipe
.pbm CRC=0xb92906cb
6ea0e1faf08f6fcdb44db4a104361b57 *./tests/data/b-
pgmpipe
.pgm
2534775 ./tests/data/b-
pgmpipe
.pgm
./tests/data/b-
pgmpipe
.pgm CRC=0xf4aa7c47
0c5fe86621b7377705837f304d4ba1e9 *./tests/data/b-
ppmpipe
.ppm
7603575 ./tests/data/b-
ppmpipe
.ppm
./tests/data/b-
ppmpipe
.ppm CRC=0xb2bb8e92
88a98269295fbfce7816558ad84e1259 *./tests/data/b-libav.gif
2906382 ./tests/data/b-libav.gif
b977a4fedff90a79baf70c8e02986820 *./tests/data/b-libav.y4m
...
...
tests/regression.sh
浏览文件 @
2009721d
...
...
@@ -12,15 +12,10 @@ datadir="./tests/data"
test
=
"
${
1
#regtest-
}
"
this
=
"
$test
.
$2
"
logfile
=
"
$datadir
/
$this
.regression"
outfile
=
"
$datadir
/
a
-"
outfile
=
"
$datadir
/
$4
-"
eval
do_
$test
=
y
if
[
"
$test
"
=
"lavf"
]
;
then
outfile
=
"
$datadir
/b-"
fi
# various files
ffmpeg
=
"./ffmpeg_g"
tiny_psnr
=
"tests/tiny_psnr"
...
...
@@ -33,6 +28,8 @@ raw_ref="$datadir/$2.ref.yuv"
pcm_src
=
"tests/asynth1.sw"
pcm_dst
=
"
$datadir
/
$this
.out.wav"
pcm_ref
=
"
$datadir
/
$2
.ref.wav"
crcfile
=
"
$datadir
/
$this
.crc"
if
[
X
"
`
echo
|
md5sum
2> /dev/null
`
"
!=
X
]
;
then
do_md5sum
()
{
md5sum
-b
$1
;
}
elif
[
-x
/sbin/md5
]
;
then
...
...
@@ -89,11 +86,12 @@ do_ffmpeg_crc()
{
f
=
"
$1
"
shift
echo
$ffmpeg
$FFMPEG_OPTS
$*
-f
crc
$datadir
/ffmpeg.crc
$ffmpeg
$FFMPEG_OPTS
$*
-f
crc
$datadir
/ffmpeg.crc
>
/tmp/ffmpeg
$$
2>&1
echo
$ffmpeg
$FFMPEG_OPTS
$*
-f
crc
"
$crcfile
"
$ffmpeg
$FFMPEG_OPTS
$*
-f
crc
"
$crcfile
"
>
/tmp/ffmpeg
$$
2>&1
egrep
-v
"^(Stream|Press|Input|Output|frame| Stream| Duration|video:|ffmpeg version| configuration| built)"
/tmp/ffmpeg
$$
||
true
rm
-f
/tmp/ffmpeg
$$
echo
"
$f
`
cat
$datadir
/ffmpeg.crc
`
"
>>
$logfile
echo
"
$f
`
cat
$crcfile
`
"
>>
$logfile
rm
-f
"
$crcfile
"
}
do_ffmpeg_nocheck
()
...
...
@@ -141,7 +139,7 @@ do_libav()
do_streamed_images
()
{
file
=
${
outfile
}
libav
.
$1
file
=
${
outfile
}
${
1
}
pipe
.
$1
do_ffmpeg
$file
-t
1
-y
-qscale
10
-f
pgmyuv
-i
$raw_src
-f
image2pipe
$file
do_ffmpeg_crc
$file
-f
image2pipe
-i
$file
}
...
...
@@ -533,49 +531,73 @@ fi
# libavformat testing
###################################
if
[
-n
"
$do_lavf
"
]
;
then
if
[
-n
"
$do_avi
"
]
;
then
# avi
do_libav avi
fi
if
[
-n
"
$do_asf
"
]
;
then
# asf
do_libav asf
"-acodec mp2"
"-r 25"
fi
if
[
-n
"
$do_rm
"
]
;
then
# rm
file
=
${
outfile
}
libav.rm
do_ffmpeg
$file
-t
1
-y
-qscale
10
-f
pgmyuv
-i
$raw_src
-f
s16le
-i
$pcm_src
$file
# broken
#do_ffmpeg_crc $file -i $file
fi
if
[
-n
"
$do_mpg
"
]
;
then
# mpegps
do_libav mpg
fi
if
[
-n
"
$do_ts
"
]
;
then
# mpegts
do_libav ts
fi
if
[
-n
"
$do_swf
"
]
;
then
# swf
do_libav swf
-an
fi
if
[
-n
"
$do_ffm
"
]
;
then
# ffm
do_libav ffm
fi
if
[
-n
"
$do_flv_fmt
"
]
;
then
# flv
do_libav flv
-an
fi
if
[
-n
"
$do_mov
"
]
;
then
# mov
do_libav mov
"-acodec pcm_alaw"
fi
if
[
-n
"
$do_dv_fmt
"
]
;
then
# dv
do_libav dv
"-ar 48000 -r 25 -s pal -ac 2"
fi
if
[
-n
"
$do_gxf
"
]
;
then
# gxf
do_libav gxf
"-ar 48000 -r 25 -s pal -ac 1"
fi
if
[
-n
"
$do_nut
"
]
;
then
# nut
do_libav nut
"-acodec mp2"
fi
if
[
-n
"
$do_mkv
"
]
;
then
# mkv
do_libav mkv
fi
####################
...
...
@@ -585,77 +607,120 @@ do_libav mkv
#do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src $file
#do_ffmpeg_crc $file -i $file
if
[
-n
"
$do_pbmpipe
"
]
;
then
# pbmpipe
do_streamed_images pbm
fi
if
[
-n
"
$do_pgmpipe
"
]
;
then
# pgmpipe
do_streamed_images pgm
fi
if
[
-n
"
$do_ppmpipe
"
]
;
then
# ppmpipe
do_streamed_images ppm
fi
if
[
-n
"
$do_gif
"
]
;
then
# gif
file
=
${
outfile
}
libav.gif
do_ffmpeg
$file
-t
1
-y
-qscale
10
-f
pgmyuv
-i
$raw_src
-pix_fmt
rgb24
$file
#do_ffmpeg_crc $file -i $file
fi
if
[
-n
"
$do_yuv4mpeg
"
]
;
then
# yuv4mpeg
file
=
${
outfile
}
libav.y4m
do_ffmpeg
$file
-t
1
-y
-qscale
10
-f
pgmyuv
-i
$raw_src
$file
#do_ffmpeg_crc $file -i $file
fi
####################
# image formats
if
[
-n
"
$do_pgm
"
]
;
then
# pgm
do_image_formats pgm
fi
if
[
-n
"
$do_ppm
"
]
;
then
# ppm
do_image_formats ppm
fi
if
[
-n
"
$do_bmp
"
]
;
then
# bmp
do_image_formats bmp
fi
if
[
-n
"
$do_tga
"
]
;
then
# tga
do_image_formats tga
fi
if
[
-n
"
$do_tiff
"
]
;
then
# tiff
do_image_formats tiff
"-pix_fmt rgb24"
fi
if
[
-n
"
$do_sgi
"
]
;
then
# sgi
do_image_formats sgi
fi
if
[
-n
"
$do_jpg
"
]
;
then
# jpeg
do_image_formats jpg
"-flags +bitexact -dct fastint -idct simple -pix_fmt yuvj420p"
"-f image2"
fi
####################
# audio only
if
[
-n
"
$do_wav
"
]
;
then
# wav
do_audio_only wav
fi
if
[
-n
"
$do_alaw
"
]
;
then
# alaw
do_audio_only al
fi
if
[
-n
"
$do_mulaw
"
]
;
then
# mulaw
do_audio_only ul
fi
if
[
-n
"
$do_au
"
]
;
then
# au
do_audio_only au
fi
if
[
-n
"
$do_mmf
"
]
;
then
# mmf
do_audio_only mmf
fi
if
[
-n
"
$do_aiff
"
]
;
then
# aiff
do_audio_only aif
fi
if
[
-n
"
$do_voc
"
]
;
then
# voc
do_audio_only voc
fi
if
[
-n
"
$do_ogg
"
]
;
then
# ogg
do_audio_only ogg
fi
####################
# pix_fmt conversions
if
[
-n
"
$do_pixfmt
"
]
;
then
conversions
=
"yuv420p yuv422p yuv444p yuyv422 yuv410p yuv411p yuvj420p
\
yuvj422p yuvj444p rgb24 bgr24 rgb32 rgb565 rgb555 gray monow
\
monob pal8 yuv440p yuvj440p"
...
...
@@ -666,7 +731,6 @@ for pix_fmt in $conversions ; do
do_ffmpeg
$file
-f
rawvideo
-s
352x288
-pix_fmt
$pix_fmt
-i
$raw_dst
\
-f
rawvideo
-s
352x288
-pix_fmt
yuv444p
$file
done
fi
# [ -n "$do_lavf" ]
fi
rm
-f
"
$bench
"
"
$bench2
"
tests/seek.regression.ref
浏览文件 @
2009721d
...
...
@@ -3330,7 +3330,7 @@ ret: 0 st: 0 dts:-209146758205323.718750 pts:-209146758205323.718750 pos:-1 size
ret: 0 st:-1 ts:-0.645825 flags:1
ret: 0 st: 0 dts:-209146758205323.718750 pts:-209146758205323.718750 pos:-1 size:2280 flags:1
----------------
tests/data/b-
libav
.pbm
tests/data/b-
pbmpipe
.pbm
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:-1 size:317075 flags:1
ret:-1 st:-1 ts:-1.000000 flags:0
ret:-1 st:-1 ts:1.894167 flags:1
...
...
@@ -3359,7 +3359,7 @@ ret:-1 st: 0 ts:1.560000 flags:1
ret:-1 st:-1 ts:0.460008 flags:0
ret:-1 st:-1 ts:-0.645825 flags:1
----------------
tests/data/b-
libav
.pgm
tests/data/b-
pgmpipe
.pgm
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:-1 size:2534775 flags:1
ret:-1 st:-1 ts:-1.000000 flags:0
ret:-1 st:-1 ts:1.894167 flags:1
...
...
@@ -3388,7 +3388,7 @@ ret:-1 st: 0 ts:1.560000 flags:1
ret:-1 st:-1 ts:0.460008 flags:0
ret:-1 st:-1 ts:-0.645825 flags:1
----------------
tests/data/b-
libav
.ppm
tests/data/b-
ppmpipe
.ppm
ret: 0 st: 0 dts:0.000000 pts:0.000000 pos:-1 size:7603575 flags:1
ret:-1 st:-1 ts:-1.000000 flags:0
ret:-1 st:-1 ts:1.894167 flags:1
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录