3 mediadir
=/home
/ds
/media
5 all
="SD-default SD-VBR-10dB SD-VBR-20dB SD-VBR-30dB SD-VBR-40dB \
6 SD-CBR-250kb SD-CBR-500kb \
7 SD-CBR-1Mb SD-CBR-2Mb SD-LD-40Mb SD-LD-10Mb SD-lossless SD-intra-only"
18 SD-default
) schroopts
="" ;;
19 SD-VBR-10dB
) schroopts
="rate-control=0 noise-threshold=10" ;;
20 SD-VBR-20dB
) schroopts
="rate-control=0 noise-threshold=20" ;;
21 SD-VBR-30dB
) schroopts
="rate-control=0 noise-threshold=30" ;;
22 SD-VBR-40dB
) schroopts
="rate-control=0 noise-threshold=40" ;;
23 SD-CBR-250kb
) schroopts
="rate-control=1 bitrate=250000" ;;
24 SD-CBR-500kb
) schroopts
="rate-control=1 bitrate=500000" ;;
25 SD-CBR-1Mb
) schroopts
="rate-control=1 bitrate=1000000" ;;
26 SD-CBR-2Mb
) schroopts
="rate-control=1 bitrate=2000000" ;;
27 SD-LD-40Mb
) schroopts
="rate-control=2 bitrate=41472000 intra-wavelet=1" ;;
28 SD-LD-20Mb
) schroopts
="rate-control=2 bitrate=20736000 intra-wavelet=1" ;;
29 SD-LD-10Mb
) schroopts
="rate-control=2 bitrate=10368000 intra-wavelet=1" ;;
30 SD-lossless
) schroopts
="rate-control=3" ;;
31 SD-intra-only
) schroopts
="gop-structure=1" ;;
38 output
=$file.
$prof.drc
39 gst-launch-0.10 videotestsrc num-buffers
=300 ! \
41 cairotextoverlay text
="$prof" halign
=left deltay
=-100 ! \
43 video
/x-raw-yuv
,format
=\
(fourcc\
)"UYVY",width
=$width,height
=$height,framerate
=$framerate,pixel-aspect-ratio
=$par ! \
45 schroenc
$schroopts $extraopts ! \
46 filesink location
=$output
50 input
=$mediadir/$subdir/$file.yuv
51 size
=$
(($height*$width*2))