LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 12-04-2010, 03:26 AM   #1
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, Mint 12 LXDE
Posts: 431

Rep: Reputation: 36
Converting VOB to XVID (using ffmpeg)?


I have some VOB files taken from a DVD and I want to convert them to XVID or DIVX files. There is an existing thread on LinuxQuestions asking this question, but I have tried its suggestion and manage to convert a very poor quality copy:

http://www.linuxquestions.org/questi...ffmpeg-508303/

I have tried the thread's suggestions on bitrate options, but still no change. Could anyone suggest a suitable command line to use with ffmpeg that would give comparable quality results to the original VOB file? I know I am inviting a rebuke of "RTFM", but the man pages of ffmpeg are rather complex to a beginner! Especially when you're only looking for one particular thing.

If anyone has any experience in video format conversion (perhaps ffmpeg is not the best utility for this purpose?), and could give advice on a suitable conversion command with higher quality than the default, I would be grateful.

I also cannot specify xvid codec as it appears not available. This site https://wiki.ubuntu.com/ffmpeg explains that this may be for legal reasons, and advocates building ffmpeg from source. Is there an easier way to enable/download the appropriate codec, once ffmpeg is installed?

Thank you for any advice you can give.

Steve
 
Old 12-04-2010, 04:08 AM   #2
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I have written a guide on how to do it and preserve quality:
http://draconishinobi.50webs.com/linux/encoding.html

Does it have to play on a Divx DVD player ?

I recently wrote a script to do this automatically, but it's a bit experimental ATM, if you want I can post it.

EDIT:
I have uploaded the script to the site, it is on the page linked above.

Last edited by H_TeXMeX_H; 12-04-2010 at 10:44 AM.
 
Old 12-04-2010, 11:05 AM   #3
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, Mint 12 LXDE
Posts: 431

Original Poster
Rep: Reputation: 36
Ah, thank you. That looks very comprehensive; I shall give it a go and post back if I have any queries or difficulties. And yes, it will be playing back on a DIVX/XVID DVD player: a Philips model with a USB port on the front, so I can play stuff back direct from a flash drive and not have to write to DVD/CD first.
 
Old 12-04-2010, 11:55 AM   #4
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Ok, I would check the manual and see if it says up to what bitrate it supports. In theory, if it is certified, the average bitrate can be up to 4000 kbps with peak of 10000. In reality, none of my players can handle that. Mine can handle maybe up to 1500 or 1600. Also see maximum resolution, because there are often restrictions. Really since you have a USB interface you can test things much more easily than I can.
 
Old 12-10-2010, 04:09 AM   #5
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, Mint 12 LXDE
Posts: 431

Original Poster
Rep: Reputation: 36
After having a bit of a fiddle and having trouble accessing the right libraries like libxvid and libmp3lame, I have installed an application called Avidemux, which provides a graphic interface and can convert lots of different formats from one thing to another. DivX/Xvid is one of the formats it can cope with, so with any luck, problem solved. Having run up and down the various settings available, the only thing I need to do now is pick a suitable resolution, as some of the videos I have converted so far do not play on the USB DVD player because that particular resolution is not supported.

Avidemux appears to do lots of different things with regard to editing and stuff, so hopefully I can treat it as a complete video package for future use.

Thank you for your assistance; I shall keep the link to your guide for future use.

Steve
 
Old 12-10-2010, 09:54 AM   #6
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I recommend scaling to 640x???, this seems to work best and keeps the bitrate in bounds. I also recommend VBR, because it decreases the size of the video. However, I'm not sure if avidemux has this option.

With my script run:

Code:
xenc input.vob 5 640
and it should produce good output. In fact, I recommend comparing this to constant bitrate from avidemux.
 
  


Reply


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
ffmpeg, trying to demux VOB, subtitles show up in video stream Meson Linux - Software 1 01-29-2010 08:41 AM
ffmpeg xvid problem locazor Linux - Software 2 10-13-2008 04:25 AM
converting vob to xvid using ffmpeg schneidz Linux - Software 3 12-07-2006 03:03 PM
Using FFMPEG with Xvid and lame mashed Linux - Software 1 04-08-2006 11:42 AM
Need Kde dvd - vob ripper and Kde Vob - xvid converter + tutorials phat_fergo Linux - General 0 10-20-2004 08:01 AM


All times are GMT -5. The time now is 09:05 PM.

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