LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-29-2013, 04:29 PM   #1
MikeyCarter
Member
 
Registered: Feb 2003
Location: Orangeville
Distribution: Fedora
Posts: 482

Rep: Reputation: 31
Question recreate DVDAuthor XML file from DVD


Is there any linux program out there that can read a DVD and build a dvdauthor XML file from the DVD?
 
Old 08-31-2013, 10:49 AM   #2
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 2,615

Rep: Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640
Is this what you are looking for?

http://dvdauthor.sourceforge.net/
http://dvdauthor.sourceforge.net/doc/index.html
http://dvdauthor.sourceforge.net/doc/r1741.html
 
Old 09-04-2013, 08:10 AM   #3
MikeyCarter
Member
 
Registered: Feb 2003
Location: Orangeville
Distribution: Fedora
Posts: 482

Original Poster
Rep: Reputation: 31
Question

If it is what I'm looking for I can't find it.

Is there a section in there where you can say dvdauthor --dvd /dev/sr0 and it builds the xml?
 
Old 09-04-2013, 09:54 AM   #4
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 2,615

Rep: Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640
Quote:
and build a dvdauthor XML file from the DVD?
dvdauthor assembles multiple mpeg program streams into a suitable DVD filesystem, to make a DVD.
It makes a video DVD from mpeg files.

What are you trying to do? Copy a DVD?
 
Old 09-04-2013, 12:37 PM   #5
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,283

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
The XML file is used by dvdauthor to author a new DVD. The XML file is an input to dvdauthor, not an output from it. dvdauthor cannot create its own XML file, you have to supply that to dvdauthor.

I typically set chapter breaks every five minutes, regardless of where the original chapter breaks might have been. But that's just me. You may chose to do something differently with chapter breaks.

You can retrieve the original chapter breaks from a DVD with a program named "tcprobe". IIRC, "tcprobe" is a component of the "transcode" package. You can then use that data to manually create your own XML file for dvdauthor.

Below is how I create a simple XML file for dvdauthor that suits my needs (this is a snippet of PERL code, not the entire script). By the time the following code is executed, I already have one or more MPG files that contain the video (movie1.mpg, movie2.mpg, movie3.mpg, etc.) Note that my goal below was to stack the multiple MPG's one after another to create a final video that plays continuously (you can't tell where one MPG ends and the next one takes over). If your goals are different than that, you will need to do more work with the XML file than I illustrate below.

Also note: At one time in the past, dvdauthor would choke if you did not provide it with an environmental variable "VIDEO_FORMAT". This may all be fixed now with more recent versions of dvdauthor, but back when I wrote the code below it was necessary to explicitly specify the desired output format. My memory of the details is hazy - maybe the issue was that it defaulted to PAL and I had to set the variable to get NTSC. Whatever.
Code:
        if ( ! open(FP, ">$XMLFILE")) {
                return 0;
        }
        print FP "<dvdauthor> <vmgm /> <titleset> <titles> <pgc>\n";
        foreach my $moviefile (`ls movie*.mpg`) {
                chomp($moviefile);
                print FP qq!<vob file="$moviefile" chapters="0,5:00,10:00,15:00,20:00,25:00,30:00,35:00,40:00,45:00,50:00,55:00,60:00,65:00,70:00,75:00,80:00,85:00,90:00,95:00,100:00,105:00,110:00,115:00,120:00,125:00,130:00,135:00,140:00,145:00,150:00,155:00,160:00,165:00,170:00,175:00,180:00" />\n!;
        }
        print FP "</pgc> </titles> </titleset> </dvdauthor>\n";
        close(FP);
        my $command = qq!VIDEO_FORMAT=NTSC dvdauthor -o "$OUTPUTDIR" -x "$XMLFILE"!;
        $VERBOSE && print qq!*** EXECUTING: "$command"\n!;
        `$command`;
 
  


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
Avoiding DVDAuthor error when creating DVD structure. LordXzi Linux - Software 0 11-21-2011 10:34 AM
Debian DVD Authoring - dvdauthor troubles tvynr Linux - Software 0 06-01-2006 11:42 PM
.mpg to dvd directory structure problems (dvdauthor) LUB997 Linux - Software 2 02-24-2005 12:30 PM
Creating DVD menus with Spumux + Dvdauthor Inexactitude Linux - Software 6 02-21-2005 09:01 PM
Problem with one DVD and lxdvdrip or dvdauthor iab941 Linux - Software 0 07-08-2004 02:26 AM

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

All times are GMT -5. The time now is 10:20 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration