Add gen pts flags correct movies that have none or have bad pts values. Applied to all c/l
This commit is contained in:
parent
e206f27839
commit
139e9404c1
|
@ -365,7 +365,7 @@ namespace MediaBrowser.Api.Playback
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return string.Format("-af \"{0}aresample={1}async=1{2}{3}\"",
|
return string.Format("-af \"{0}aresample={1}async=1000{2}{3}\"",
|
||||||
|
|
||||||
adelay,
|
adelay,
|
||||||
audioSampleRate,
|
audioSampleRate,
|
||||||
|
|
|
@ -274,7 +274,7 @@ namespace MediaBrowser.Api.Playback.Hls
|
||||||
|
|
||||||
var threads = GetNumberOfThreads(false);
|
var threads = GetNumberOfThreads(false);
|
||||||
|
|
||||||
var args = string.Format("{0}{1} {2} {3} -i {4}{5} -map_metadata -1 -threads {6} {7} {8} -sc_threshold 0 {9} -hls_time {10} -start_number 0 -hls_list_size 1440 \"{11}\"",
|
var args = string.Format("{0}{1} {2} {3} -fflags genpts -i {4}{5} -map_metadata -1 -threads {6} {7} {8} -sc_threshold 0 {9} -hls_time {10} -start_number 0 -hls_list_size 1440 \"{11}\"",
|
||||||
itsOffset,
|
itsOffset,
|
||||||
probeSize,
|
probeSize,
|
||||||
GetUserAgentParam(state.MediaPath),
|
GetUserAgentParam(state.MediaPath),
|
||||||
|
|
|
@ -106,7 +106,7 @@ namespace MediaBrowser.Api.Playback.Progressive
|
||||||
|
|
||||||
var threads = GetNumberOfThreads(string.Equals(videoCodec, "libvpx", StringComparison.OrdinalIgnoreCase));
|
var threads = GetNumberOfThreads(string.Equals(videoCodec, "libvpx", StringComparison.OrdinalIgnoreCase));
|
||||||
|
|
||||||
return string.Format("{0} {1} {2} -i {3}{4}{5} {6} {7} -map_metadata -1 -threads {8} {9}{10} \"{11}\"",
|
return string.Format("{0} {1} {2} -fflags genpts -i {3}{4}{5} {6} {7} -map_metadata -1 -threads {8} {9}{10} \"{11}\"",
|
||||||
probeSize,
|
probeSize,
|
||||||
GetUserAgentParam(state.MediaPath),
|
GetUserAgentParam(state.MediaPath),
|
||||||
GetFastSeekCommandLineParameter(state.Request),
|
GetFastSeekCommandLineParameter(state.Request),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user