Results 1 to 3 of 3

Thread: Converting video-files with bash script

  1. #1
    Join Date
    Nov 2005
    Beans
    30

    Converting video-files with bash script

    Hallo,

    I know how to convert video-files with ffmpeg, for example flash-files to mpeg-files. Just a single command "ffmpeg -i filename.flv -t ouptputformat fileiname.mpg".

    I would like to convert all video files (flv, mov, avi, wmv, ...) in the actual directory to mpeg-files using the original name and changing te extention from .extention to .mpg. But there should be a check in the script, so that only files are touched, that do not have the extention .mpg or .mpeg so that the script does not ask what to do because a mpg-file allready exists.

    It should look like this:

    filename1.flv -> filename1.mpg
    filename2.flv -> filename2.mpg
    filename3.flv -> filename3.mpg
    ...

    Too bad I don't have any knowledge of programing/scripting at all. Maybe someone could help a little bit.

    Regards,

    rpw
    Last edited by rpw; March 27th, 2007 at 06:16 PM.

  2. #2
    Join Date
    Feb 2007
    Beans
    2,729

    Re: Converting video-files with bash script

    I recently helped someone with something like this:

    http://ubuntuforums.org/showthread.p...t=mrc+mencoder

    MrC

  3. #3
    Join Date
    Nov 2005
    Beans
    30

    Re: Converting video-files with bash script

    Thank's a lot, it works!

    Regards,

    rpw

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •