Revision bddbd7d3
tests/regression.sh | ||
---|---|---|
108 | 108 |
|
109 | 109 |
do_video_decoding() |
110 | 110 |
{ |
111 |
do_ffmpeg $raw_dst -y $1 -i $file -f rawvideo $2 $raw_dst
|
|
111 |
do_ffmpeg $raw_dst $1 -i $file -f rawvideo $2 $raw_dst |
|
112 | 112 |
rm -f $raw_dst |
113 | 113 |
} |
114 | 114 |
|
115 | 115 |
do_video_encoding() |
116 | 116 |
{ |
117 | 117 |
file=${outfile}$1 |
118 |
do_ffmpeg $file -y $2 -f image2 -vcodec pgmyuv -i $raw_src $3 $file
|
|
118 |
do_ffmpeg $file $2 -f image2 -vcodec pgmyuv -i $raw_src $3 $file |
|
119 | 119 |
} |
120 | 120 |
|
121 | 121 |
do_audio_encoding() |
122 | 122 |
{ |
123 | 123 |
file=${outfile}$1 |
124 |
do_ffmpeg $file -y -ab 128k -ac 2 -f s16le -i $pcm_src $3 $file
|
|
124 |
do_ffmpeg $file -ab 128k -ac 2 -f s16le -i $pcm_src $3 $file |
|
125 | 125 |
} |
126 | 126 |
|
127 | 127 |
do_audio_decoding() |
128 | 128 |
{ |
129 |
do_ffmpeg $pcm_dst -y -i $file -f wav $pcm_dst
|
|
129 |
do_ffmpeg $pcm_dst -i $file -f wav $pcm_dst |
|
130 | 130 |
} |
131 | 131 |
|
132 | 132 |
do_libav() |
133 | 133 |
{ |
134 | 134 |
file=${outfile}libav.$1 |
135 |
do_ffmpeg $file -t 1 -y -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src -f s16le -i $pcm_src $2 $file
|
|
135 |
do_ffmpeg $file -t 1 -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src -f s16le -i $pcm_src $2 $file |
|
136 | 136 |
do_ffmpeg_crc $file -i $file $3 |
137 | 137 |
} |
138 | 138 |
|
139 | 139 |
do_streamed_images() |
140 | 140 |
{ |
141 | 141 |
file=${outfile}${1}pipe.$1 |
142 |
do_ffmpeg $file -t 1 -y -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src -f image2pipe $file
|
|
142 |
do_ffmpeg $file -t 1 -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src -f image2pipe $file |
|
143 | 143 |
do_ffmpeg_crc $file -f image2pipe -i $file |
144 | 144 |
} |
145 | 145 |
|
... | ... | |
155 | 155 |
do_audio_only() |
156 | 156 |
{ |
157 | 157 |
file=${outfile}libav.$1 |
158 |
do_ffmpeg $file -t 1 -y -qscale 10 -f s16le -i $pcm_src $file
|
|
158 |
do_ffmpeg $file -t 1 -qscale 10 -f s16le -i $pcm_src $file |
|
159 | 159 |
do_ffmpeg_crc $file -i $file |
160 | 160 |
} |
161 | 161 |
|
... | ... | |
164 | 164 |
|
165 | 165 |
# generate reference for quality check |
166 | 166 |
if [ -n "$do_ref" ]; then |
167 |
do_ffmpeg_nocheck $raw_ref -y -f image2 -vcodec pgmyuv -i $raw_src -an -f rawvideo $raw_ref
|
|
168 |
do_ffmpeg_nocheck $pcm_ref -y -ab 128k -ac 2 -ar 44100 -f s16le -i $pcm_src -f wav $pcm_ref
|
|
167 |
do_ffmpeg_nocheck $raw_ref -f image2 -vcodec pgmyuv -i $raw_src -an -f rawvideo $raw_ref |
|
168 |
do_ffmpeg_nocheck $pcm_ref -ab 128k -ac 2 -ar 44100 -f s16le -i $pcm_src -f wav $pcm_ref |
|
169 | 169 |
fi |
170 | 170 |
|
171 | 171 |
if [ -n "$do_mpeg" ] ; then |
... | ... | |
203 | 203 |
|
204 | 204 |
# mpeg2 encoding interlaced |
205 | 205 |
file=${outfile}mpeg2reuse.mpg |
206 |
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
|
|
206 |
do_ffmpeg $file -sameq -me_threshold 256 -mb_threshold 1024 -i ${outfile}mpeg2thread.mpg -vcodec mpeg2video -f mpeg1video -bf 2 -flags +ildct+ilme -threads 4 $file |
|
207 | 207 |
do_video_decoding |
208 | 208 |
fi |
209 | 209 |
|
... | ... | |
415 | 415 |
if [ -n "$do_wma" ] ; then |
416 | 416 |
# wmav1 |
417 | 417 |
do_audio_encoding wmav1.asf "-ar 44100" "-acodec wmav1" |
418 |
do_ffmpeg_nomd5 $pcm_dst -y -i $file -f wav $pcm_dst
|
|
418 |
do_ffmpeg_nomd5 $pcm_dst -i $file -f wav $pcm_dst |
|
419 | 419 |
$tiny_psnr $pcm_dst $pcm_ref 2 8192 >> $logfile |
420 | 420 |
# wmav2 |
421 | 421 |
do_audio_encoding wmav2.asf "-ar 44100" "-acodec wmav2" |
422 |
do_ffmpeg_nomd5 $pcm_dst -y -i $file -f wav $pcm_dst
|
|
422 |
do_ffmpeg_nomd5 $pcm_dst -i $file -f wav $pcm_dst |
|
423 | 423 |
$tiny_psnr $pcm_dst $pcm_ref 2 8192 >> $logfile |
424 | 424 |
fi |
425 | 425 |
|
... | ... | |
442 | 442 |
|
443 | 443 |
if [ -n "$do_rm" ] ; then |
444 | 444 |
file=${outfile}libav.rm |
445 |
do_ffmpeg $file -t 1 -y -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src -f s16le -i $pcm_src $file
|
|
445 |
do_ffmpeg $file -t 1 -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src -f s16le -i $pcm_src $file |
|
446 | 446 |
# broken |
447 | 447 |
#do_ffmpeg_crc $file -i $file |
448 | 448 |
fi |
... | ... | |
491 | 491 |
# streamed images |
492 | 492 |
# mjpeg |
493 | 493 |
#file=${outfile}libav.mjpeg |
494 |
#do_ffmpeg $file -t 1 -y -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src $file
|
|
494 |
#do_ffmpeg $file -t 1 -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src $file |
|
495 | 495 |
#do_ffmpeg_crc $file -i $file |
496 | 496 |
|
497 | 497 |
if [ -n "$do_pbmpipe" ] ; then |
... | ... | |
508 | 508 |
|
509 | 509 |
if [ -n "$do_gif" ] ; then |
510 | 510 |
file=${outfile}libav.gif |
511 |
do_ffmpeg $file -t 1 -y -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src -pix_fmt rgb24 $file
|
|
511 |
do_ffmpeg $file -t 1 -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src -pix_fmt rgb24 $file |
|
512 | 512 |
#do_ffmpeg_crc $file -i $file |
513 | 513 |
fi |
514 | 514 |
|
515 | 515 |
if [ -n "$do_yuv4mpeg" ] ; then |
516 | 516 |
file=${outfile}libav.y4m |
517 |
do_ffmpeg $file -t 1 -y -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src $file
|
|
517 |
do_ffmpeg $file -t 1 -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src $file |
|
518 | 518 |
#do_ffmpeg_crc $file -i $file |
519 | 519 |
fi |
520 | 520 |
|
... | ... | |
590 | 590 |
monob pal8 yuv440p yuvj440p" |
591 | 591 |
for pix_fmt in $conversions ; do |
592 | 592 |
file=${outfile}libav-${pix_fmt}.yuv |
593 |
do_ffmpeg_nocheck $file -r 1 -t 1 -y -f image2 -vcodec pgmyuv -i $raw_src \
|
|
593 |
do_ffmpeg_nocheck $file -r 1 -t 1 -f image2 -vcodec pgmyuv -i $raw_src \ |
|
594 | 594 |
-f rawvideo -s 352x288 -pix_fmt $pix_fmt $raw_dst |
595 | 595 |
do_ffmpeg $file -f rawvideo -s 352x288 -pix_fmt $pix_fmt -i $raw_dst \ |
596 | 596 |
-f rawvideo -s 352x288 -pix_fmt yuv444p $file |
Also available in: Unified diff