<div dir="ltr">I need to maintain closed captions when transcoding.  I'm using MythTV 0.28 and right now mythtranscode is not working properly (leaves garbage for video and vastly reduced volume on audio).  I've written a little script using HandbrakeCLI to reduce file size and transcode, and then convert to mkv for use with MythVideo.   I can even add the captions back in at any time.  I use ccextractor to convert the captions into an srt file just fine.<div><br></div><div>My problem is this.   When I read the cutlist and convert the frame numbers into the hh:mm:ss format I need for the srt file changes, I end up with incorrect values.   For example, one of my recordings has a cutpoint at frame 45166.   According to the front end, this is at 27:43.852 in the recording.  When I do the math, I end up with 27:07.040.  The further into the recording you go the worse the difference gets (as much as 8 minutes in a 60 minute recording).</div><div><br></div><div>I suspect there is some kind of conversion going on with the frame numbers, but for the life of me I can't find it.   I tried digging through the source thinking that if I could find the code that converts frames to hh:mm:ss for the front end display during editing of a recording I could figure that out.   A few hours later and I've still not found that code lol - I'm sure it's buried in a support lib or something, but damned if I can find it.</div><div><br></div><div>Anyone able to point me in the right direction to resolve this?   I've basically got the entire script completed if I can get this working.</div></div>