Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
acb17302
Commit
acb17302
authored
Apr 17, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FATE: allow lavf tests to alter input parameters
Change some lavf tests to avoid resampling and channel mixing.
parent
50529804
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
36 deletions
+36
-36
lavf-regression.sh
tests/lavf-regression.sh
+14
-14
dv_fmt
tests/ref/lavf/dv_fmt
+3
-3
gxf
tests/ref/lavf/gxf
+2
-2
mxf
tests/ref/lavf/mxf
+2
-2
mxf_d10
tests/ref/lavf/mxf_d10
+2
-2
lavf_dv
tests/ref/seek/lavf_dv
+13
-13
No files found.
tests/lavf-regression.sh
View file @
acb17302
...
@@ -14,8 +14,8 @@ eval do_$test=y
...
@@ -14,8 +14,8 @@ eval do_$test=y
do_lavf
()
do_lavf
()
{
{
file
=
${
outfile
}
lavf.
$1
file
=
${
outfile
}
lavf.
$1
do_avconv
$file
$DEC_OPTS
-f
image2
-vcodec
pgmyuv
-i
$raw_src
$DEC_OPTS
-ar
44100
-f
s16le
-i
$pcm_src
$ENC_OPTS
-b
:a 64k
-t
1
-qscale
:v 10
$2
do_avconv
$file
$DEC_OPTS
-f
image2
-vcodec
pgmyuv
-i
$raw_src
$DEC_OPTS
-ar
44100
-f
s16le
$2
-i
$pcm_src
$ENC_OPTS
-b
:a 64k
-t
1
-qscale
:v 10
$3
do_avconv_crc
$file
$DEC_OPTS
-i
$target_path
/
$file
$
3
do_avconv_crc
$file
$DEC_OPTS
-i
$target_path
/
$file
$
4
}
}
do_streamed_images
()
do_streamed_images
()
...
@@ -44,11 +44,11 @@ do_audio_only()
...
@@ -44,11 +44,11 @@ do_audio_only()
}
}
if
[
-n
"
$do_avi
"
]
;
then
if
[
-n
"
$do_avi
"
]
;
then
do_lavf avi
"-acodec mp2"
do_lavf avi
"
"
"
-acodec mp2"
fi
fi
if
[
-n
"
$do_asf
"
]
;
then
if
[
-n
"
$do_asf
"
]
;
then
do_lavf asf
"-acodec mp2"
"-r 25"
do_lavf asf
"
"
"
-acodec mp2"
"-r 25"
fi
fi
if
[
-n
"
$do_rm
"
]
;
then
if
[
-n
"
$do_rm
"
]
;
then
...
@@ -63,19 +63,19 @@ do_lavf mpg
...
@@ -63,19 +63,19 @@ do_lavf mpg
fi
fi
if
[
-n
"
$do_mxf
"
]
;
then
if
[
-n
"
$do_mxf
"
]
;
then
do_lavf mxf
"-ar 48000
-bf 2 -timecode_frame_start 264363"
do_lavf mxf
"-ar 48000
"
"
-bf 2 -timecode_frame_start 264363"
fi
fi
if
[
-n
"
$do_mxf_d10
"
]
;
then
if
[
-n
"
$do_mxf_d10
"
]
;
then
do_lavf mxf_d10
"-ar 48000 -ac 2
-r 25 -s 720x576 -vf pad=720:608:0:32 -vcodec mpeg2video -g 0 -flags +ildct+low_delay -dc 10 -non_linear_quant 1 -intra_vlc 1 -qscale 1 -ps 1 -qmin 1 -rc_max_vbv_use 1 -rc_min_vbv_use 1 -pix_fmt yuv422p -minrate 30000k -maxrate 30000k -b 30000k -bufsize 1200000 -top 1 -rc_init_occupancy 1200000 -qmax 12 -f mxf_d10"
do_lavf mxf_d10
"-ar 48000 -ac 2
"
"
-r 25 -s 720x576 -vf pad=720:608:0:32 -vcodec mpeg2video -g 0 -flags +ildct+low_delay -dc 10 -non_linear_quant 1 -intra_vlc 1 -qscale 1 -ps 1 -qmin 1 -rc_max_vbv_use 1 -rc_min_vbv_use 1 -pix_fmt yuv422p -minrate 30000k -maxrate 30000k -b 30000k -bufsize 1200000 -top 1 -rc_init_occupancy 1200000 -qmax 12 -f mxf_d10"
fi
fi
if
[
-n
"
$do_ts
"
]
;
then
if
[
-n
"
$do_ts
"
]
;
then
do_lavf ts
"-mpegts_transport_stream_id 42"
do_lavf ts
"
"
"
-mpegts_transport_stream_id 42"
fi
fi
if
[
-n
"
$do_swf
"
]
;
then
if
[
-n
"
$do_swf
"
]
;
then
do_lavf swf
-an
do_lavf swf
""
"-an"
fi
fi
if
[
-n
"
$do_ffm
"
]
;
then
if
[
-n
"
$do_ffm
"
]
;
then
...
@@ -83,27 +83,27 @@ do_lavf ffm
...
@@ -83,27 +83,27 @@ do_lavf ffm
fi
fi
if
[
-n
"
$do_flv_fmt
"
]
;
then
if
[
-n
"
$do_flv_fmt
"
]
;
then
do_lavf flv
-an
do_lavf flv
""
"-an"
fi
fi
if
[
-n
"
$do_mov
"
]
;
then
if
[
-n
"
$do_mov
"
]
;
then
do_lavf mov
"-acodec pcm_alaw -c:v mpeg4"
do_lavf mov
"
"
"
-acodec pcm_alaw -c:v mpeg4"
fi
fi
if
[
-n
"
$do_dv_fmt
"
]
;
then
if
[
-n
"
$do_dv_fmt
"
]
;
then
do_lavf dv
"-ar 48000
-r 25 -s pal -ac 2"
do_lavf dv
"-ar 48000
"
"
-r 25 -s pal -ac 2"
fi
fi
if
[
-n
"
$do_gxf
"
]
;
then
if
[
-n
"
$do_gxf
"
]
;
then
do_lavf gxf
"-ar 48000
-r 25 -s pal -ac 1"
do_lavf gxf
"-ar 48000
"
"
-r 25 -s pal -ac 1"
fi
fi
if
[
-n
"
$do_nut
"
]
;
then
if
[
-n
"
$do_nut
"
]
;
then
do_lavf nut
"-acodec mp2"
do_lavf nut
"
"
"
-acodec mp2"
fi
fi
if
[
-n
"
$do_mkv
"
]
;
then
if
[
-n
"
$do_mkv
"
]
;
then
do_lavf mkv
"-c:a mp2 -c:v mpeg4"
do_lavf mkv
"
"
"
-c:a mp2 -c:v mpeg4"
fi
fi
...
...
tests/ref/lavf/dv_fmt
View file @
acb17302
522e5e5a46b99f8ad8aabdaf3d2f1869
*./tests/data/lavf/lavf.dv
62577aa72e7c7fb3e781e3717a7c36cb
*./tests/data/lavf/lavf.dv
3
600
000 ./tests/data/lavf/lavf.dv
3
456
000 ./tests/data/lavf/lavf.dv
./tests/data/lavf/lavf.dv CRC=0x
02c0af30
./tests/data/lavf/lavf.dv CRC=0x
37e63092
tests/ref/lavf/gxf
View file @
acb17302
3
46d38d330ab5cb0caa6b5537167bc0
d *./tests/data/lavf/lavf.gxf
3
2e34e23f3740e27e5bcf1621a698aa
d *./tests/data/lavf/lavf.gxf
796392 ./tests/data/lavf/lavf.gxf
796392 ./tests/data/lavf/lavf.gxf
./tests/data/lavf/lavf.gxf CRC=0x
246186eb
./tests/data/lavf/lavf.gxf CRC=0x
4f52fc7f
tests/ref/lavf/mxf
View file @
acb17302
6e9bd63c5cadd7550ad313553ebf665f
*./tests/data/lavf/lavf.mxf
21d359aecf0453a5910d2c1a9ec906b2
*./tests/data/lavf/lavf.mxf
525881 ./tests/data/lavf/lavf.mxf
525881 ./tests/data/lavf/lavf.mxf
./tests/data/lavf/lavf.mxf CRC=0x
4ace0849
./tests/data/lavf/lavf.mxf CRC=0x
773f059a
tests/ref/lavf/mxf_d10
View file @
acb17302
e7168856f2b54c6272685967e707fb21
*./tests/data/lavf/lavf.mxf_d10
b66087558cd1ff8e64290ffd856c88bc
*./tests/data/lavf/lavf.mxf_d10
5330989 ./tests/data/lavf/lavf.mxf_d10
5330989 ./tests/data/lavf/lavf.mxf_d10
./tests/data/lavf/lavf.mxf_d10 CRC=0x
c3f4f92e
./tests/data/lavf/lavf.mxf_d10 CRC=0x
4474d480
tests/ref/seek/lavf_dv
View file @
acb17302
...
@@ -2,51 +2,51 @@ ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
...
@@ -2,51 +2,51 @@ ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
ret: 0 st:-1 flags:0 ts:-1.000000
ret: 0 st:-1 flags:0 ts:-1.000000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
ret: 0 st:-1 flags:1 ts: 1.894167
ret: 0 st:-1 flags:1 ts: 1.894167
ret: 0 st: 0 flags:1 dts: 0.9
60000 pts: 0.96
0000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.9
20000 pts: 0.92
0000 pos: -1 size:144000
ret: 0 st: 0 flags:0 ts: 0.800000
ret: 0 st: 0 flags:0 ts: 0.800000
ret: 0 st: 0 flags:1 dts: 0.800000 pts: 0.800000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.800000 pts: 0.800000 pos: -1 size:144000
ret: 0 st: 0 flags:1 ts:-0.320000
ret: 0 st: 0 flags:1 ts:-0.320000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
ret: 0 st: 1 flags:0 ts: 2.576667
ret: 0 st: 1 flags:0 ts: 2.576667
ret: 0 st: 0 flags:1 dts: 0.9
60000 pts: 0.96
0000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.9
20000 pts: 0.92
0000 pos: -1 size:144000
ret: 0 st: 1 flags:1 ts: 1.470833
ret: 0 st: 1 flags:1 ts: 1.470833
ret: 0 st: 0 flags:1 dts: 0.9
60000 pts: 0.96
0000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.9
20000 pts: 0.92
0000 pos: -1 size:144000
ret: 0 st:-1 flags:0 ts: 0.365002
ret: 0 st:-1 flags:0 ts: 0.365002
ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos: -1 size:144000
ret: 0 st:-1 flags:1 ts:-0.740831
ret: 0 st:-1 flags:1 ts:-0.740831
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
ret: 0 st: 0 flags:0 ts: 2.160000
ret: 0 st: 0 flags:0 ts: 2.160000
ret: 0 st: 0 flags:1 dts: 0.9
60000 pts: 0.96
0000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.9
20000 pts: 0.92
0000 pos: -1 size:144000
ret: 0 st: 0 flags:1 ts: 1.040000
ret: 0 st: 0 flags:1 ts: 1.040000
ret: 0 st: 0 flags:1 dts: 0.9
60000 pts: 0.96
0000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.9
20000 pts: 0.92
0000 pos: -1 size:144000
ret: 0 st: 1 flags:0 ts:-0.058333
ret: 0 st: 1 flags:0 ts:-0.058333
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
ret: 0 st: 1 flags:1 ts: 2.835833
ret: 0 st: 1 flags:1 ts: 2.835833
ret: 0 st: 0 flags:1 dts: 0.9
60000 pts: 0.96
0000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.9
20000 pts: 0.92
0000 pos: -1 size:144000
ret: 0 st:-1 flags:0 ts: 1.730004
ret: 0 st:-1 flags:0 ts: 1.730004
ret: 0 st: 0 flags:1 dts: 0.9
60000 pts: 0.96
0000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.9
20000 pts: 0.92
0000 pos: -1 size:144000
ret: 0 st:-1 flags:1 ts: 0.624171
ret: 0 st:-1 flags:1 ts: 0.624171
ret: 0 st: 0 flags:1 dts: 0.640000 pts: 0.640000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.640000 pts: 0.640000 pos: -1 size:144000
ret: 0 st: 0 flags:0 ts:-0.480000
ret: 0 st: 0 flags:0 ts:-0.480000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
ret: 0 st: 0 flags:1 ts: 2.400000
ret: 0 st: 0 flags:1 ts: 2.400000
ret: 0 st: 0 flags:1 dts: 0.9
60000 pts: 0.96
0000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.9
20000 pts: 0.92
0000 pos: -1 size:144000
ret: 0 st: 1 flags:0 ts: 1.306667
ret: 0 st: 1 flags:0 ts: 1.306667
ret: 0 st: 0 flags:1 dts: 0.9
60000 pts: 0.96
0000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.9
20000 pts: 0.92
0000 pos: -1 size:144000
ret: 0 st: 1 flags:1 ts: 0.200833
ret: 0 st: 1 flags:1 ts: 0.200833
ret: 0 st: 0 flags:1 dts: 0.9
60000 pts: 0.96
0000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.9
20000 pts: 0.92
0000 pos: -1 size:144000
ret: 0 st:-1 flags:0 ts:-0.904994
ret: 0 st:-1 flags:0 ts:-0.904994
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
ret: 0 st:-1 flags:1 ts: 1.989173
ret: 0 st:-1 flags:1 ts: 1.989173
ret: 0 st: 0 flags:1 dts: 0.9
60000 pts: 0.96
0000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.9
20000 pts: 0.92
0000 pos: -1 size:144000
ret: 0 st: 0 flags:0 ts: 0.880000
ret: 0 st: 0 flags:0 ts: 0.880000
ret: 0 st: 0 flags:1 dts: 0.880000 pts: 0.880000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.880000 pts: 0.880000 pos: -1 size:144000
ret: 0 st: 0 flags:1 ts:-0.240000
ret: 0 st: 0 flags:1 ts:-0.240000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: -1 size:144000
ret: 0 st: 1 flags:0 ts: 2.671667
ret: 0 st: 1 flags:0 ts: 2.671667
ret: 0 st: 0 flags:1 dts: 0.9
60000 pts: 0.96
0000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.9
20000 pts: 0.92
0000 pos: -1 size:144000
ret: 0 st: 1 flags:1 ts: 1.565833
ret: 0 st: 1 flags:1 ts: 1.565833
ret: 0 st: 0 flags:1 dts: 0.9
60000 pts: 0.96
0000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.9
20000 pts: 0.92
0000 pos: -1 size:144000
ret: 0 st:-1 flags:0 ts: 0.460008
ret: 0 st:-1 flags:0 ts: 0.460008
ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: -1 size:144000
ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: -1 size:144000
ret: 0 st:-1 flags:1 ts:-0.645825
ret: 0 st:-1 flags:1 ts:-0.645825
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment