~ubuntu-branches/ubuntu/saucy/gst-libav1.0/saucy-proposed

« back to all changes in this revision

Viewing changes to gst-libs/ext/libav/tests/lavf-regression.sh

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2013-07-30 09:00:15 UTC
  • mfrom: (1.1.16) (7.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20130730090015-sc1ou2yssu7q5w4e
Tags: 1.1.3-1
* New upstream development snapshot:
  + debian/control:
    - Build depend on GStreamer and gst-plugins-base >= 1.1.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
do_lavf()
15
15
{
16
16
    file=${outfile}lavf.$1
17
 
    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
18
 
    do_avconv_crc $file $DEC_OPTS -i $target_path/$file $3
 
17
    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
 
18
    do_avconv_crc $file $DEC_OPTS -i $target_path/$file $4
19
19
}
20
20
 
21
21
do_streamed_images()
33
33
    run_avconv $DEC_OPTS -f image2 -vcodec pgmyuv -i $raw_src $2 $ENC_OPTS $3 -t 0.5 -y -qscale 10 $target_path/$file
34
34
    do_md5sum ${outfile}02.$1
35
35
    do_avconv_crc $file $DEC_OPTS $3 -i $target_path/$file
36
 
    wc -c ${outfile}02.$1
 
36
    echo $(wc -c ${outfile}02.$1)
37
37
}
38
38
 
39
39
do_audio_only()
44
44
}
45
45
 
46
46
if [ -n "$do_avi" ] ; then
47
 
do_lavf avi "-acodec mp2"
 
47
do_lavf avi "" "-acodec mp2"
48
48
fi
49
49
 
50
50
if [ -n "$do_asf" ] ; then
51
 
do_lavf asf "-acodec mp2" "-r 25"
 
51
do_lavf asf "" "-acodec mp2" "-r 25"
52
52
fi
53
53
 
54
54
if [ -n "$do_rm" ] ; then
63
63
fi
64
64
 
65
65
if [ -n "$do_mxf" ] ; then
66
 
do_lavf mxf "-ar 48000 -bf 2 -timecode_frame_start 264363"
 
66
do_lavf mxf "-ar 48000" "-bf 2 -timecode_frame_start 264363"
67
67
fi
68
68
 
69
69
if [ -n "$do_mxf_d10" ]; then
70
 
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 -flags2 +ivlc+non_linear_q -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"
 
70
do_lavf mxf_d10 "-ar 48000 -ac 2" "-r 25 -vf scale=720:576,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"
71
71
fi
72
72
 
73
73
if [ -n "$do_ts" ] ; then
74
 
do_lavf ts "-mpegts_transport_stream_id 42"
 
74
do_lavf ts "" "-mpegts_transport_stream_id 42"
75
75
fi
76
76
 
77
77
if [ -n "$do_swf" ] ; then
78
 
do_lavf swf -an
 
78
do_lavf swf "" "-an"
79
79
fi
80
80
 
81
81
if [ -n "$do_ffm" ] ; then
83
83
fi
84
84
 
85
85
if [ -n "$do_flv_fmt" ] ; then
86
 
do_lavf flv -an
 
86
do_lavf flv "" "-an"
87
87
fi
88
88
 
89
89
if [ -n "$do_mov" ] ; then
90
 
do_lavf mov "-acodec pcm_alaw -c:v mpeg4"
 
90
do_lavf mov "" "-acodec pcm_alaw -c:v mpeg4"
91
91
fi
92
92
 
93
93
if [ -n "$do_dv_fmt" ] ; then
94
 
do_lavf dv "-ar 48000 -r 25 -s pal -ac 2"
 
94
do_lavf dv "-ar 48000 -channel_layout stereo" "-r 25 -s pal"
95
95
fi
96
96
 
97
97
if [ -n "$do_gxf" ] ; then
98
 
do_lavf gxf "-ar 48000 -r 25 -s pal -ac 1"
 
98
do_lavf gxf "-ar 48000" "-r 25 -s pal -ac 1"
99
99
fi
100
100
 
101
101
if [ -n "$do_nut" ] ; then
102
 
do_lavf nut "-acodec mp2"
 
102
do_lavf nut "" "-acodec mp2"
103
103
fi
104
104
 
105
105
if [ -n "$do_mkv" ] ; then
106
 
do_lavf mkv "-c:a mp2 -c:v mpeg4"
 
106
do_lavf mkv "" "-c:a mp2 -c:v mpeg4"
107
107
fi
108
108
 
109
109
 
171
171
do_image_formats jpg "-pix_fmt yuvj420p" "-f image2"
172
172
fi
173
173
 
 
174
if [ -n "$do_pam" ] ; then
 
175
do_image_formats pam
 
176
fi
 
177
 
174
178
if [ -n "$do_pcx" ] ; then
175
179
do_image_formats pcx
176
180
fi
177
181
 
 
182
if [ -n "$do_xwd" ] ; then
 
183
do_image_formats xwd
 
184
fi
 
185
 
 
186
if [ -n "$do_dpx" ] ; then
 
187
do_image_formats dpx
 
188
fi
 
189
 
 
190
if [ -n "$do_sunrast" ] ; then
 
191
do_image_formats sun
 
192
fi
 
193
 
178
194
# audio only
179
195
 
180
196
if [ -n "$do_wav" ] ; then
217
233
do_audio_only rso
218
234
fi
219
235
 
 
236
if [ -n "$do_sox" ] ; then
 
237
do_audio_only sox
 
238
fi
 
239
 
220
240
# pix_fmt conversions
221
241
 
222
242
if [ -n "$do_pixfmt" ] ; then