<div dir="ltr">On Thu, Mar 21, 2013 at 4:08 PM, Trond Nystuen <span dir="ltr"><<a href="mailto:trond_nystuen@yahoo.no" target="_blank">trond_nystuen@yahoo.no</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On 21/03/13 1:00, Jim Stichnoth wrote:<br>
<br>
<br>
> The file names look like this:<br>
>><br>
>> 0_52633905-to-52635705.png<br>
>> 1_52635825-to-52639705.png<br>
>> 2_52639825-to-52642185.png<br>
>> 3_52642985-to-52646265.png<br>
>> 4_52646425-to-52649145.png<br>
>><br>
>> I suppose the first part of the filename is a sequence number, and the two other ones are frame numbers.<br>
>><br>
>><br>
> The latter numbers are supposed to be millisecond timestamps where the first frame has a timestamp of 0. The relative numbers look OK, but the<br>
<br>
> absolute numbers do not.<br>
<br>
<br>
</div>It makes sense that the subtitles are om the screen for about 3-4 seconds.<br>
<br>
This recording was started in the middle of the program, and may be the reason for the high timestamps. It will probably be difficult to line up the subtitles to the video.<br>
<div class=""><div class="h5"><br></div></div></blockquote><div><br></div><div style>I looked a little further and I see that the mythccextractor code is using the initial pts of the video as the starting timestamp. You can get the initial pts by looking at the ffprobe output, e.g.:</div>
<div style><br></div><div style><div>Input #0, mpegts, from '/tmp/test.mpg':</div><div> Duration: 00:00:40.04, start: 50077.909289, bitrate: 10229 kb/s</div><div><br></div><div style>In this case the initial pts is 50077.909289 and therefore I would subtract 50077909 from all the timestamps in the subtitle filenames to get the true millisecond offsets of the subtitles.</div>
<div style><br></div><div style>Jim</div></div></div></div></div>