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 ?
+ Reply to Thread
Results 1 to 2 of 2
-
-
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.
Similar Threads
-
FFmpeg on Win only - FAQ can ffmpeg realize screen capture
By feelart in forum Capturing and VCRReplies: 1Last Post: 14th Feb 2012, 04:11 -
Which ffmpeg options are used behind the scenes by ffmpeg?
By roberto.aloi in forum ffmpegX general discussionReplies: 1Last Post: 26th Jul 2011, 05:09 -
ffmpeg output 2gb limit? Is there one? ffmpeg stops encoding h264 @ 2gb
By BrainiakZ in forum Video ConversionReplies: 14Last Post: 30th Mar 2011, 12:04 -
Difference between ffmpeg -threads and ffmpeg-mt
By Calidore in forum Video ConversionReplies: 2Last Post: 7th Mar 2010, 22:44 -
FFMPEG QUESTION :How do I take one frame and make a jpeg with FFMPEG?
By goheadtry in forum Newbie / General discussionsReplies: 1Last Post: 18th Sep 2007, 02:55