specify input codecs
This commit is contained in:
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…
Reference in New Issue
Block a user