only use vp9 if also enabled
This commit is contained in:
parent
8c977ba11b
commit
4073942ec2
2 changed files with 2 additions and 1 deletions
|
@ -156,7 +156,7 @@ def stream(video, target, profile, info, audio_track=0, flags={}):
|
||||||
else:
|
else:
|
||||||
height = 96
|
height = 96
|
||||||
|
|
||||||
if settings.FFMPEG_SUPPORTS_VP9:
|
if settings.USE_VP9 and settings.FFMPEG_SUPPORTS_VP9:
|
||||||
audio_codec = 'libopus'
|
audio_codec = 'libopus'
|
||||||
video_codec = 'libvpx-vp9'
|
video_codec = 'libvpx-vp9'
|
||||||
|
|
||||||
|
|
|
@ -197,6 +197,7 @@ AUTH_PROFILE_MODULE = 'user.UserProfile'
|
||||||
AUTH_CHECK_USERNAME = True
|
AUTH_CHECK_USERNAME = True
|
||||||
FFMPEG = 'ffmpeg'
|
FFMPEG = 'ffmpeg'
|
||||||
FFPROBE = 'ffprobe'
|
FFPROBE = 'ffprobe'
|
||||||
|
USE_VP9 = True
|
||||||
FFMPEG_SUPPORTS_VP9 = True
|
FFMPEG_SUPPORTS_VP9 = True
|
||||||
FFMPEG_DEBUG = False
|
FFMPEG_DEBUG = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue