Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-14-2009, 09:50 AM   #1
Registered: Jul 2004
Location: Herent, Belgium, Europe, Earth
Distribution: Ubuntu 7.04
Posts: 102

Rep: Reputation: 15
Smile ffmpeg: howto convert dvd/mkv to avi?

Hi all,

How can I convert a dvd to an xvid (avi) with ffmpeg?
How can I do the same with an mkv file?

I would like to use normal vbr for the audio. And I would like to use 2 passes for the resulting avi.

How can I determine the video bitrate so I end up with a target size of about 800MB?

All tutorials I find online are for mencoder, but that program is awfully slow (read: same speed as the movie plays). So I would like to give ffmpeg a shot, but I don't know what commandline to use.

Old 01-14-2009, 11:17 AM   #2
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 308

Rep: Reputation: 39
Hey Goofy, give avidemux a try. It's GUI or command line (with scripts) based but will do what you want.

FFmpeg gives you most of the information you require if you just do 'ffmpeg -h | less' (you'll need to pipe through less as there is a ton of info!).

Other than that, you'll want to research bitrate calculators to get the resulting file size to 800mb. As I said, try Avidemux as it has built in ffmpeg as well as lavc and a whole bunch of other encoders which should do exactly what you want.
Old 01-14-2009, 11:25 AM   #3
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I would recommend OGMRip, it rips the DVD, and has many options on how to encode it including size restrictions. I have tried many other programs and they have failed me, so this is the only one so far that I can recommend. It also has threading options, so if you have a Dual or Quad core, it's somewhat faster.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
convert .mkv to .avi Gortex Linux - General 10 12-05-2017 03:19 AM
Convert from avi to DVD gabsik Linux - General 4 12-18-2008 01:28 PM
How to convert .ts files to mkv or avi Pearlseattle Linux - Software 3 03-26-2008 12:26 PM
avi to dvd with ffmpeg Synesthesia Linux - Software 9 03-06-2006 12:29 AM
howto convert .avi to svcd? Brain Drop Linux - Software 3 11-28-2004 09:13 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration