History

timecode: add write regressions tests.

Clément Bœsch committed 14 years ago

Commit b18ebcb1 parent de05e416 files · +48 −4Browse files

Unified · Split

6 files
  1. tests/lavf-regression.sh +17 −3
  2. tests/ref/lavf/dv_fmt +6 −0
  3. tests/ref/lavf/gxf +6 −0
  4. tests/ref/lavf/mov +6 −0
  5. tests/ref/lavf/mpg +6 −0
  6. tests/ref/lavf/mxf +7 −1
tests/lavf-regression.sh+17−3
@@ -20,6 +20,16 @@ do_lavf() · 19 unmodified lines
20 do_avconv_crc $file $DEC_OPTS -i $target_path/$file $320 do_avconv_crc $file $DEC_OPTS -i $target_path/$file $3
21}21}
22 22
23do_lavf_timecode_nodrop() { do_lavf $1 "$2 -timecode 02:56:14:13"; }
24do_lavf_timecode_drop() { do_lavf $1 "$2 -timecode 02:56:14.13 -r 30000/1001"; }
25
26do_lavf_timecode()
27{
28 do_lavf_timecode_nodrop "$@"
29 do_lavf_timecode_drop "$@"
30 do_lavf "$@"
31}
32
23do_streamed_images()33do_streamed_images()
24{34{
25 file=${outfile}${1}pipe.$135 file=${outfile}${1}pipe.$1
@@ -61,11 +71,11 @@ do_avconv $file $DEC_OPTS -f image2 -vcodec pgmyuv -i $raw_src $DEC_OPTS -ar 441 · 35 unmodified lines
61fi71fi
62 72
63if [ -n "$do_mpg" ] ; then73if [ -n "$do_mpg" ] ; then
64do_lavf mpg "-ab 64k"74do_lavf_timecode mpg "-ab 64k"
65fi75fi
66 76
67if [ -n "$do_mxf" ] ; then77if [ -n "$do_mxf" ] ; then
68do_lavf mxf "-ar 48000 -bf 2 -timecode 02:56:14:13"78do_lavf_timecode mxf "-ar 48000 -bf 2"
69fi79fi
70 80
71if [ -n "$do_mxf_d10" ]; then81if [ -n "$do_mxf_d10" ]; then
@@ -89,14 +99,18 @@ do_lavf flv -an · 17 unmodified lines
89fi99fi
90 100
91if [ -n "$do_mov" ] ; then101if [ -n "$do_mov" ] ; then
92do_lavf mov "-acodec pcm_alaw -vcodec mpeg4"102do_lavf_timecode mov "-acodec pcm_alaw -vcodec mpeg4"
93fi103fi
94 104
95if [ -n "$do_dv_fmt" ] ; then105if [ -n "$do_dv_fmt" ] ; then
106do_lavf_timecode_nodrop dv "-ar 48000 -r 25 -s pal -ac 2"
107do_lavf_timecode_drop dv "-ar 48000 -pix_fmt yuv411p -s ntsc -ac 2"
96do_lavf dv "-ar 48000 -r 25 -s pal -ac 2"108do_lavf dv "-ar 48000 -r 25 -s pal -ac 2"
97fi109fi
98 110
99if [ -n "$do_gxf" ] ; then111if [ -n "$do_gxf" ] ; then
112do_lavf_timecode_nodrop gxf "-ar 48000 -r 25 -s pal -ac 1"
113do_lavf_timecode_drop gxf "-ar 48000 -s ntsc -ac 1"
100do_lavf gxf "-ar 48000 -r 25 -s pal -ac 1"114do_lavf gxf "-ar 48000 -r 25 -s pal -ac 1"
101fi115fi
102 116
tests/ref/lavf/dv_fmt+6−0
@@ -1,3 +1,9 @@
16f9cfff48f536fa727696f2f9fb3ac08 *./tests/data/lavf/lavf.dv
23600000 ./tests/data/lavf/lavf.dv
3./tests/data/lavf/lavf.dv CRC=0x5ce4e5e4
4cc33ae4f9e6828914dea0f09d1241b7e *./tests/data/lavf/lavf.dv
53480000 ./tests/data/lavf/lavf.dv
6./tests/data/lavf/lavf.dv CRC=0x8d5e9e8f
13a6a9163a67b729b4a6b5d972ccceb97 *./tests/data/lavf/lavf.dv73a6a9163a67b729b4a6b5d972ccceb97 *./tests/data/lavf/lavf.dv
23600000 ./tests/data/lavf/lavf.dv83600000 ./tests/data/lavf/lavf.dv
3./tests/data/lavf/lavf.dv CRC=0x5ce4e5e49./tests/data/lavf/lavf.dv CRC=0x5ce4e5e4
tests/ref/lavf/gxf+6−0
@@ -1,3 +1,9 @@
1befc1a39c37a4ecd9264942a3e34b3f6 *./tests/data/lavf/lavf.gxf
2796392 ./tests/data/lavf/lavf.gxf
3./tests/data/lavf/lavf.gxf CRC=0x102918fd
4267d2b2b6e357209d76c366302cf35c3 *./tests/data/lavf/lavf.gxf
5794572 ./tests/data/lavf/lavf.gxf
6./tests/data/lavf/lavf.gxf CRC=0xab47d02d
11c1693cf2358025f1e37ac76e1da925a *./tests/data/lavf/lavf.gxf71c1693cf2358025f1e37ac76e1da925a *./tests/data/lavf/lavf.gxf
2796392 ./tests/data/lavf/lavf.gxf8796392 ./tests/data/lavf/lavf.gxf
3./tests/data/lavf/lavf.gxf CRC=0x102918fd9./tests/data/lavf/lavf.gxf CRC=0x102918fd
tests/ref/lavf/mov+6−0
@@ -1,3 +1,9 @@
19a0b239ff596da58debcf210dece3985 *./tests/data/lavf/lavf.mov19a0b239ff596da58debcf210dece3985 *./tests/data/lavf/lavf.mov
2357821 ./tests/data/lavf/lavf.mov2357821 ./tests/data/lavf/lavf.mov
3./tests/data/lavf/lavf.mov CRC=0x2f6a9b263./tests/data/lavf/lavf.mov CRC=0x2f6a9b26
4cea874222a6d40b1761d75ea11ebe681 *./tests/data/lavf/lavf.mov
5367251 ./tests/data/lavf/lavf.mov
6./tests/data/lavf/lavf.mov CRC=0xab307eb9
79a0b239ff596da58debcf210dece3985 *./tests/data/lavf/lavf.mov
8357821 ./tests/data/lavf/lavf.mov
9./tests/data/lavf/lavf.mov CRC=0x2f6a9b26
tests/ref/lavf/mpg+6−0
@@ -1,3 +1,9 @@
16103dbae73aec6c9bf05bbbc6ea35f89 *./tests/data/lavf/lavf.mpg
2372736 ./tests/data/lavf/lavf.mpg
3./tests/data/lavf/lavf.mpg CRC=0xf361ed74
491b42dd3352e21dd0dee57f6a7241ca2 *./tests/data/lavf/lavf.mpg
5387072 ./tests/data/lavf/lavf.mpg
6./tests/data/lavf/lavf.mpg CRC=0x3d6ddf56
1dd60652c2193670abffb8c2a123a820e *./tests/data/lavf/lavf.mpg7dd60652c2193670abffb8c2a123a820e *./tests/data/lavf/lavf.mpg
2372736 ./tests/data/lavf/lavf.mpg8372736 ./tests/data/lavf/lavf.mpg
3./tests/data/lavf/lavf.mpg CRC=0xf361ed749./tests/data/lavf/lavf.mpg CRC=0xf361ed74
tests/ref/lavf/mxf+7−1
@@ -1,3 +1,9 @@
1785e38ddd2466046f30aa36399b8f8fa *./tests/data/lavf/lavf.mxf1785e38ddd2466046f30aa36399b8f8fa *./tests/data/lavf/lavf.mxf
2525881 ./tests/data/lavf/lavf.mxf2525881 ./tests/data/lavf/lavf.mxf
3./tests/data/lavf/lavf.mxf CRC=0x4ace08493./tests/data/lavf/lavf.mxf CRC=0x4ace0849
4ccaa42c75e653f71604fd28c7c83722d *./tests/data/lavf/lavf.mxf
5537657 ./tests/data/lavf/lavf.mxf
6./tests/data/lavf/lavf.mxf CRC=0x9b928d6b
7c78207030d57b48295b089916849d50d *./tests/data/lavf/lavf.mxf
8525881 ./tests/data/lavf/lavf.mxf
9./tests/data/lavf/lavf.mxf CRC=0x4ace0849

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t