Find the answer to your Linux question:
Results 1 to 5 of 5
To start with you would need to install "ffmpeg". This program allows you to convert any video or audio file to what you want it to be. If you have ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! Neel.M's Avatar
    Join Date
    Jul 2007
    Posts
    19

    Converting Video files in Linux


    To start with you would need to install "ffmpeg". This program allows you to convert any video or audio file to what you want it to be.

    If you have Debian then you would type in the root terminal :

    apt-get install ffmpeg

    After installing that you will need to plan what you want to convert and what format you want to convert it to. This program is command line and not graphical so you would need to open up your terminal.

    so you need to let the system know that you want to run that program so you would type in: "ffmpeg", then you need to give it the command to run its duty so you put in "-i". Then you give in your input starting with "/home/", then your output starting with "/home/" again.

    so this is how a example command line will look:

    neel:/home/neel# ffmpeg -i /home/neel/Desktop/Famguy/part6.flv /home/neel/part6.avi

    note: I have the file format I inputed and the file format I want to output.

    Punctuation is important, if you miss spell or have a capital where its supose to be lowercase, it will not work.

  2. #2
    Just Joined! Neel.M's Avatar
    Join Date
    Jul 2007
    Posts
    19

    converting flv to avi

    Another way to convert would be using this code:

    #!/bin/sh

    if [ -z "$1" ]; then
    echo "Usage: $0 {-divx|-xvid} list_of_flv_files"
    exit 1
    fi

    # video encoding bit rate
    V_BITRATE=1000

    while [ "$1" ]; do
    case "$1" in
    -divx)
    MENC_OPTS="-ovc lavc -lavcopts \
    vcodec=mpeg4:vbitrate=$V_BITRATE:mbd=2:v4mv:autoas pect"
    ;;
    -xvid)
    MENC_OPTS="-ovc xvid -xvidencopts bitrate=$V_BITRATE:autoaspect"
    ;;
    *)
    if file "$1" | grep -q "Macromedia Flash Video"; then
    mencoder "$1" $MENC_OPTS -vf pp=lb -oac mp3lame \
    -lameopts fastreset=standard -o \
    "`basename $1 .flv`.avi"
    else
    echo "$1 is not Flash Video. Skipping"
    fi
    ;;
    esac
    shift
    done


    ---------------------------------------------------------------------------------------------------------

    copy and paste it to your text editor and save it as "flv2avi.sh", This will only convert flv files. I found this code made by some guy through shell scripting. I have not used it but it can get quite handy. Save it to the command directory, which is usually "/usr/local/bin". But could be different in other PC's.

  3. #3
    Just Joined! mullet's Avatar
    Join Date
    May 2005
    Posts
    49
    what about from recorded tv? dv-rms files?

  4. #4
    Banned
    Join Date
    Nov 2007
    Posts
    4
    Go for Avidemux video editor

  5. #5
    Just Joined!
    Join Date
    Jan 2006
    Posts
    57
    You can also try WinFF a GUI for ffmpeg which automates the procedure of video files convertion in Linux. Check here.

    How to convert any video format in Linux

Posting Permissions

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