DVD to MKV with mencoder confusion

I apologize in advance if the questions that follow seem trivial.  I've read the relevant wiki article which only created more questions.  I understand the concept of mkv as a container similar to avi for video and audio files.  The wiki article provides the following example for encoding a single title/chapter with h264 into a .avi file for use in a mkv file.
#First passage: we are just collecting informations so the normal output is thrown away.
mencoder -dvd-device "$ISO" dvd://"$TITLE" -chapter "$CHAPTER" -o /dev/null -nosound -ovc x264 \
-x264encopts direct=auto:pass=1:turbo:bitrate=900:bframes=1:\
me=umh:partitions=all:trellis=1:qp_step=4:qcomp=0.7:direct_pred=auto:keyint=300 \
-vf scale=-1:-10,harddup
#Second passage: here we compress the video track using the informations from the first step.
mencoder -dvd-device "$ISO" dvd://"$TITLE" -chapter "$CHAPTER" -nosound -ovc x264 \
-x264encopts direct=auto:pass=2:bitrate=900:frameref=5:bframes=1:\
me=umh:partitions=all:trellis=1:qp_step=4:qcomp=0.7:direct_pred=auto:keyint=300 \
-vf scale=-1:-10,harddup -o video.avi
My first question would then be, how can I simply rip the entire DVD, including menus, into a single .avi file that will later be encapsulated with mkv?  This doesn't seem to be a problem with audio files, as mkvmerge allows for several audio track entries to be passed in the merge process:
mkvmerge -D audio.avi -A video.avi -o mymovie.mkv
Or do I have it all wrong?  Will I need to encode each chapter/title and corresponding audio track into an mkv and then merge the final mkv files into a single mkv?  Finally, how can I read a DVD disk or ISO file to view the chapter/title information?
Any and all advice is greatly appreciated.  Thanks!
Last edited by wreck (2009-06-30 04:07:59)

not sure if this will help, but here goes anyway.
a while back a wrote a script that copies a standard dvd to disc, compresses the video via mencoder, then authors a new 4.3 GB dvd to be burnt.  very useful.
anyhow, part of this process involved extracting chapter and title info.  i didn't use mencoder or mkvtoolnix but here's what i did do:
DEV="/dev/sr0"
WD="/tmp/ripping"
# extract title info into a file
vobcopy -I $DEV > $WD/title.txt 2>&1
# find the longest title from looking at that file
TITLE=$(awk '/Most\ chapters/ {print $6}' $WD/title.txt)
# extract the chapter info into another file
tcprobe -i $DEV -T $TITLE -d 8 > $WD/probe.txt 2>&1
# get the chapter markings by looking at that file
egrep "\[Chapter ..\] " $WD/probe.txt | cut -d " " -f 4
Last edited by brisbin33 (2009-06-30 19:16:35)

Similar Messages

  • A/V sync problems with mencoder -- trying to convert to 30fps

    The title says it all. When encoding with mencoder (latest from extra repo), with seemingly everything tried, I absolutely cannot get the audio to sync! It's driving me nuts! Here is the basic command command I used:
    mencoder -fps 30 -ofps 30 -ovc xvid -oac mp3lame -xvidencopts bitrate=whatever_i_want:trellis:aspect=16/9 -lameopts cbr:br=128 -vf harddup,expand=aspect=16/9,scale=480:272 infile -o outfile
    Where the infile was any one of:
    * A standard, .avi Xvid 23.976 fps 800kb/s video with MP3 112kb/s audio DVD rip you can find on the net and filesharing sites (here the vbitrate was 800kb/s)
    * An .mpeg MPEG1 25fps 1150kb/s video MP2 224kb/s audio (here bitrates were outputted to the same values)
    * An .mp4 H264 29.989fps high-bitrate (in the 2000s, was somewhat random) video AAC audio file downloaded directly from Youtube with a DL mp4 from YT Firefox extension
    I also tried to mess with the codec settings, like using libavcodec, no trellis as an option, different bitrates etc. but the audio is still out of sync! Although on the mencoder man page it says to put harddup at the end of the filer chain, I've tried that; all it did was cause weird graphical glitch of a band of rectangles containing some video on the right side of the screen, as well as ignoring the expand filter. And it didn't even fix the A/V sync. To be specific, the audio is considerably behind the video e. g. by the time the video ends, audio is still playing from long before the ending credits from an earlier scene, and cuts off as the file ends.
    On a side note, framerate conversion with ffmpeg (which, if I understand correctly, mencoder/mplayer is based on), with -r 30 works. But for some reason I find a quality difference (even when using libxvid directly as a -vcodec) and, on top of that, cropping fails with "Vertical crop dimensions are outside the range of the original image." (which they weren't). Argh, I don't think I've every googlesearched this hard only to not get an answer!
    Why am I trying to do this? I am converting these videos for playback on my Samsung P2, whose video format requirements are pretty strict (scroll down to video).
    And just as a side question, if that if all figured out, I'm trying to make sense of multi-pass encoding. Anyone have some howto to point me to? Any tips on multipass/framerate encoding? And please, don't tell me to RTFM. Mplayer/Mencoder's man page is 300kb uncompressed in itself. I have already tried to made sense of this large document and it has failed to give me an answer (it is a good resource for xvidencopts and the like, but not so much a good guide for mplayer/mencoder.

    Before my ATV I used a Rapsody N35 media play with a 400GB disk and converted all my DVD's to Xvid using avi.net on Windows.
    I'm now converting some of these movies to ATV (h.264) format using visualhub, it cost £12.95 and does a great job. I tried a few free or open source converters but settled on visualhub because of ease of use and quality of conversion. I also want a Mac OS application.

  • Convert video dvd to mkv

    hey, community, what GUI programm do you recommend to convert video from dvd to mkv since handbrake from pacman repos won't work and there's no way to download lots of dependencies to build it with aur? Maybe there's a repo with handbrake-git compiled?

    off220 wrote:hey, community, what GUI programm do you recommend to convert video from dvd to mkv since handbrake from pacman repos won't work and there's no way to download lots of dependencies to build it with aur? Maybe there's a repo with handbrake-git compiled?
    There is:
    makepkg - s

  • I want to create a HD disc with my Adobe Premier Elements but I am getting low resolution.  When I go to share the DVD to disc the form only offers 8pixels at the bottom.  How do I burn this DVD in HD with higher number of pixels?

    I want to create a HD disc with my Adobe Premier Elements but I am getting low resolution.  When I go to share the DVD to disc the form only offers 8pixels at the bottom.  How do I burn this DVD in HD with higher number of pixels?  I have read other forums on burning HD DVD's but I do not see the option to turn the 8 pi into 40 pi the one forum recommended.  I want my DVD to be HD so I may sell these videos online for my business.  I can't sell them the low quality they are burning now.  Hopefully you can help me.  Thanks.

    desalvom
    Thank you for your reply.
    You cannot burn your high resolution video that you can view on your computer to an AVCHD on DVD disc
    that will replay through a regular DVD player. But players are marketed under a variety of names with
    different support opportunities. One manufacturer may call its product MultiMedia Player, media player, Blu-ray player,
    etc.The bottom line is the specifications for each of the players that are candidates for the playback of
    the AVCHD format on DVD disc or the format of interest.
    If you upload your HD (1920 x 1080) video to YouTube, YouTube converts the video to flash format, but it goes up as the HD video.
    But, beware. Look at the YouTube viewing setting when your uploaded video is playing back. The YouTube default is not
    HD. It might be 360p, 480p. If you have a 1080p video, then before the YouTube playback, you should be looking
    at the video with the YouTube 1080p HD setting for best viewing. That is a YouTube matter.
    Best results depend on you
    a. setting up the Premiere Elements project preset to match the properties of the source media. That means, if
    you have 1080p source, you (manually) or the project (automatically) set the project preset at
    NTSC
    DSLR
    1080p
    DSLR [email protected]
    or the PAL counterpart, depending on your region need.
    b. if you upload your video to YouTube using the Premiere Elements feature, there is a HD preset, but you cannot
    customize it.....if you need customization, then you can export your Timeline to a file...in this example
    Publish+Share
    Computer
    AVCHD
    with Presets = MP4 H.264 1920 x 1080p30 or PAL counterpart
    and then customize the preset under the Advanced Button/Video Tab of that preset. In increase quality, you might look to increase
    the Bitrate under Advanced Button/Video Tab settings - without compromising the file size.
    Then you would upload that file to YouTube at the YouTube web site.
    All of the above are factors that need looking into in order to determine the why for what you wrote
    I have published a shortened advertisement video to YouTube- say 5 minutes-
    and it is low quality
    Often SD video upscaled to HD can present poorly. But, you are dealing with a HD workflow so that should not be introduced into the matter. The setup of the project and
    the properties of the source video are important, but let us start with the above and rule in or out those considerations first.
    Thank you. As always, any clarification needed, please do not hesitate to ask.
    ATR

  • I have a Mac Pro OS 10.7.5 and have a DVD+R disc with files on it, but it ejects the disk after about 10 seconds--what to do?  How can I get the data off this disc?  I can see it has been already burned, so files are on there?

    I have a Mac Pro OS 10.7.5 and have a DVD+R disc with files on it, but it ejects the disk after about 10 seconds--what to do?  How can I get the data off this disc?  I can see it has been already burned, so files are on there?

    Try cleaning the lens and see if that will restore functionality to the DVD drive.  Use a DVD lens cleaning disk, if you have a can of compressed air, shoot some into the slot or wrap a fine microfiber cloth (eyeglasses cleaning cloth)  around a business card and insert it gently inside the slot.
    If no success, make an appointment at an Apple store genius bar and get a free diagnosis from them.
    Ciao.

  • Install OS X 10.4 onto my laptop from DVD that came with iMac G5?

    Hi!
    I just got an iMac G5, and want to install OSX 10.4 onto my laptop (G4 800 Mhz iBook) but can't seem to do so. Is there some way to do this, for example if I were to boot the iBook in target disk mode, or is the DVD that comes with the Imac locked in some way to prevent installation on other computers? Is this some kind of "one computer only" license? I don't recall this issue with OS X in the past!
    Thanks.

    Hi mrp,
    first of all: WELCOME TO THE DISCUSSIONS!
    You CANNOT use hardware specific software install&restore disks that shipped with another computer. These simply do not contain the hardware drivers for any other computer model but the one they originally shipped with. You have to buy the retail full install DVD.
    Besides this technical limitation it would also be ILLEGAL. Apple's Mac OS X Software License Agreement states in point 2:
    2. Permitted License Uses and Restrictions.
    A. This License allows you to install and use one copy of the Apple Software on a single Apple-labeled computer at a time. This License does not allow the Apple Software to exist on more than one computer at a time,...

  • Capturing DVD video shot with a DVD Camcorder

    I have a Panasonic DVD camcorder. It records on mini DVD's.
    With FCE, how do I capture what I've shot. The camera has a USB output but not a fire wire.
    Can I go directly from my digital camcorder to the capture tool? Or can I use the internal DVD player in my MacBook?
    MacBook   Mac OS X (10.4.9)  

    this is the usual reply in the iMovie section of this board, when it comes to converting DVDs into 'dv' (=for editing in iM/FCE):
    DVDs are in a socalled delivery format (mpeg2), which isn't meant and made for any processing as editing... or, as honorable forum member QuicktimeKirk stated: I use the analogy of the old Polaroid "instant" cameras. Push the button, wait for the print to develop and show it off. ..
    for using the iLife apps (= and FCE...) , you have to convert'em first, in recommended order, choose one of the following tools/workarounds:
    * DVDxDV (free trial, 25$, Pro: 90$)
    * Apple mpeg2 plugin (19$) + Streamclip (free)
    * VisualHub (23.32$)
    * Cinematize >60$
    * Mpeg2Works >25$ + Apple plug-in
    * Toast 6/7/8 allows converting to dv/insert dvd, hit apple-k
    * connect a miniDV Camcorder with analogue input to a DVD-player and transfer disk to tape/use as converter
    none of these apps override copyprotection mechanisms as on commercial dvds...
    http://danslagle.com/mac/iMovie/tips_tricks/6010.shtml
    http://danslagle.com/mac/iMovie/tips_tricks/6018.shtml
    be nice to copy rights

  • DVD from .avi with iDVD

    I have a number of old home movies in .avi format (each one is about 350MB). I would like to make a few DVDs using iDVD with at least 4 movies per DVD. But as soon as I add two of these movies to iDVD, I see that it takes up 3.7 of the available 4.2 GB (even after choosing "Best Quality" encoding.
    Can someone suggest how I could get at least 4 files on to a DVD?
    MacBook   Mac OS X (10.4.8)   Core Duo 2.0 GHz / 2GB RAM

    iDVD doesn't care for size, but for length of projects...
    onto a single-layered 4.7Gb dvd-r, you are allowed to fit 120min of project... your .avis are much compressed (mpeg? divx?), so the size in MB is no indicator..
    or, use a 3rd party app as
    VisualHub
    http://www.techspansion.com/visualhub/
    .. which claims to make up to 18h (eighteen!) onto a disk...

  • I do have a gray application DVD that came with my MacBook Pro by how to use it

    I do have a gray application DVD that came with my MacBook Pro by how to use it.

    You don't, your signature says you have 10.7.5 and the disk is either 10.5 or 10.6, has outdated software on it.
    Keep it in case of emergency in a very safe place in case you need to reinstall on a new drive, then upgrade to 10.7.5 again.
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents

  • DVD playback blurry with Kaffeine/Xine

    Hi guys,
    I wanted to watch my first DVD under Linux yesterday and I noticed that the image quality is really, really bad compared to watching the same DVD under Windows with PowerDVD.
    DVD playback in Kaffeine with Xine engine is really blurry. Does anybody know what the reason could be? There's a lot of options for xine engine parameters in Kaffeine, but I don't have a clue about them. Any tipps appreciated.
    I've also tried kmplayer, but the image there has small black horizontal lines in it, which looks really weird. I thinks that's called interlaced, right? I'm a total video noob. ^^
    TIA,
    Blackhole

    [timetrap@darkstar ~]$ mplayer dvd://
    MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
    CPU: Genuine Intel(R) CPU T2060 @ 1.60GHz (Family: 6, Model: 14, Stepping: 12)
    CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled with runtime CPU detection.
    115 audio & 237 video codecs
    mplayer: could not connect to socket
    mplayer: No such file or directory
    Failed to open LIRC support. You will not be able to use your remote control.
    Playing dvd://.
    There are 9 titles on this DVD.
    There are 1 chapters in this DVD title.
    There are 1 angles in this DVD title.
    number of audio channels on disk: 0.
    number of subtitles on disk: 0
    MPEG-PS file format detected.
    MPEG: No audio stream found -> no sound.
    VIDEO: MPEG2 720x480 (aspect 3) 29.970 fps 8000.0 kbps (1000.0 kbyte/s)
    ==========================================================================
    Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
    VDec: vo config request - 720 x 480 (preferred colorspace: Mpeg PES)
    Could not find matching colorspace - retrying with -vf scale...
    Opening video filter: [scale]
    The selected video_out device is incompatible with this codec.
    Try appending the scale filter to your filter list,
    e.g. -vf spp,scale instead of -vf spp.
    VDecoder init failed :(
    Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
    Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
    ==========================================================================
    Audio: no sound
    Starting playback...
    VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12)
    VDec: using Planar YV12 as output csp (no 0)
    Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
    VO: [xv] 720x480 => 854x480 Planar YV12
    V: 0.3 2/ 2 ??% ??% ??,?% 0 0
    Exiting... (End of file)
    [timetrap@darkstar ~]$
    For reference I am trying to play: Planet Earth; From the BBC; Disc 4
    mplayer VERY briefly flashes up a window then writes Exiting. . .

  • Can I use DVD+R disks with my MacBookPro, OS10.7.5, and iMovie 6 and IDVD 7.1.2

    Can I use DVD+R disks with my MacBookPro, OS10.7.5, and iMovie 6 and iDVD 7.1.2  ???? I have always used DVD-R.  I made a mistake in ordering and got 100 DVD+R .  Would it be advisable to return them?

    Yes, you can use them.  As I recall the only concern is that they may not work in DVD players manufactured before 2002.

  • TS1394 Can't re-install Leopard.  Trying to reinstall the OS because computer locks up.  It is a 2008 iMac that came with Leopard.  Upgraded to Snow Leopard.  Tried to archive and install from original DVD that came with iMac.  Installation failed, so tri

    Computer locks up, so I want to reinstall the OS. I had upgraded to Snow Leopard. 
    Tried to do an archive and install from the DVD that came with the computer, but that failed. 
    Tried to do an erase and install, but the install stops somewhere near the end, 13 minutes to go. Tried several times, same result.
    Can't reboot from the install disk, it just ejects the disk and I get the flashing question mark.
    Any suggestions will be appreciated.

    I think my hard drive is toast.  When I boot in single user mode, I get the following text:
    CSRHID Transition Driver: start booting in single user... will wait for window server
    Then the following text appears, repeating itself over and over, except that the numbers (indicated by "xxxxxxx")
    SAM Multimedia: READ or WRITE failed, SENSE_KEY = 0x03, ASC = 0x02, ASCQ = 0x00
    SAM Multimedia: READ or WRITE failed, SENSE_KEY = 0x03, ASC = 0x02, ASCQ = 0x00
    disk1s3: I/O error.
    0[level 3] [READUID 0] [Facility com.apple.system.fs] [ErrType IO] [Err No 51] [IDType READ] [PB1kNum xxxxxxxxx] [LB1kNum 0] [FSLogMsgID xxxxxxx] [FSLogMsgOrder First]
    0[Level 3] [READUID 0] [Facility com.apple.system.fs] [FSLogMsgID xxxxxxxxxx] [FSLogMsgOrder Last]
    These messages keep repeating with the numbers (xxxxxxxxx) changing with each iteration.
    Does this indicate a bad hard drive?
    Thanks.

  • I am making multiple DVD's of roughly 50 hours of footage on DVD Studio pro with 4 separate menus for 4 different 'parts' or series if you will. 50 hours - 20 episodes - 4 parts of 5 episodes each. What are my options in terms of burning these parts on to

    I am making multiple DVD's of roughly 50 hours of footage on DVD Studio pro with 4 separate menus for 4 different 'parts' or series if you will. 50 hours - 20 episodes - 4 parts of 5 episodes each. What are my options in terms of burning these parts on to separate DVD's, what is the process, what size DVD RW should I buy, what bitrate should I use, and what quality I should expect for the burn. Any advice or insight is welcome.

    >>What are my options in terms of burning these parts on to separate DVD's<<
    20 episodes totaling 50 hours equals about 2.5 hours per episode assuming all episodes have the same duration.  Fitting 2.5 hours onto one single layer DVD would require a low bit rate which means quality wouldn't be anywhere near best, but that's a judgement call you'll have to make based on several factors.  For example; if there is not much motion in the video (talking heads, etc), you can get by with a lower bit rate and may not notice any quality difference.
    >>what is the process>>
    The process is essentially the same as it is when authoring a regular DVD with 2 hours or less of content.  However, with as many discs as you'd need to complete this "set," you'll need to create a separate DVD Studio Project for each disc.  Basically, you'd use one of Compressor's DVD Presets (or customize a preset) to create an MPEG--2 video file (.m2v) and a Dolby Digital audio file (.AC3).  Import both of those assets into your DVD Studio Pro project for authoring and burning.
    If you want to keep one episode per disc, DVD Studio Pro does have a 150 minute preset or you could use dual-layer discs with a higher bit rate for better quality.  Again; your call.
    >>what size DVD RW should I buy<<
    Size?  12cm.  Capacity?  Single layer, single sided DVD discs (DVD-5) have a rated capacity of 4.7Gb (4.37Gb actual), including menus.  If you use single layer discs and want to keep the quality reasonably good, you'd need at least 50 discs to complete this "set" with each disc holding roughly 2 hours of footage if you keep the menu on each disc simple.  Or, you could use dual-layer discs (DVD-9) which have a capacity of about 7.95Gb - almost doubling the recordable capacity.  There are also dual-sided, dual-layer discs available (DVD-18) but they are relatively expensive and have to be manually turned over to continue playback ... but they do have roughly 15.9Gb capacity.
    >>what bitrate should I use, and what quality I should expect for the burn<<
    Exactly; the quality is dependent on the bit rate chosen, as well as the quality of the compression.  Using compression markers where needed can greatly increase the quality of playback but will most likely increase the file size of the compressed video.  For the best quality, keeping the bit rate  as high as possible allowed under the DVD specification will yield the best quality but some DVD players may choke if the bit rate is too high.  For best quality I typically aim for a bit rate around 7.6 to 8.0Mbps but that will only allow about one hour of footage.
    Naturally, if you decrease the bit rate, you can fit more footage onto the disc but quality will be sacraficed.   Here's a chart approximating DVD bit rates and durations for single layer discs (does not include space for menus):
    3.5Mbps - 120 minutes
    5.0Mbps -   95 minutes
    6.0Mbps -   82 minutes
    7.6Mbps -   65 minutes
    8.0Mbps -   60 minutes
    -DH

  • How to put DVD onto iTunes with pc

    How to put DVD onto iTunes with pc

    Movie DVD?
    Unless you have some (illegal) ripping software to convert it to a playable format, iTunes doesn't play DVDs.

  • Lost my application dvd that came with macbook pro, early 2011. any alternatives to get the applications in that??

    lost my application dvd that came with macbook pro, early 2011. any alternatives to get the applications in that??

    I'm not sure how this is an iTunes issue, but anyway, other than buying the apps from the Mac App Store (note that iDVD and iWeb are not available via the App Store), the only alternative is to call Apple support and give them the serial number of your Mac. They can usually sell you a new disk set for a reasonable fee.
    Regards.

Maybe you are looking for

  • I have Created new posting period but it assigns -1 in OFPR table

    I have created new posting period eg 2010 .with user manager but still there is value of -1 in usersign field of ofpr table i am getting confuse will you help me to rectify? Thanks for previous answer

  • Photo resolution in iBooks

    I've ordered a few of the iBooks before -- the early versions were gorgeously printed, but recent ones have been sort of substandard print jobs - as I'm just about to order another one, I decided to do a PDF version first to see how things look, and

  • Span div problem on flow layout

    i want to use flow layout for my page. if there is any component that includes div tag it causes new line on html page. i use page fragments in my page. if there is any fragment that includes div tag next component appears on new line. i want to plac

  • Hide the portlets in a portal

    Hi, I need some help on Weblogic Portal server. Following is my scenario. I have a portal created. I have a page with two columns in that. In the left column I have a portlet which has a select box with 8 values with the option to select multiple val

  • Why does my magic trackpad work intermittently

    I have a problem with my trackpad and mouse and hardwired mouse. When I rollover an object and click it doesnt work. I have recently installed LION thinking now that maybe this has caused the problem. I have to reboot several times before it starts w