From 4073942ec2ab463f525df7b6c3b4838fbae6fa34 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 29 Jul 2023 10:27:47 +0200 Subject: [PATCH] only use vp9 if also enabled --- pandora/archive/extract.py | 2 +- pandora/settings.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index 8cd66c3bf..fc5d00c01 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -156,7 +156,7 @@ def stream(video, target, profile, info, audio_track=0, flags={}): else: height = 96 - if settings.FFMPEG_SUPPORTS_VP9: + if settings.USE_VP9 and settings.FFMPEG_SUPPORTS_VP9: audio_codec = 'libopus' video_codec = 'libvpx-vp9' diff --git a/pandora/settings.py b/pandora/settings.py index 52ac5fc35..f47379e5e 100644 --- a/pandora/settings.py +++ b/pandora/settings.py @@ -197,6 +197,7 @@ AUTH_PROFILE_MODULE = 'user.UserProfile' AUTH_CHECK_USERNAME = True FFMPEG = 'ffmpeg' FFPROBE = 'ffprobe' +USE_VP9 = True FFMPEG_SUPPORTS_VP9 = True FFMPEG_DEBUG = False