{"id":64,"date":"2006-05-12T19:57:00","date_gmt":"2006-05-13T00:57:00","guid":{"rendered":"http:\/\/www.familytidings.com\/blog\/?p=64"},"modified":"2006-05-12T19:57:00","modified_gmt":"2006-05-13T00:57:00","slug":"duplicating-and-combining-dvds","status":"publish","type":"post","link":"https:\/\/www.familytidings.com\/blog\/?p=64","title":{"rendered":"Duplicating and Combining DVDs"},"content":{"rendered":"<p>Friends and relatives have home DVDs they wanted to copy for other friends and relatives.  Turns out this is rather easy.  Use k3b:<\/p>\n<p>On the menu, choose <code>Tools<\/code>\/<code>Copy DVD<\/code>.  Don&#8217;t forget there are three tabs worth of data to check.<\/p>\n<p>Recently I got a request to combine movies on two discs.  Now it&#8217;s getting interesting.  This is a lot like the <a href=\"http:\/\/www.familytidings.com\/weblog\/archive\/2004_01_01_archive.html#107313672183253668\">camcorder to DVD project<\/a> I did except it involves starting with DVDs as a source instead of miniDV tapes.  A little research turned up <a href=\"http:\/\/www.linuxquestions.org\/questions\/showthread.php?t=348492\">ripping instructions<\/a>.  Between these two references, I had enough to do the job.<\/p>\n<p>The first step was to use k3b to rip the discs into two ISO files, <code>movie1.iso<\/code> and <code>movie2.iso<\/code>.  Assuming <code>movie1.iso<\/code> was in <code>\/mnt\/bigfiles<\/code>, you could check it with <code>xine dvd:\/\/\/mnt\/bigfiles\/movie1.iso<\/code>.<\/p>\n<p>If they&#8217;re OK, mount them on the loopback device:<\/p>\n<p><code>mkdir \/mnt\/iso<br \/>mount movie1.iso \/mnt\/iso -t udf -o loop=\/dev\/loop3<\/code><\/p>\n<p>Then copy the files from <code>\/mnt\/iso\/VIDEO_TS<\/code> that are named <code>VTS*.VOB<\/code>.  These are the actual movie parts.  Rename them from <code>VTS_01_1.VOB<\/code> to <code>movie1.vob<\/code> so you can tell them apart from the second movie.<\/p>\n<p>Unmount the ISO with <code>umount \/mnt\/iso<\/code> and repeat with the second movie.<\/p>\n<p>Next, get convert them to mpeg2 files (from <a href=\"http:\/\/dizwell.com\/main\/content\/view\/73\/96\/\">here<\/a>):<\/p>\n<p><code>tcextract -i movie1.vob -t vob -x mpeg2 > movie1.m2v<br \/>tcextract -i movie1.vob -a 0 -x ac3 -t vob > movie1.ac3<br \/>tcextract -i movie2.vob -t vob -x mpeg2 > movie2.m2v<br \/>tcextract -i movie2.vob -a 0 -x ac3 -t vob > movie2.ac3<\/code><\/p>\n<p><code>mplex -f 8 -o movie1.mpg movie1.m2v movie1.ac3 <br \/>mplex -f 8 -o movie2.mpg movie2.m2v movie2.ac3<\/code><\/p>\n<p>Next, create the XML file <code>both_movies.xml<\/code>:<\/p>\n<pre>&lt;?xml version=\"1.0\"?&gt;<br \/>&lt;dvdauthor&gt;<br \/>&lt;vmgm \/&gt;<br \/>&lt;titleset&gt;<br \/>&lt;titles&gt;<br \/>&lt;audio lang=\"en\"\/&gt;<br \/>&lt;pgc&gt;<br \/>&lt;vob file=\"movie1.vob\" \/&gt;<br \/>&lt;vob file=\"movie2.vob\" \/&gt;<br \/>&lt;\/pgc&gt;<br \/>&lt;\/titles&gt;<br \/>&lt;\/titleset&gt;<br \/>&lt;\/dvdauthor&gt;<\/pre>\n<p><code>mkdir both_movies-dir<br \/>dvdauthor -o both_movies-dir\/ -x both_movies.xml<\/code><\/p>\n<p>Test with xine:  <code> xine dvd:\/\/\/`pwd`\/both_movies-dir<\/code><\/p>\n<p>You can also create menus with <a href=\"http:\/\/udrecsuite.sourceforge.net\/\"> dvdwizard (German site)<\/a> or <a href=\"http:\/\/linux.softpedia.com\/get\/Multimedia\/Video\/dvdwizard-8203.shtml\">dvdwizard dvdwizard 0.4.2c (English site)<\/a>.  It&#8217;s all scripts, so extract it in \/usr\/local\/src and run it with a script like this:<br \/><code>#!\/bin\/sh<br \/>export PATH=${PATH}:\/usr\/local\/src\/dvdwizard-0.4.2c<br \/>dvdwizard -l dvdwizard.log -T \"Big Combined Movie\" -N NTSC -A en -t \"First Movie\" movie1.mpg -t \"Second Movie\" movie2.mpg<br \/><\/code><\/p>\n<p>This will author a DVD in the directory <code>.\/dvd<\/code>.  Test it with <code>xine dvd:\/\/\/`pwd`\/dvd<\/code>.<\/p>\n<p>If it looks OK, create an ISO:  <code>mkisofs -dvd-video -udf -o both_movies.iso dvd\/<\/code>.  Then burn the ISO with k3b.  Use the Tools\/Burn DVD ISO Image menu option.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Friends and relatives have home DVDs they wanted to copy for other friends and relatives. Turns out this is rather easy. Use k3b: On the menu, choose Tools\/Copy DVD. Don&#8217;t forget there are three tabs worth of data to check. Recently I got a request to combine movies on two discs. Now it&#8217;s getting interesting. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-64","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/64","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=64"}],"version-history":[{"count":0,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/64\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}