Hi!

Ralph Glasstetter wrote:

> I just have made a small modification to the DVBcut output window.
> The chapter marks are now also put into a comma separated list and print out 
> as simple XML file for dvdauthor. 

Unfortunately even if you haven't defined any chapters. The chapter list
always contains at least one item (00:00:00.000).

> First I just wanted to put out the <vob file=.... chapters=...> line alone 
> (that's enough for me, because normally I write several movies on one DVD), 
> but then I thought it might be useful for total beginners to have a basic 
> simple XML-file to start with.  
> 
> And just in case someone wants to code an file output dialog... or put it to 
> the project file... ;-)

I wonder if it wouldn't be more convenient to just have the XML file
written to disk automagically. The filename could be derived from the
output filename (e.g. by appending ".xml").

> A diff file to dvdcut.cpp of Revision 16 is attached ... apply it with 
> "patch -Np1 < xmlchapters.diff" from within your dvdcut main directory.

Applied, with a minimal change:

> +    char chapter[12];
[...]
> +        nchar+=sprintf(chapter,"%02d:%02d:%02d.%03d",

Don't you think that the buffer was a little too short? ;-)

Remember that there's a trailing '\0'. Besides that, the format may
overflow (okay... if the video is longer than 99 hours ;-). I guess that
16 bytes should be sufficient, though.

-- 
Michael "Tired" Riepe <[EMAIL PROTECTED]>
X-Tired: Each morning I get up I die a little

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
DVBCUT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dvbcut-user

Reply via email to