[vdr] radio plugin - create mpg

Simon Baxter linuxtv at nzbaxters.com
Mon Jul 25 12:23:25 CEST 2005


>>>If image.jpg has a resolution of 720x576 you can use the following 
>>>command chain to create image.mpg:
>>
>> What tools are available to resize JPG images??
>
> For the below chain I'd suggest pnmscale.
>
> http://netpbm.sourceforge.net/doc/pnmscale.html
>
>>>cat image.jpg \
>>>| jpegtopnm \
>>>| ppmtoppm \
>>>| ppmtoy4m -F 25:1 -A 4:3 -I p -r -S 420_mpeg2 -v 2 -n 1 \
>>>| mpeg2enc -f 8 -a 2 -q 1 -n p -T 120 -R 2 -g 12 -G 12 -o image.mpg


Thanks.  Have used :

cat IMG_4399.JPG \
| jpegtopnm \
| pnmscale -xsize=720 -ysize=576 \
| ppmtoppm \
| ppmtoy4m -F 25:1 -A 4:3 -I p -r -S 420mpeg2 -v 2 -n 1 \
| mpeg2enc -f 0 -a 2 -q 1 -n p -T 120 -R 2 -g 12 -G 12 -o "BBC Radio 2.mpg"

(modified mpeg2enc to use MPEG1 rather than MPEG2 - only because the 
existing radio.mpg I have is ver 1)

will see if it works tonight.... 





More information about the vdr mailing list