public static int timevalueToTimecodeFrame ( TrakBox timecodeTrack , RationalLarge tv , int movieTimescale ) { TimecodeSampleEntry se = ( TimecodeSampleEntry ) timecodeTrack . getSampleEntries ( ) [ 0 ] ; return ( int ) ( ( 2 * tv . multiplyS ( se . getTimescale ( ) ) / se . getFrameDuration ( ) ) + 1 ) / 2 ; }
Converts timevalue to frame number based on timecode track