You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

583 lines
15KB

  1. #!/bin/sh
  2. #
  3. # automatic regression test for ffmpeg
  4. #
  5. #
  6. #set -x
  7. # Even in the 21st century some diffs are not supporting -u.
  8. diff -u $0 $0 > /dev/null 2>&1
  9. if [ $? -eq 0 ]; then
  10. diff_cmd="diff -u"
  11. else
  12. diff_cmd="diff"
  13. fi
  14. set -e
  15. datadir="./data"
  16. logfile="$datadir/ffmpeg.regression"
  17. outfile="$datadir/a-"
  18. # tests to do
  19. if [ "$1" = "mpeg4" ] ; then
  20. do_mpeg4=y
  21. elif [ "$1" = "mpeg" ] ; then
  22. do_mpeg=y
  23. do_mpeg2=y
  24. elif [ "$1" = "ac3" ] ; then
  25. do_ac3=y
  26. elif [ "$1" = "libavtest" ] ; then
  27. do_libav=y
  28. logfile="$datadir/libav.regression"
  29. outfile="$datadir/b-"
  30. else
  31. do_mpeg=y
  32. do_mpeg2=y
  33. do_mpeg2thread=y
  34. do_msmpeg4v2=y
  35. do_msmpeg4=y
  36. do_wmv1=y
  37. do_wmv2=y
  38. do_h263=y
  39. do_h263p=y
  40. do_mpeg4=y
  41. do_huffyuv=y
  42. do_mjpeg=y
  43. do_ljpeg=y
  44. do_rv10=y
  45. do_mp2=y
  46. do_ac3=y
  47. do_g726=y
  48. do_adpcm_ima_wav=y
  49. do_adpcm_ms=y
  50. do_rc=y
  51. do_mpeg4adv=y
  52. do_mpeg4thread=y
  53. do_mpeg4nr=y
  54. do_mpeg1b=y
  55. do_asv1=y
  56. do_asv2=y
  57. do_flv=y
  58. do_ffv1=y
  59. do_error=y
  60. fi
  61. # various files
  62. ffmpeg="../ffmpeg_g"
  63. tiny_psnr="./tiny_psnr"
  64. reffile="$2"
  65. benchfile="$datadir/ffmpeg.bench"
  66. raw_src="$3/%d.pgm"
  67. raw_dst="$datadir/out.yuv"
  68. raw_ref="$datadir/ref.yuv"
  69. pcm_src="asynth1.sw"
  70. pcm_dst="$datadir/out.wav"
  71. if [ X"`echo | md5sum 2> /dev/null`" != X ]; then
  72. do_md5sum() { md5sum -b $1; }
  73. elif [ -x /sbin/md5 ]; then
  74. do_md5sum() { /sbin/md5 -r $1 | sed 's# \**\./# *./#'; }
  75. else
  76. do_md5sum() { echo No md5sum program found; }
  77. fi
  78. # create the data directory if it does not exists
  79. mkdir -p $datadir
  80. do_ffmpeg()
  81. {
  82. f="$1"
  83. shift
  84. echo $ffmpeg -y -bitexact -dct_algo 1 -idct_algo 2 $*
  85. $ffmpeg -y -bitexact -dct_algo 1 -idct_algo 2 -benchmark $* > $datadir/bench.tmp 2> /tmp/ffmpeg$$
  86. egrep -v "^(Stream|Press|Input|Output|frame| Stream| Duration)" /tmp/ffmpeg$$ || true
  87. rm -f /tmp/ffmpeg$$
  88. do_md5sum $f >> $logfile
  89. if [ $f = $raw_dst ] ; then
  90. $tiny_psnr $f $raw_ref >> $logfile
  91. fi
  92. expr "`cat $datadir/bench.tmp`" : '.*utime=\(.*s\)' > $datadir/bench2.tmp
  93. echo `cat $datadir/bench2.tmp` $f >> $benchfile
  94. }
  95. do_ffmpeg_crc()
  96. {
  97. f="$1"
  98. shift
  99. echo $ffmpeg -y -bitexact -dct_algo 1 -idct_algo 2 $* -f crc $datadir/ffmpeg.crc
  100. $ffmpeg -y -bitexact -dct_algo 1 -idct_algo 2 $* -f crc $datadir/ffmpeg.crc > /tmp/ffmpeg$$ 2>&1
  101. egrep -v "^(Stream|Press|Input|Output|frame| Stream| Duration)" /tmp/ffmpeg$$ || true
  102. rm -f /tmp/ffmpeg$$
  103. echo "$f `cat $datadir/ffmpeg.crc`" >> $logfile
  104. }
  105. do_ffmpeg_nocheck()
  106. {
  107. f="$1"
  108. shift
  109. echo $ffmpeg -y -bitexact -dct_algo 1 -idct_algo 2 $*
  110. $ffmpeg -y -bitexact -dct_algo 1 -idct_algo 2 -benchmark $* > $datadir/bench.tmp 2> /tmp/ffmpeg$$
  111. egrep -v "^(Stream|Press|Input|Output|frame| Stream| Duration)" /tmp/ffmpeg$$ || true
  112. rm -f /tmp/ffmpeg$$
  113. expr "`cat $datadir/bench.tmp`" : '.*utime=\(.*s\)' > $datadir/bench2.tmp
  114. echo `cat $datadir/bench2.tmp` $f >> $benchfile
  115. }
  116. echo "ffmpeg regression test" > $logfile
  117. echo "ffmpeg benchmarks" > $benchfile
  118. ###################################
  119. # generate reference for quality check
  120. do_ffmpeg_nocheck $raw_ref -y -f pgmyuv -i $raw_src -an -f rawvideo $raw_ref
  121. ###################################
  122. if [ -n "$do_mpeg" ] ; then
  123. # mpeg1 encoding
  124. file=${outfile}mpeg1.mpg
  125. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -f mpeg1video $file
  126. # mpeg1 decoding
  127. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  128. fi
  129. ###################################
  130. if [ -n "$do_mpeg2" ] ; then
  131. # mpeg2 encoding
  132. file=${outfile}mpeg2.mpg
  133. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -vcodec mpeg2video -f mpeg1video $file
  134. # mpeg2 decoding
  135. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  136. # mpeg2 encoding interlaced
  137. file=${outfile}mpeg2i.mpg
  138. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -vcodec mpeg2video -f mpeg1video -ildct -ilme $file
  139. # mpeg2 decoding
  140. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  141. fi
  142. ###################################
  143. if [ -n "$do_mpeg2thread" ] ; then
  144. # mpeg2 encoding interlaced
  145. file=${outfile}mpeg2thread.mpg
  146. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -vcodec mpeg2video -f mpeg1video -bf 2 -ildct -ilme -threads 2 $file
  147. # mpeg2 decoding
  148. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  149. fi
  150. ###################################
  151. if [ -n "$do_msmpeg4v2" ] ; then
  152. # msmpeg4 encoding
  153. file=${outfile}msmpeg4v2.avi
  154. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -an -vcodec msmpeg4v2 $file
  155. # msmpeg4v2 decoding
  156. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  157. fi
  158. ###################################
  159. if [ -n "$do_msmpeg4" ] ; then
  160. # msmpeg4 encoding
  161. file=${outfile}msmpeg4.avi
  162. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -an -vcodec msmpeg4 $file
  163. # msmpeg4 decoding
  164. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  165. fi
  166. ###################################
  167. if [ -n "$do_wmv1" ] ; then
  168. # wmv1 encoding
  169. file=${outfile}wmv1.avi
  170. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -an -vcodec wmv1 $file
  171. # wmv1 decoding
  172. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  173. fi
  174. ###################################
  175. if [ -n "$do_wmv2" ] ; then
  176. # wmv2 encoding
  177. file=${outfile}wmv2.avi
  178. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -an -vcodec wmv2 $file
  179. # wmv2 decoding
  180. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  181. fi
  182. ###################################
  183. if [ -n "$do_h263" ] ; then
  184. # h263 encoding
  185. file=${outfile}h263.avi
  186. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -s 352x288 -an -vcodec h263 $file
  187. # h263 decoding
  188. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  189. fi
  190. ###################################
  191. if [ -n "$do_h263p" ] ; then
  192. # h263p encoding
  193. file=${outfile}h263p.avi
  194. do_ffmpeg $file -y -qscale 2 -umv -aiv -aic -f pgmyuv -i $raw_src -s 352x288 -an -vcodec h263p -ps 300 $file
  195. # h263p decoding
  196. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  197. fi
  198. ###################################
  199. if [ -n "$do_mpeg4" ] ; then
  200. # mpeg4
  201. file=${outfile}odivx.mp4
  202. do_ffmpeg $file -y -4mv -hq -qscale 10 -f pgmyuv -i $raw_src -an -vcodec mpeg4 $file
  203. # mpeg4 decoding
  204. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  205. fi
  206. ###################################
  207. if [ -n "$do_huffyuv" ] ; then
  208. # huffyuv
  209. file=${outfile}huffyuv.avi
  210. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -an -vcodec huffyuv -strict -1 $file
  211. # huffyuv decoding
  212. do_ffmpeg $raw_dst -y -i $file -f rawvideo -strict -1 $raw_dst
  213. fi
  214. ###################################
  215. if [ -n "$do_rc" ] ; then
  216. # mpeg4 rate control
  217. file=${outfile}mpeg4-rc.avi
  218. do_ffmpeg $file -y -b 400 -bf 2 -f pgmyuv -i $raw_src -an -vcodec mpeg4 $file
  219. # mpeg4 rate control decoding
  220. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  221. fi
  222. ###################################
  223. if [ -n "$do_mpeg4adv" ] ; then
  224. # mpeg4
  225. file=${outfile}mpeg4-adv.avi
  226. do_ffmpeg $file -y -qscale 9 -4mv -hq -part -ps 200 -aic -trell -f pgmyuv -i $raw_src -an -vcodec mpeg4 $file
  227. # mpeg4 decoding
  228. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  229. fi
  230. ###################################
  231. if [ -n "$do_mpeg4thread" ] ; then
  232. # mpeg4
  233. file=${outfile}mpeg4-thread.avi
  234. do_ffmpeg $file -y -b 500 -4mv -hq -part -ps 200 -aic -trell -bf 2 -f pgmyuv -i $raw_src -an -vcodec mpeg4 -threads 2 $file
  235. # mpeg4 decoding
  236. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  237. fi
  238. ###################################
  239. if [ -n "$do_error" ] ; then
  240. # damaged mpeg4
  241. file=${outfile}error-mpeg4-adv.avi
  242. do_ffmpeg $file -y -qscale 7 -4mv -mbd 2 -part -ps 250 -error 10 -aic -f pgmyuv -i $raw_src -an -vcodec mpeg4 $file
  243. # damaged mpeg4 decoding
  244. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  245. fi
  246. ###################################
  247. if [ -n "$do_mpeg4nr" ] ; then
  248. # noise reduction
  249. file=${outfile}mpeg4-nr.avi
  250. do_ffmpeg $file -y -qscale 8 -4mv -mbd 2 -nr 200 -f pgmyuv -i $raw_src -an -vcodec mpeg4 $file
  251. # mpeg4 decoding
  252. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  253. fi
  254. ###################################
  255. if [ -n "$do_mpeg1b" ] ; then
  256. # mpeg1
  257. file=${outfile}mpeg1b.mpg
  258. do_ffmpeg $file -y -qscale 8 -bf 3 -ps 200 -f pgmyuv -i $raw_src -an -vcodec mpeg1video -f mpeg1video $file
  259. # mpeg1 decoding
  260. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  261. fi
  262. ###################################
  263. if [ -n "$do_mjpeg" ] ; then
  264. # mjpeg
  265. file=${outfile}mjpeg.avi
  266. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -an -vcodec mjpeg $file
  267. # mjpeg decoding
  268. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  269. fi
  270. ###################################
  271. if [ -n "$do_ljpeg" ] ; then
  272. # ljpeg
  273. file=${outfile}ljpeg.avi
  274. do_ffmpeg $file -y -f pgmyuv -i $raw_src -an -vcodec ljpeg $file
  275. # ljpeg decoding
  276. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  277. fi
  278. ###################################
  279. if [ -n "$do_rv10" ] ; then
  280. # rv10 encoding
  281. file=${outfile}rv10.rm
  282. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -an $file
  283. # rv10 decoding
  284. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  285. fi
  286. ###################################
  287. if [ -n "$do_asv1" ] ; then
  288. # asv1 encoding
  289. file=${outfile}asv1.avi
  290. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -an -vcodec asv1 $file
  291. # asv1 decoding
  292. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  293. fi
  294. ###################################
  295. if [ -n "$do_asv2" ] ; then
  296. # asv2 encoding
  297. file=${outfile}asv2.avi
  298. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -an -vcodec asv2 $file
  299. # asv2 decoding
  300. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  301. fi
  302. ###################################
  303. if [ -n "$do_flv" ] ; then
  304. # flv encoding
  305. file=${outfile}flv.flv
  306. do_ffmpeg $file -y -qscale 10 -f pgmyuv -i $raw_src -an -vcodec flv $file
  307. # flv decoding
  308. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  309. fi
  310. ###################################
  311. if [ -n "$do_ffv1" ] ; then
  312. # ffv1 encoding
  313. file=${outfile}ffv1.avi
  314. do_ffmpeg $file -y -strict -1 -f pgmyuv -i $raw_src -an -vcodec ffv1 $file
  315. # ffv1 decoding
  316. do_ffmpeg $raw_dst -y -i $file -f rawvideo $raw_dst
  317. fi
  318. ###################################
  319. if [ -n "$do_mp2" ] ; then
  320. # mp2 encoding
  321. file=${outfile}mp2.mp2
  322. do_ffmpeg $file -y -ab 128 -ac 2 -ar 44100 -f s16le -i $pcm_src $file
  323. # mp2 decoding
  324. do_ffmpeg $pcm_dst -y -i $file -f wav $pcm_dst
  325. fi
  326. ###################################
  327. if [ -n "$do_ac3" ] ; then
  328. # ac3 encoding
  329. file=${outfile}ac3.rm
  330. do_ffmpeg $file -y -ab 128 -ac 2 -f s16le -i $pcm_src -vn $file
  331. # ac3 decoding
  332. #do_ffmpeg $pcm_dst -y -i $file -f wav $pcm_dst
  333. fi
  334. ###################################
  335. if [ -n "$do_g726" ] ; then
  336. # g726 encoding
  337. file=${outfile}g726.wav
  338. do_ffmpeg $file -y -ab 128 -ac 2 -ar 44100 -f s16le -i $pcm_src -ab 32 -ac 1 -ar 8000 -acodec g726 $file
  339. # g726 decoding
  340. do_ffmpeg $pcm_dst -y -i $file -f wav $pcm_dst
  341. fi
  342. ###################################
  343. if [ -n "$do_adpcm_ima_wav" ] ; then
  344. # encoding
  345. file=${outfile}adpcm_ima.wav
  346. do_ffmpeg $file -y -ab 128 -ac 2 -ar 44100 -f s16le -i $pcm_src -acodec adpcm_ima_wav $file
  347. # decoding
  348. do_ffmpeg $pcm_dst -y -i $file -f wav $pcm_dst
  349. fi
  350. ###################################
  351. if [ -n "$do_adpcm_ms" ] ; then
  352. # encoding
  353. file=${outfile}adpcm_ms.wav
  354. do_ffmpeg $file -y -ab 128 -ac 2 -ar 44100 -f s16le -i $pcm_src -acodec adpcm_ms $file
  355. # decoding
  356. do_ffmpeg $pcm_dst -y -i $file -f wav $pcm_dst
  357. fi
  358. ###################################
  359. # libav testing
  360. ###################################
  361. if [ -n "$do_libav" ] ; then
  362. # avi
  363. file=${outfile}libav.avi
  364. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src $file
  365. do_ffmpeg_crc $file -i $file
  366. # asf
  367. file=${outfile}libav.asf
  368. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src -acodec mp2 $file
  369. do_ffmpeg_crc $file -i $file
  370. # rm
  371. file=${outfile}libav.rm
  372. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src $file
  373. # broken
  374. #do_ffmpeg_crc $file -i $file
  375. # mpegps
  376. file=${outfile}libav.mpg
  377. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src $file
  378. do_ffmpeg_crc $file -i $file
  379. # swf (decode audio only)
  380. file=${outfile}libav.swf
  381. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src -acodec mp2 $file
  382. do_ffmpeg_crc $file -i $file
  383. # ffm
  384. #file=${outfile}libav.ffm
  385. #do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src $file
  386. #do_ffmpeg_crc $file -i $file
  387. # flv
  388. file=${outfile}libav.flv
  389. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src -an $file
  390. do_ffmpeg_crc $file -i $file
  391. # mov
  392. file=${outfile}libav.mov
  393. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src -acodec pcm_alaw $file
  394. do_ffmpeg_crc $file -i $file
  395. # nut
  396. file=${outfile}libav.nut
  397. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src -acodec mp2 $file
  398. do_ffmpeg_crc $file -i $file
  399. # XXX: need mpegts tests (add bitstreams or add output capability in ffmpeg)
  400. ####################
  401. # streamed images
  402. # mjpeg
  403. #file=${outfile}libav.mjpeg
  404. #do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src $file
  405. #do_ffmpeg_crc $file -i $file
  406. # pbmpipe
  407. file=${outfile}libav.pbm
  408. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f imagepipe $file
  409. do_ffmpeg_crc $file -f imagepipe -i $file
  410. # pgmpipe
  411. file=${outfile}libav.pgm
  412. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f imagepipe $file
  413. do_ffmpeg_crc $file -f imagepipe -i $file
  414. # ppmpipe
  415. file=${outfile}libav.ppm
  416. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f imagepipe $file
  417. do_ffmpeg_crc $file -f imagepipe -i $file
  418. # gif
  419. file=${outfile}libav.gif
  420. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src $file
  421. #do_ffmpeg_crc $file -i $file
  422. # yuv4mpeg
  423. file=${outfile}libav.yuv4mpeg
  424. do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src $file
  425. #do_ffmpeg_crc $file -i $file
  426. ####################
  427. # image formats
  428. # pgm (we do not do md5 on image files yet)
  429. file=${outfile}libav%d.pgm
  430. $ffmpeg -t 0.5 -y -qscale 10 -f pgmyuv -i $raw_src $file
  431. do_ffmpeg_crc $file -i $file
  432. # ppm (we do not do md5 on image files yet)
  433. file=${outfile}libav%d.ppm
  434. $ffmpeg -t 0.5 -y -qscale 10 -f pgmyuv -i $raw_src $file
  435. do_ffmpeg_crc $file -i $file
  436. # jpeg (we do not do md5 on image files yet)
  437. #file=${outfile}libav%d.jpg
  438. #$ffmpeg -t 0.5 -y -qscale 10 -f pgmyuv -i $raw_src $file
  439. #do_ffmpeg_crc $file -i $file
  440. ####################
  441. # audio only
  442. # wav
  443. file=${outfile}libav.wav
  444. do_ffmpeg $file -t 1 -y -qscale 10 -f s16le -i $pcm_src $file
  445. do_ffmpeg_crc $file -i $file
  446. # alaw
  447. file=${outfile}libav.al
  448. do_ffmpeg $file -t 1 -y -qscale 10 -f s16le -i $pcm_src $file
  449. do_ffmpeg_crc $file -i $file
  450. # mulaw
  451. file=${outfile}libav.ul
  452. do_ffmpeg $file -t 1 -y -qscale 10 -f s16le -i $pcm_src $file
  453. do_ffmpeg_crc $file -i $file
  454. # au
  455. file=${outfile}libav.au
  456. do_ffmpeg $file -t 1 -y -qscale 10 -f s16le -i $pcm_src $file
  457. do_ffmpeg_crc $file -i $file
  458. ####################
  459. # pix_fmt conversions
  460. conversions="yuv420p yuv422p yuv444p yuv422 yuv410p yuv411p yuvj420p \
  461. yuvj422p yuvj444p rgb24 bgr24 rgba32 rgb565 rgb555 gray monow \
  462. monob pal8"
  463. for pix_fmt in $conversions ; do
  464. file=${outfile}libav-${pix_fmt}.yuv
  465. do_ffmpeg_nocheck $file -r 1 -t 1 -y -f pgmyuv -i $raw_src \
  466. -f rawvideo -s 352x288 -pix_fmt $pix_fmt $raw_dst
  467. do_ffmpeg $file -f rawvideo -s 352x288 -pix_fmt $pix_fmt -i $raw_dst \
  468. -f rawvideo -s 352x288 -pix_fmt yuv444p $file
  469. done
  470. fi
  471. if $diff_cmd $logfile $reffile ; then
  472. echo
  473. echo Regression test succeeded.
  474. exit 0
  475. else
  476. echo
  477. echo Regression test: Error.
  478. exit 1
  479. fi