Has anyone managed to convert JPG files into the right mpg format for the radio plugin?
can you use transcode?
Hi,
Simon Baxter wrote:
Has anyone managed to convert JPG files into the right mpg format for the radio plugin?
If image.jpg has a resolution of 720x576 you can use the following command chain to create image.mpg:
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
Bye.
Has anyone managed to convert JPG files into the right mpg format for the radio plugin?
If image.jpg has a resolution of 720x576 you can use the following command chain to create image.mpg:
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!!
Reinhard Nissl wrote:
Hi,
Simon Baxter wrote:
Has anyone managed to convert JPG files into the right mpg format for the radio plugin?
If image.jpg has a resolution of 720x576 you can use the following command chain to create image.mpg:
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
Also, you can look at image_convert.sh in the mp3/mplayer plugin (under examples). Its done slightly different, but supports multiple formats.
Regards, C.
On Sunday 24 July 2005 11:08, C.Y.M wrote:
Reinhard Nissl wrote:
Hi,
Simon Baxter wrote:
Has anyone managed to convert JPG files into the right mpg format for the radio plugin?
If image.jpg has a resolution of 720x576 you can use the following command chain to create image.mpg:
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
Also, you can look at image_convert.sh in the mp3/mplayer plugin (under examples). Its done slightly different, but supports multiple formats.
I think I used convert from imagemagick (which, in turn, calls mpeg2enc).
Cheers,
Laz
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??
Thanks
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
Hi,
Simon Baxter wrote:
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
Bye.
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....