diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-11-08 22:18:14 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-11-08 22:18:14 -0500 |
| commit | 40897bac1494791e1ec6abcfe85cda27d4664a32 (patch) | |
| tree | 4788db3f5e35a3a06c9668f4460299c4f4a17ca1 /MediaBrowser.Api/Playback/Hls/MpegDashService.cs | |
| parent | 0ef95fb19cde8f4443e2cede94ec21583c3dc9d7 (diff) | |
fixes #941 - Rework password recovery and remove IsLocal checks
Diffstat (limited to 'MediaBrowser.Api/Playback/Hls/MpegDashService.cs')
| -rw-r--r-- | MediaBrowser.Api/Playback/Hls/MpegDashService.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Playback/Hls/MpegDashService.cs b/MediaBrowser.Api/Playback/Hls/MpegDashService.cs index 7135d9b84..3c1f07c5f 100644 --- a/MediaBrowser.Api/Playback/Hls/MpegDashService.cs +++ b/MediaBrowser.Api/Playback/Hls/MpegDashService.cs @@ -598,6 +598,8 @@ namespace MediaBrowser.Api.Playback.Hls var args = "-codec:v:0 " + codec + " " + GetVideoQualityParam(state, "libx264", true) + keyFrameArg; + args += " -r 24 -g 24"; + // Add resolution params, if specified if (!hasGraphicalSubs) { @@ -615,6 +617,9 @@ namespace MediaBrowser.Api.Playback.Hls protected override string GetCommandLineArguments(string outputPath, string transcodingJobId, StreamState state, bool isEncoding) { + // test url http://192.168.1.2:8096/mediabrowser/videos/233e8905d559a8f230db9bffd2ac9d6d/master.mpd?mediasourceid=233e8905d559a8f230db9bffd2ac9d6d&videocodec=h264&audiocodec=aac&maxwidth=1280&videobitrate=500000&audiobitrate=128000&profile=baseline&level=3 + // Good info on i-frames http://blog.streamroot.io/encode-multi-bitrate-videos-mpeg-dash-mse-based-media-players/ + var threads = GetNumberOfThreads(state, false); var inputModifier = GetInputModifier(state); @@ -624,7 +629,7 @@ namespace MediaBrowser.Api.Playback.Hls var segmentFilename = Path.GetFileNameWithoutExtension(outputPath) + "%03d" + GetSegmentFileExtension(state); - var args = string.Format("{0} -i {1} -map_metadata -1 -threads {2} {3} {4} -copyts -flags -global_header {5} -f ssegment -segment_time {6} -segment_format_options movflags=+faststart -segment_list_size {8} -segment_list \"{9}\" {10}", + var args = string.Format("{0} -i {1} -map_metadata -1 -threads {2} {3} {4} -copyts {5} -f ssegment -segment_time {6} -segment_list_size {8} -segment_list \"{9}\" {10}", inputModifier, GetInputArgument(transcodingJobId, state), threads, |
