LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 07-18-2004, 06:19 AM   #1
simm1701
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
Mencoder for DVD "shrinking" (ie mpeg2 resampling)


Ok, I'm trying to figure out the easiest way of backing up my DVD collection - while I have considered DivX and a new DVD player that can use those, I would rather just be able to burn pukka DVD-Rs (since I have a nice little powerbook with a DVD burner)

The problem comes with large/long films that wont fit onto the 4.7GB DVD-Rs. Now as far as I can tell resampling the MPEG2 to a lower bit rate should not be a problem for mencoder.

However rather than trial and error, is there anyone else that has done this that could provide me some advice on the config:

What audio codec should I use and which settings?
What is the default video bitrate for comercial DVDs?
What is a sensible minimum to use for the video encoding bitrate?
(I'm using the lavc codec for video encoding, I presume this is the best idea?)


The next problem comes with with trying to build this mpeg video back into a DVD-R. I've been trying with iDVD (which comes free on OSX) and I cant seem to get it to accept the created avi file from mencoder. Am I doing something wrong?

I did come across a linux tool for doing this, and since all I want is a single play movie button it should not be a problem (however the main reason I was trying to get it to work in iDVD is if it works there I know I wont end up burning something that no DVD player can use)

Thanks all,


Oh and I know there are various utilities for windows or OSX which do this but these are not an option I want to use as:

1. I dont like payware/shareware
2. I like to know exactly what is going on
3. I prefer using the command line (so I can script it all)


Simon
 
Old 07-18-2004, 05:12 PM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Check out tovid, a script I wrote for converting video to DVD and other formats. I've found mencoder itself to be somewhat flaky for creating mpeg2 video (which DVDs must be), so my script calls upon utilities in the mjpegtools package.

As for choosing the right bitrate, from what I can tell the mjpegtools mpeg2 encoder uses a variable bitrate, up to the limit you specify. In my script, there's a constant you can set for the maximum bitrate, but I've found most video to fall below about 7500kbps (the default bitrate for mpeg2enc). At that bitrate, you're guaranteed to fit about 81 minutes of video and audio on a 4.7GB DVD, but in my experience a more realistic average is around 240 minutes (four hours!) I'm not sure what commercial DVDs use, if there is even a standard bitrate; I know those 'superbit' DVDs you see have a higher bitrate, achieved by sacrificing the extra space usually spent on commentaries and deleted scenes. I wouldn't be surprised if most commercial DVDs were around 7500kbps.

Also, in using my script, note that there are a couple additional formats supported by DVD that can help you get a lot more onto a single disc: 352x240 (Video CD resolution) and 352x480 (half-D1 resolution) are both supported by the DVD standard, as far as I can tell; if you have stuff taped from TV or low-quality movies, those resolutions might be better suited than the 720x480 standard DVD resolution, and could help you cut down on those bitrates (less resolution, less bitrate needed). I encoded a TV series to half-D1, and managed to get about 350 minutes per disc at 3600kbps, enough for seven or eight 45-minute episodes per DVD.

Good luck! Let me know if you have any problems with the script.

Last edited by wapcaplet; 07-18-2004 at 05:17 PM.
 
Old 07-19-2004, 03:46 AM   #3
simm1701
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks but I've decided to go for the DivX option and a new player for the living that can cope with that format.


At a bitrate of 2000 divx is about 1/4 the size of the DVD and you have to look REALLY close to see any difference in quality - and that means I can probably fit about 6 hours on a DVD-R


Simon
 
  


Reply



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
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
mencoder to make mpeg2 files DJOtaku Linux - General 2 09-17-2005 09:01 AM
mencoder mpegopts "not an option" format=dvd (converting avi to dvdauthor compliant) Emmanuel_uk Linux - Newbie 1 09-16-2005 01:52 PM
VHS to MPEG2(DVD) with transcode or mencoder? jovir Linux - Software 4 01-12-2005 02:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:18 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration