aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Playback/Progressive/VideoService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Api/Playback/Progressive/VideoService.cs')
-rw-r--r--MediaBrowser.Api/Playback/Progressive/VideoService.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Playback/Progressive/VideoService.cs b/MediaBrowser.Api/Playback/Progressive/VideoService.cs
index f545c0005..947424241 100644
--- a/MediaBrowser.Api/Playback/Progressive/VideoService.cs
+++ b/MediaBrowser.Api/Playback/Progressive/VideoService.cs
@@ -65,7 +65,7 @@ namespace MediaBrowser.Api.Playback.Progressive
{
return ProcessRequest(request, true);
}
-
+
/// <summary>
/// Gets the command line arguments.
/// </summary>
@@ -195,6 +195,12 @@ namespace MediaBrowser.Api.Playback.Progressive
if (channels.HasValue)
{
args += " -ac " + channels.Value;
+
+ // Boost volume to 200% when downsampling from 6ch to 2ch
+ if (channels.Value <= 2 && state.AudioStream.Channels.HasValue && state.AudioStream.Channels.Value > 5)
+ {
+ args += " -vol 512";
+ }
}
if (request.AudioSampleRate.HasValue)