Revision 0fc3a831

View differences:

tests/regression.sh
219 219

  
220 220
###################################
221 221
if [ -n "$do_mpeg" ] ; then
222
# mpeg1 encoding
222
# mpeg1
223 223
do_video_encoding mpeg1.mpg "-qscale 10" pgmyuv "-f mpeg1video"
224

  
225
# mpeg1 decoding
226 224
do_video_decoding
227 225
fi
228 226

  
229 227
###################################
230 228
if [ -n "$do_mpeg2" ] ; then
231
# mpeg2 encoding
229
# mpeg2
232 230
do_video_encoding mpeg2.mpg "-qscale 10" pgmyuv "-vcodec mpeg2video -f mpeg1video"
233

  
234
# mpeg2 decoding
235 231
do_video_decoding
236 232

  
237 233
# mpeg2 encoding intra vlc qprd
......
240 236
# mpeg2 decoding
241 237
do_video_decoding
242 238

  
243
# mpeg2 encoding
239
# mpeg2
244 240
do_video_encoding mpeg2.mpg "-qscale 10" pgmyuv "-vcodec mpeg2video -idct int -dct int -f mpeg1video"
245

  
246
# mpeg2 decoding
247 241
do_video_decoding "-idct int"
248 242

  
249 243
# mpeg2 encoding interlaced
......
277 271

  
278 272
###################################
279 273
if [ -n "$do_msmpeg4v2" ] ; then
280
# msmpeg4 encoding
274
# msmpeg4
281 275
do_video_encoding msmpeg4v2.avi "-qscale 10" pgmyuv "-an -vcodec msmpeg4v2"
282

  
283
# msmpeg4v2 decoding
284 276
do_video_decoding
285 277
fi
286 278

  
287 279
###################################
288 280
if [ -n "$do_msmpeg4" ] ; then
289
# msmpeg4 encoding
281
# msmpeg4
290 282
do_video_encoding msmpeg4.avi "-qscale 10" pgmyuv "-an -vcodec msmpeg4"
291

  
292
# msmpeg4 decoding
293 283
do_video_decoding
294 284
fi
295 285

  
296 286
###################################
297 287
if [ -n "$do_wmv1" ] ; then
298
# wmv1 encoding
288
# wmv1
299 289
do_video_encoding wmv1.avi "-qscale 10" pgmyuv "-an -vcodec wmv1"
300

  
301
# wmv1 decoding
302 290
do_video_decoding
303 291
fi
304 292

  
305 293
###################################
306 294
if [ -n "$do_wmv2" ] ; then
307
# wmv2 encoding
295
# wmv2
308 296
do_video_encoding wmv2.avi "-qscale 10" pgmyuv "-an -vcodec wmv2"
309

  
310
# wmv2 decoding
311 297
do_video_decoding
312 298
fi
313 299

  
314 300
###################################
315 301
if [ -n "$do_h261" ] ; then
316
# h261 encoding
302
# h261
317 303
do_video_encoding h261.avi "-qscale 11" pgmyuv "-s 352x288 -an -vcodec h261"
318

  
319
# h261 decoding
320 304
do_video_decoding
321 305
fi
322 306

  
323 307
###################################
324 308
if [ -n "$do_h263" ] ; then
325
# h263 encoding
309
# h263
326 310
do_video_encoding h263.avi "-qscale 10" pgmyuv "-s 352x288 -an -vcodec h263"
327

  
328
# h263 decoding
329 311
do_video_decoding
330 312
fi
331 313

  
332 314
###################################
333 315
if [ -n "$do_h263p" ] ; then
334
# h263p encoding
316
# h263p
335 317
do_video_encoding h263p.avi "-qscale 2 -flags +umv+aiv+aic" pgmyuv "-s 352x288 -an -vcodec h263p -ps 300"
336

  
337
# h263p decoding
338 318
do_video_decoding
339 319
fi
340 320

  
341 321
###################################
342 322
if [ -n "$do_mpeg4" ] ; then
343 323
# mpeg4
344
do_video_encoding odivx.mp4 "-flags +mv4 -mbd bits -qscale 10" pgmyuv "-an -vcodec mpeg4"
324
do_video_encoding odivx.mp4 "-flags +mv4 -mbd bits -qscale 10" pgmyuv "-an -vcodec mpeg4" + decoding
325

  
345 326

  
346
# mpeg4 decoding
347
do_video_decoding
348 327
fi
349 328

  
350 329
###################################
351 330
if [ -n "$do_huffyuv" ] ; then
352 331
# huffyuv
353 332
do_video_encoding huffyuv.avi "" pgmyuv "-an -vcodec huffyuv -pix_fmt yuv422p"
354

  
355
# huffyuv decoding
356 333
do_video_decoding "" "-strict -2 -pix_fmt yuv420p"
357 334
fi
358 335

  
359 336
###################################
360 337
if [ -n "$do_rc" ] ; then
361 338
# mpeg4 rate control
362
do_video_encoding mpeg4-rc.avi "-b 400k -bf 2" pgmyuv "-an -vcodec mpeg4"
339
do_video_encoding mpeg4-rc.avi "-b 400k -bf 2" pgmyuv "-an -vcodec mpeg4" + decoding
340

  
363 341

  
364
# mpeg4 rate control decoding
365
do_video_decoding
366 342
fi
367 343

  
368 344
###################################
369 345
if [ -n "$do_mpeg4adv" ] ; then
370 346
# mpeg4
371 347
do_video_encoding mpeg4-adv.avi "-qscale 9 -flags +mv4+part+aic+trell -mbd bits -ps 200" pgmyuv "-an -vcodec mpeg4"
372

  
373
# mpeg4 decoding
374 348
do_video_decoding
375 349

  
376 350
# mpeg4
377 351
do_video_encoding mpeg4-qprd.avi "-b 450k -bf 2 -flags +mv4+trell+qprd+mv0 -cmp 2 -subcmp 2 -mbd rd" pgmyuv "-an -vcodec mpeg4"
378

  
379
# mpeg4 decoding
380 352
do_video_decoding
381 353

  
382 354
# mpeg4
383 355
do_video_encoding mpeg4-adap.avi "-b 550k -bf 2 -flags +mv4+trell+mv0 -cmp 1 -subcmp 2 -mbd rd -scplx_mask 0.3" pgmyuv "-an -vcodec mpeg4"
384

  
385
# mpeg4 decoding
386 356
do_video_decoding
387 357
fi
388 358

  
......
390 360
if [ -n "$do_mpeg4thread" ] ; then
391 361
# mpeg4
392 362
do_video_encoding mpeg4-thread.avi "-b 500k -flags +mv4+part+aic+trell -mbd bits -ps 200 -bf 2" pgmyuv "-an -vcodec mpeg4 -threads 2"
393

  
394
# mpeg4 decoding
395 363
do_video_decoding
396 364
fi
397 365

  
......
399 367
if [ -n "$do_mpeg4adv" ] ; then
400 368
# mpeg4
401 369
do_video_encoding mpeg4-Q.avi "-qscale 7 -flags +mv4+qpel -mbd 2 -bf 2 -cmp 1 -subcmp 2" pgmyuv "-an -vcodec mpeg4"
402

  
403
# mpeg4 decoding
404 370
do_video_decoding
405 371
fi
406 372

  
......
414 380
if [ -n "$do_error" ] ; then
415 381
# damaged mpeg4
416 382
do_video_encoding error-mpeg4-adv.avi "-qscale 7 -flags +mv4+part+aic -mbd rd -ps 250 -error 10" pgmyuv "-an -vcodec mpeg4"
417

  
418
# damaged mpeg4 decoding
419 383
do_video_decoding
420 384
fi
421 385

  
......
423 387
if [ -n "$do_mpeg4nr" ] ; then
424 388
# noise reduction
425 389
do_video_encoding mpeg4-nr.avi "-qscale 8 -flags +mv4 -mbd rd -nr 200" pgmyuv "-an -vcodec mpeg4"
426

  
427
# mpeg4 decoding
428 390
do_video_decoding
429 391
fi
430 392

  
......
432 394
if [ -n "$do_mpeg1b" ] ; then
433 395
# mpeg1
434 396
do_video_encoding mpeg1b.mpg "-qscale 8 -bf 3 -ps 200" pgmyuv "-an -vcodec mpeg1video -f mpeg1video"
435

  
436
# mpeg1 decoding
437 397
do_video_decoding
438 398
fi
439 399

  
......
441 401
if [ -n "$do_mjpeg" ] ; then
442 402
# mjpeg
443 403
do_video_encoding mjpeg.avi "-qscale 10" pgmyuv "-an -vcodec mjpeg -pix_fmt yuvj420p"
444

  
445
# mjpeg decoding
446 404
do_video_decoding "" "-pix_fmt yuv420p"
447 405
fi
448 406

  
......
450 408
if [ -n "$do_ljpeg" ] ; then
451 409
# ljpeg
452 410
do_video_encoding ljpeg.avi "" pgmyuv "-an -vcodec ljpeg -strict -1"
453

  
454
# ljpeg decoding
455 411
do_video_decoding
456 412
fi
457 413

  
......
459 415
if [ -n "$do_jpegls" ] ; then
460 416
# jpeg ls
461 417
do_video_encoding jpegls.avi "" pgmyuv "-an -vcodec jpegls -vtag MJPG"
462

  
463
# jpeg ls decoding
464 418
do_video_decoding "" "-pix_fmt yuv420p"
465 419
fi
466 420

  
......
468 422
if [ -n "$do_rv10" ] ; then
469 423
# rv10 encoding
470 424
do_video_encoding rv10.rm "-qscale 10" pgmyuv "-an"
471

  
472
# rv10 decoding
473 425
do_video_decoding
474 426
fi
475 427

  
......
477 429
if [ -n "$do_rv20" ] ; then
478 430
# rv20 encoding
479 431
do_video_encoding rv20.rm "-qscale 10" pgmyuv "-vcodec rv20 -an"
480

  
481
# rv20 decoding
482 432
do_video_decoding
483 433
fi
484 434

  
......
486 436
if [ -n "$do_asv1" ] ; then
487 437
# asv1 encoding
488 438
do_video_encoding asv1.avi "-qscale 10" pgmyuv "-an -vcodec asv1"
489

  
490
# asv1 decoding
491 439
do_video_decoding
492 440
fi
493 441

  
......
495 443
if [ -n "$do_asv2" ] ; then
496 444
# asv2 encoding
497 445
do_video_encoding asv2.avi "-qscale 10" pgmyuv "-an -vcodec asv2"
498

  
499
# asv2 decoding
500 446
do_video_decoding
501 447
fi
502 448

  
......
504 450
if [ -n "$do_flv" ] ; then
505 451
# flv encoding
506 452
do_video_encoding flv.flv "-qscale 10" pgmyuv "-an -vcodec flv"
507

  
508
# flv decoding
509 453
do_video_decoding
510 454
fi
511 455

  
......
513 457
if [ -n "$do_ffv1" ] ; then
514 458
# ffv1 encoding
515 459
do_video_encoding ffv1.avi "-strict -2" pgmyuv "-an -vcodec ffv1"
516

  
517
# ffv1 decoding
518 460
do_video_decoding
519 461
fi
520 462

  
521 463
###################################
522 464
if [ -n "$do_snow" ] ; then
523
# snow encoding
465
# snow
524 466
do_video_encoding snow.avi "-strict -2" pgmyuv "-an -vcodec snow -qscale 2 -flags +qpel -me iter -dia_size 2 -cmp 12 -subcmp 12 -s 128x64"
525

  
526
# snow decoding
527 467
do_video_decoding "" "-s 352x288"
528 468
fi
529 469

  
530 470
###################################
531 471
if [ -n "$do_snowll" ] ; then
532
# snow encoding
472
# snow
533 473
do_video_encoding snow53.avi "-strict -2" pgmyuv "-an -vcodec snow -qscale .001 -pred 1 -flags +mv4+qpel"
534

  
535
# snow decoding
536 474
do_video_decoding
537 475
fi
538 476

  
539 477
###################################
540 478
if [ -n "$do_dv" ] ; then
541
# dv encoding
479
# dv
542 480
do_video_encoding dv.dv "-dct int" pgmyuv "-s pal -an"
543

  
544
# dv decoding
545 481
do_video_decoding "" "-s cif"
546 482
fi
547 483

  
548 484
###################################
549 485
if [ -n "$do_dv50" ] ; then
550
# dv50 encoding
486
# dv50
551 487
do_video_encoding dv.dv "-dct int" pgmyuv "-s pal -pix_fmt yuv422p -an"
552

  
553
# dv50 decoding
554 488
do_video_decoding "" "-s cif -pix_fmt yuv420p"
555 489
fi
556 490

  
557 491

  
558 492
###################################
559 493
if [ -n "$do_svq1" ] ; then
560
# svq1 encoding
494
# svq1
561 495
do_video_encoding svq1.mov "" pgmyuv "-an -vcodec svq1 -qscale 3 -pix_fmt yuv410p"
562

  
563
# svq1 decoding
564 496
do_video_decoding "" "-pix_fmt yuv420p"
565 497
fi
566 498

  
567 499
###################################
568 500
if [ -n "$do_mp2" ] ; then
569
# mp2 encoding
501
# mp2
570 502
do_audio_encoding mp2.mp2 "-ar 44100"
571

  
572
# mp2 decoding
573 503
do_audio_decoding
574 504
$tiny_psnr $pcm_dst $pcm_ref 2 1924 >> $logfile
575 505
fi
576 506

  
577 507
###################################
578 508
if [ -n "$do_ac3" ] ; then
579
# ac3 encoding
509
# ac3
580 510
do_audio_encoding ac3.rm "" -vn
581

  
582
# ac3 decoding
583 511
#do_audio_decoding
584 512
fi
585 513

  
586 514
###################################
587 515
if [ -n "$do_g726" ] ; then
588
# g726 encoding
516
# g726
589 517
do_audio_encoding g726.wav "-ar 44100" "-ab 32 -ac 1 -ar 8000 -acodec g726"
590

  
591
# g726 decoding
592 518
do_audio_decoding
593 519
fi
594 520

  
595 521
###################################
596 522
if [ -n "$do_adpcm_ima_wav" ] ; then
597
# encoding
523
# adpcm ima
598 524
do_audio_encoding adpcm_ima.wav "-ar 44100" "-acodec adpcm_ima_wav"
599

  
600
# decoding
601 525
do_audio_decoding
602 526
fi
603 527

  
604 528
###################################
605 529
if [ -n "$do_adpcm_ms" ] ; then
606
# encoding
530
# adpcm ms
607 531
do_audio_encoding adpcm_ms.wav "-ar 44100" "-acodec adpcm_ms"
608

  
609
# decoding
610 532
do_audio_decoding
611 533
fi
612 534

  
613 535
###################################
614 536
if [ -n "$do_adpcm_yam" ] ; then
615
# encoding
537
# adpcm yamaha
616 538
do_audio_encoding adpcm_yam.wav "-ar 44100" "-acodec adpcm_yamaha"
617

  
618
# decoding
619 539
do_audio_decoding
620 540
fi
621 541

  
622 542
###################################
623 543
if [ -n "$do_flac" ] ; then
624
# encoding
544
# flac
625 545
do_audio_encoding flac.flac "-ar 44100" "-acodec flac -compression_level 2"
626

  
627
# decoding
628 546
do_audio_decoding
629 547
fi
630 548

  

Also available in: Unified diff