[vdr] MP3/MPlayer plugin 0.9.15 available

C.Y.M syphir at syphir.sytes.net
Thu Sep 21 22:23:10 CEST 2006


> - Added -S option to ppmtoy4m call in example image convert script. Suggested by
>   Thorsten Gehrig.


I was thinking of something more like this for backwards compatibility:

@@ -61,17 +61,23 @@
 #
 # now run the conversion
 #
+
+# 'chroma subsampling mode' mjpegtools >= 1.8.0
+if ppmtoy4m -h | egrep -q "'420mpeg2'" ; then
+    SUBSAMPLINGMODE="-S 420mpeg2"
+fi
+
 if [ "$FORMAT" = "ntsc" ]; then
   pnmscale $S $TMP | \
     pnmpad -black -width 704 -height 480 | \
     ppmntsc | \
-    ppmtoy4m -S 420mpeg2 -v 0 -n 1 -r -F 30000:1001 | \
+    ppmtoy4m -v 0 -n 1 -r -F 30000:1001 $SUBSAMPLINGMODE | \
     mpeg2enc -f 7 -T 90 -F 4 -nn -a 2 -v 0 -o "$MPG"
 else
   pnmscale $S $TMP | \
     pnmpad -black -width 704 -height 576 | \
     ppmntsc --pal | \
-    ppmtoy4m -S 420mpeg2 -v 0 -n 1 -r -F 25:1 | \
+    ppmtoy4m -v 0 -n 1 -r -F 25:1 $SUBSAMPLINGMODE | \
     mpeg2enc -f 7 -T 90 -F 3 -np -a 2 -v 0 -o "$MPG"
 fi
 #

Best Regards.




More information about the vdr mailing list