Sorry, script should be:

#!/bin/bash

mkdir output
for movie in *.* ; do
   echo Processing $movie
   ffmpeg -i $movie -ab 192kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv -cmp 2 
-subcmp 2 -s 320x240 output/$movie.mp4
done



Thunderbird mangled one of the lines.

Once again, sorry.

Michael

michael wrote:
Also I found creating mp4 files for the iPod could be a pain at times.

I found this script on the internet (might have been the Ubuntu Forums...not sure) to batch convert any video ffmpeg can understand to iPod compatabile mp4's:



#!/bin/bash

mkdir output
for movie in *.* ; do
    echo Processing $movie
ffmpeg -i $movie -ab 192kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv -cmp 2 -subcmp 2 -s 320x240 output/$movie.mp4
done



To use:

Copy and paste the above into your choice of text editor
Save it as encode.sh (or what you want to call it)
Allow it to be executable (in gnome right click on the file, click properties, click on permissions tab,tick box next to Allow executing file as program,click close)
copy the file into where your video files for conversion are kept
double click on the file and click run in terminal


I normally wait until I have a few files ready for conversion and leave it running.

Michael

Norman Silverstone wrote:
My granddaughter has just acquired an ipod and wants me to make her able
to use it on her Ubuntu 9.04 machine. This modern technology is way over
my head and I would very much appreciate some help, please.

Norman





-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/

Reply via email to