Browse Source

fix more error stream settings (#810)

pull/811/head
Jason Dove 4 years ago committed by GitHub
parent
commit
0ba3ac7f50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ErsatzTV.Core/FFmpeg/FFmpegLibraryProcessService.cs
  2. 6
      ErsatzTV.Core/FFmpeg/FFmpegPlaybackSettingsCalculator.cs

2
ErsatzTV.Core/FFmpeg/FFmpegLibraryProcessService.cs

@ -293,7 +293,7 @@ public class FFmpegLibraryProcessService : IFFmpegProcessService
playbackSettings.AudioBufferSize, playbackSettings.AudioBufferSize,
playbackSettings.AudioSampleRate, playbackSettings.AudioSampleRate,
Option<TimeSpan>.None, Option<TimeSpan>.None,
playbackSettings.NormalizeLoudness); false);
var desiredState = new FrameState( var desiredState = new FrameState(
playbackSettings.RealtimeOutput, playbackSettings.RealtimeOutput,

6
ErsatzTV.Core/FFmpeg/FFmpegPlaybackSettingsCalculator.cs

@ -180,7 +180,13 @@ public class FFmpegPlaybackSettingsCalculator
ThreadCount = 1, ThreadCount = 1,
FormatFlags = CommonFormatFlags, FormatFlags = CommonFormatFlags,
VideoFormat = ffmpegProfile.VideoFormat, VideoFormat = ffmpegProfile.VideoFormat,
VideoBitrate = ffmpegProfile.VideoBitrate,
VideoBufferSize = ffmpegProfile.VideoBufferSize,
AudioFormat = ffmpegProfile.AudioFormat, AudioFormat = ffmpegProfile.AudioFormat,
AudioBitrate = ffmpegProfile.AudioBitrate,
AudioBufferSize = ffmpegProfile.AudioBufferSize,
AudioChannels = ffmpegProfile.AudioChannels,
AudioSampleRate = ffmpegProfile.AudioSampleRate,
RealtimeOutput = streamingMode switch RealtimeOutput = streamingMode switch
{ {
StreamingMode.HttpLiveStreamingSegmenter => hlsRealtime, StreamingMode.HttpLiveStreamingSegmenter => hlsRealtime,

Loading…
Cancel
Save