mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-07 18:24:19 -04:00
fix: prefer cli ffmpeg path over config file (#11219)
This commit is contained in:
parent
d57508fe4c
commit
e2e366f6d0
@ -154,12 +154,12 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void SetFFmpegPath()
|
public void SetFFmpegPath()
|
||||||
{
|
{
|
||||||
// 1) Custom path stored in config/encoding xml file under tag <EncoderAppPath> takes precedence
|
// 1) Check if the --ffmpeg CLI switch has been given
|
||||||
var ffmpegPath = _configurationManager.GetEncodingOptions().EncoderAppPath;
|
var ffmpegPath = _startupOptionFFmpegPath;
|
||||||
if (string.IsNullOrEmpty(ffmpegPath))
|
if (string.IsNullOrEmpty(ffmpegPath))
|
||||||
{
|
{
|
||||||
// 2) Check if the --ffmpeg CLI switch has been given
|
// 2) Custom path stored in config/encoding xml file under tag <EncoderAppPath> should be used as a fallback
|
||||||
ffmpegPath = _startupOptionFFmpegPath;
|
ffmpegPath = _configurationManager.GetEncodingOptions().EncoderAppPath;
|
||||||
if (string.IsNullOrEmpty(ffmpegPath))
|
if (string.IsNullOrEmpty(ffmpegPath))
|
||||||
{
|
{
|
||||||
// 3) Check "ffmpeg"
|
// 3) Check "ffmpeg"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user