|
|
|
@ -530,7 +530,8 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|
|
|
|
{
|
|
|
|
|
var seconds = Math.Round(TimeSpan.FromTicks(state.StartTimeTicks ?? 0).TotalSeconds);
|
|
|
|
|
|
|
|
|
|
var setPtsParam = state.CopyTimestamps
|
|
|
|
|
// hls always copies timestamps
|
|
|
|
|
var setPtsParam = state.CopyTimestamps || state.TranscodingType != TranscodingJobType.Progressive
|
|
|
|
|
? string.Empty
|
|
|
|
|
: string.Format(",setpts=PTS -{0}/TB", seconds.ToString(_usCulture));
|
|
|
|
|
|
|
|
|
@ -1083,7 +1084,8 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (state.SubtitleStream != null && state.SubtitleStream.IsTextSubtitleStream && state.SubtitleDeliveryMethod == SubtitleDeliveryMethod.Encode && !state.CopyTimestamps)
|
|
|
|
|
var isCopyingTimestamps = state.CopyTimestamps || state.TranscodingType != TranscodingJobType.Progressive;
|
|
|
|
|
if (state.SubtitleStream != null && state.SubtitleStream.IsTextSubtitleStream && state.SubtitleDeliveryMethod == SubtitleDeliveryMethod.Encode && !isCopyingTimestamps)
|
|
|
|
|
{
|
|
|
|
|
var seconds = TimeSpan.FromTicks(state.StartTimeTicks ?? 0).TotalSeconds;
|
|
|
|
|
|
|
|
|
|