Sunday, August 16, 2009

Mplayer & Mencoder: Extracting AC3 audio from DVD

Extracting AC3 audio from a DVD is a smart thing to do when ripping DVD's. First of all, it separates the audio part of the task and lets the user focus on the video encoding part. Secondly, it helps the user to make decision about the bitrate of the video depending on the size of output files. Here's my mencoder command to extract AC3 data from a DVD.


mencoder.exe dvd://1 -dvd-device D: -aid 128 -ss 4 -o war.ac3 -of rawaudio -oac copy -ovc frameno

Alternatively, I can use MPlayer to achieve the same thing.


mplayer movie.vob -aid 128 -dumpaudio -dumpfile audio-en-51.ac3

mplayer movie.vob -aid 129 -dumpaudio -dumpfile audio-fr-51.ac3

Oddly, the output file war.ac3 plays fine with MPlayer, but can't be played with VLC player. Is it because VLC player is inferior to MPlayer?


When Mencoder finished ripping DVD audio, it displayed the following:


Recommended video bitrate for 650MB CD: 434

Recommended video bitrate for 700MB CD: 502

Recommended video bitrate for 800MB CD: 637

Recommended video bitrate for 2 x 650MB CD: 1316

Recommended video bitrate for 2 x 700MB CD: 1451

Recommended video bitrate for 2 x 800MB CD: 1723



Video stream: 0.767 kbit/s (95 B/s) size: 593132 bytes 6183.043 secs 148295 frames



Audio stream: 448.000 kbit/s (55999 B/s) size: 345966435 bytes 6177.972 secs

This information is helpful in deciding the bitrate of the video.



Extracting Video from DVD


To extract only video from a DVD, I used the following command:


mencoder dvd://1 -dvd-device D: -o war.264 -of rawvideo -vf filmdint -ofps 24000/1001 -nosound -ovc x264 -x264encopts bitrate=720:vbv_maxrate=1000:vbv_bufsize=2000:direct_pred=auto:8x8dct:me=umh:trellis=1:pass=1:turbo=2 -ss 4

No comments:

Post a Comment

About This Blog

KBlog logo This blog is about current events and issues concerning general population. Thanks for visiting the blog and posting your comments.

© Contents by KBlog

© Blogger template by Emporium Digital 2008

Followers

Total Pageviews

icon
Powered By Blogger