View Single Post
Old 6th April 2010, 20:15   #1516  |  Link
Abradoks
Registered User
 
Join Date: Mar 2008
Posts: 71
Quote:
Originally Posted by Mosu View Post
No. --default-duration only sets the default duration parameter. The default duration is used if no timecode information is provided by the source (which is rare, e.g. raw h264 streams). Other than that --default-duration does not modify timecodes at all.
Oh, so. Than you should correct docs:
Quote:
Forces the default duration of a given track to the specified value. Also modifies the track's timecodes to match the default duration.
Quote:
Originally Posted by Mosu View Post
Patches are always welcome.
That's much better answer than "I won't change that".

Quote:
Originally Posted by Mosu View Post
That only works if only a single track has that parameter set. What if you have three tracks (audio, video, subtitles) and both the audio and subtitle track have different TrackTimecodeScale values set?
It's pretty simple. Only audio timecodes are hard to change, so player multiples every active track's timecodes by (Own_TrackTimecodeScale/Audio_TrackTimecodeScale). For audio it will always be "1".
Abradoks is offline