add 0p for audio only profile
This commit is contained in:
parent
20b3831862
commit
7f31998254
1 changed files with 7 additions and 0 deletions
|
@ -145,6 +145,13 @@ def stream(video, target, profile, info, audio_track=0, flags={}):
|
||||||
audioquality = -1
|
audioquality = -1
|
||||||
audiobitrate = '22k'
|
audiobitrate = '22k'
|
||||||
audiochannels = 1
|
audiochannels = 1
|
||||||
|
elif profile == '0p':
|
||||||
|
info['video'] = []
|
||||||
|
audiorate = 48000
|
||||||
|
audioquality = 6
|
||||||
|
audiobitrate = None
|
||||||
|
audiochannels = None
|
||||||
|
audio_codec = 'libopus'
|
||||||
else:
|
else:
|
||||||
height = 96
|
height = 96
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue