[mythtv-users] Converting MythTV Frame/time to ffmpeg time?

John Pilkington J.Pilk at tesco.net
Mon Jan 25 11:45:08 UTC 2016


On 25/01/16 09:23, John Pilkington wrote:
> On 25/01/16 07:51, Philipp Hahn wrote:

<snipped>
>>
>> So how does one convert the MythTV values to something I can pass to
>> ffmpeg to get the exact cut points?
>> My tries with frame * 1s/50 have failed so far, which leads to the
>> output file to still start with some frames before or after the exact
>> frame, etc.
>>
>> Thanks in advance.
>> Philipp
>>
>
> I haven't tried using ffmpeg to cut h264, but your use-case sounds as if
> my mythDVBcut script could fit - or at least give you a possible
> starting point.  For non-mpeg2 recordings it just cuts at
> video-keyframes, with no demux/remux complications.  It works with DVB-T
> radio as well, with 1-sec granularity.
>
> https://www.mythtv.org/wiki/MythDVBcut

A more direct answer to your question is that mythutil --getmarkup will 
write an .xml file containing time-offset (ms), byte-offset and 
frame-offset for all keyframes.  See mythutil --help.

>
> HTH
>
> John P
>





More information about the mythtv-users mailing list