add 0p for audio only profile

This commit is contained in:
j 2021-04-01 11:30:28 +02:00
parent 20b3831862
commit 7f31998254
1 changed files with 7 additions and 0 deletions

View File

@ -145,6 +145,13 @@ def stream(video, target, profile, info, audio_track=0, flags={}):
audioquality = -1
audiobitrate = '22k'
audiochannels = 1
elif profile == '0p':
info['video'] = []
audiorate = 48000
audioquality = 6
audiobitrate = None
audiochannels = None
audio_codec = 'libopus'
else:
height = 96