Linux.com

Shell Script Help.....

Link to this post 23 May 09

If you're using bash, things can be a little simpler. Here's the general command I use for converting video files. (You can replace the ffmpeg line with your preferred conversion technique)


for i in *.vob; do
ffmpeg -i $i -acodec mp3 -ab 128k -vcodec mpeg4 -qscale 4 ${i%%.vob}.avi
done

$i becomes each vob filename and the sequence ${i%%.vob} rips off the .vob extension.

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board