-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract only the time information? #6
Comments
Yes but most players can't show the time when playing the file so I prefer to extract it into a sidecar SRT (or webtt). |
Right, so currently I have a custom script that calls |
Just found this project and looking to extract the per-frame TimeCode info, but confused a little by the values the XML on my AS100. 1080p60, NDF, TC set to 11:22:33:18 to start
1080p60, DF, TC set to 11:22:33:11 to start
1080p24, NDF, TC set to 00:00:00:00 to start
1080p30, DF, TC set to 00:00:00:00 to start
1080p60, DF, TC set to 00:00:00:00 to start
'TC.Run' set to 'REC' (only advance TC when recording) and 'TC.MAKE' set to 'PRSET'. To me those 'end' values don't make sense... |
For
The first packet from the stream looks like:
And the last packet looks like:
Can someone point me at which part of the data is for the TimeCodes? |
I found this thread after trying to re-sync a bunch of Sony FX3 footage (which involves shifting the timecode values). All of my footage is 30fps or 60fps, and what I think I've basically found is that the XML value is the starting timecode written backwards. For 30fps timecode that starts at 05:23:14:18, the XML value will be 18142305. 60fps timecode is just recorded as 30fps timecode with the frame value halved (05:23:14:36 will still be represented as 18142305). And if you're using drop-frame, then it adds 40 to the first two digits (i.e., 05;23;14;18 30fps DF will be 58142305, and 05;23;14;36 60fps DF will also be written as 58142305). I don't know what the end value means yet, but I think the pattern still follows with the first 2 digits representing the last frame... maybe digits 3&4 represent a hex value? Anyway, it was frustrating me all afternoon so maybe this will help someone in a similar predicament. |
Thanks for the tool, very useful.
Is there a way to only save the time in the SRT?
The text was updated successfully, but these errors were encountered: