Linux.com

carpie

carpie

  • Linux.com Member
  • Posts: 1
  • Member Since: 16 May 09
  • Last Logged In: 27 Jan 11

Latest Posts

Posted by
Topic
Post Preview
Posted
  • carpie
    RE: Shell Script Help.....
    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) [code] for i in *.vob; do ffmpeg -i $i -acodec mp3 -ab 128k -vcodec mpeg4 -qscale 4 ${i%%.vob}.avi done [/code] $i becomes each vob filename and the sequence ${i%%.vob} rips off the .vob extension.
    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