specify input codecs

pull/1154/head
Luke Pulverenti 8 years ago
parent 853dbfc558
commit 72887a1f6b

@ -2691,6 +2691,18 @@ namespace MediaBrowser.Api.Playback
{
//inputModifier += " -noaccurate_seek";
}
var videoStream = state.VideoStream;
if (videoStream != null && !string.IsNullOrWhiteSpace(videoStream.Codec))
{
inputModifier += " -codec:0 " + videoStream.Codec;
var audioStream = state.AudioStream;
if (audioStream != null && !string.IsNullOrWhiteSpace(audioStream.Codec))
{
inputModifier += " -codec:1 " + audioStream.Codec;
}
}
}
return inputModifier;

Loading…
Cancel
Save