VideoHelp Forum
+ Reply to Thread
Results 1 to 2 of 2
Thread
  1. Member
    Join Date
    Oct 2006
    Location
    Indonesia
    Search Comp PM
    Hi, I'm new in Linux and FFMPEG. I need to know about command line when converting with ffmpeg. I'm run on Linux non-GUI, and I need to convert these video into smaller size, I know I will lose about quality. Here I want :

    1. AVI format -> Mp4 format
    2. MKV format - > mkv format

    What command line should I use and what codec should I choose for converting ?
    Quote Quote  
  2. Member GMaq's Avatar
    Join Date
    Mar 2004
    Location
    Canada
    Search Comp PM
    zirkov,
    Here's an example script for avi to .mp4 it is for an iPod but will convert an .avi to .mp4 for pretty much any purpose:

    ffmpeg -i (Pathtoyourfile).avi -f mp4 -vcodec mpeg4 -maxrate 1000 -b 700 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ab 192 -s 320x240 -aspect 4:3 (Pathtowhereyousavefile).mp4

    You can change the bitrate values and frame size/aspect ratio values to suit your needs. make sure your version of ffmpeg is compiled with mpeg-4 and/or XviD and aac support. There are documents on how to do this at this link for Ubuntu, You didn't say what distro you use.

    https://help.ubuntu.com/community/iPodVideoEncoding?highlight=%28iPodVideoEncoding%29

    Also look at AviDemux or WinFF that are both GUI front-ends for ffmpeg.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!