Re: Chapter marks not where specified.

bn <aval57-/[email protected]> Wed, 28 Mar 2012 05:11:56 -0700 (PDT)
Newsgroups gmane.comp.multimedia.dvdauthor.user
Message-ID <[email protected]>
Hi Tom,

This may have some bearing on your problem: Dvdauthor uses a fractional time string in the form hh:mm:ss.frac as opposed to the usual hh:mm:ss.frame.  So to convert from frames to frac I use the function below with a "boost" of .001 to the fractional component, (without which the chapter point ends up back at the start of the previous GOP rather than the intended frame, as you describe):

// ----------------------------------------------------------------------------
//    dvdauthorXml::timestampFractional :
// ----------------------------------------------------------------------------
//    Returns hh:mm:ss.frac rounded timestamp string, as used by dvdauthor.
//
//    Arguments:
//       <f>         - absolute frame offset
//       <ntsc>      - whether tv system is ntsc
//       <boost>     - amount to inflate the timestamp
// ----------------------------------------------------------------------------


wxString dvdauthorXml::timestampFractional( uint32_t f, bool ntsc, float boost )
{
    uint16_t hour, min;
    uint64_t ticks = f * ( ntsc ? 3003 : 3600 );
    double sec = (double)ticks / 90000;

    hour = (int)sec / 3600;
    min = ( (int)sec % 3600 ) / 60;
    sec -= ( (int)sec / 60 * 60 );

    return _f( "%02d:%02d:%05.3f", hour, min, sec + boost );
}

So basically padding your times by .001 will overcome this "fracking" issue.

hth,
-Bahman

--- On Mon, 3/26/12, Tom Brock <tomb-yZYHXxUkMT10YYv+nEap2lpr/1R2p/[email protected]> wrote:

From: Tom Brock <tomb-yZYHXxUkMT10YYv+nEap2lpr/1R2p/[email protected]>
Subject: [Dvdauthor-users] Chapter marks not where specified.
To: dvdauthor-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Date: Monday, March 26, 2012, 4:42 PM

I'm using version 0.6.18 on Debian squeeze. I'm creating a very simple PAL DVD 
from a single mpeg file which has I-frames placed at precisely the 
approximately 35 points I want to use for chapter marks.  Those exact same 
times are listed in the xml file (copied and pasted from the ffmpeg command 
line that created the mpeg file).  Dvdauthor places its chapter marks, in 
every case, at the I-frame immediately preceding the specified time.  This 
does not seem to me to accord with the documentation.

What could be causing this systematically wrong placement?   

Tom Brock



------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Dvdauthor-users mailing list
Dvdauthor-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/dvdauthor-users

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure

_______________________________________________
Dvdauthor-users mailing list
Dvdauthor-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/dvdauthor-users