Merge pull request #7 from markv9401/master

Update rffmpeg.py
This commit is contained in:
Joshua M. Boniface 2020-11-20 16:55:50 -05:00 committed by GitHub
commit 3ece634417
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,7 +120,8 @@ def local_ffmpeg_fallback():
# Determine if version, encorders, or decoders is an argument; if so, we output stdout to stdout
# Weird workaround for something Jellyfin requires...
if '-version' in cli_ffmpeg_args or '-encoders' in cli_ffmpeg_args or '-decoders' in cli_ffmpeg_args:
specials = ['-version', '-encoders', '-decoders', '-hwaccels']
if any(item in specials for item in cli_ffmpeg_args):
stdout = sys.stdout
# Parse and re-quote any problematic arguments