mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 19:37:55 +02:00
specify input codecs
This commit is contained in:
parent
853dbfc558
commit
72887a1f6b
1 changed files with 12 additions and 0 deletions
|
@ -2691,6 +2691,18 @@ namespace MediaBrowser.Api.Playback
|
||||||
{
|
{
|
||||||
//inputModifier += " -noaccurate_seek";
|
//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;
|
return inputModifier;
|
||||||
|
|
Loading…
Reference in a new issue