forked from 0x2620/pandora
add more video modes
This commit is contained in:
parent
b2d60f20d3
commit
1cad133fc3
3 changed files with 26 additions and 0 deletions
|
@ -38,6 +38,10 @@
|
||||||
ProxyPass / http://127.0.0.1:2620/
|
ProxyPass / http://127.0.0.1:2620/
|
||||||
ProxyPassReverse / http://127.0.0.1:2620/
|
ProxyPassReverse / http://127.0.0.1:2620/
|
||||||
|
|
||||||
|
LogLevel warn
|
||||||
|
ErrorLog /var/log/apache2/pandora_error.log
|
||||||
|
CustomLog /var/log/apache2/pandora_access.log combined
|
||||||
|
|
||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
|
|
|
@ -85,6 +85,13 @@ def stream(video, target, profile, info):
|
||||||
audioquality = 2
|
audioquality = 2
|
||||||
audiobitrate = None
|
audiobitrate = None
|
||||||
audiochannels = 2
|
audiochannels = 2
|
||||||
|
elif profile == '432p':
|
||||||
|
height = 432
|
||||||
|
audiorate = 44100
|
||||||
|
audioquality = 2
|
||||||
|
audiobitrate = None
|
||||||
|
audiochannels = 2
|
||||||
|
|
||||||
elif profile == '360p':
|
elif profile == '360p':
|
||||||
height = 360
|
height = 360
|
||||||
|
|
||||||
|
@ -92,6 +99,13 @@ def stream(video, target, profile, info):
|
||||||
audioquality = 1
|
audioquality = 1
|
||||||
audiobitrate = None
|
audiobitrate = None
|
||||||
audiochannels = 1
|
audiochannels = 1
|
||||||
|
elif profile == '288p':
|
||||||
|
height = 288
|
||||||
|
|
||||||
|
audiorate = 44100
|
||||||
|
audioquality = 0
|
||||||
|
audiobitrate = None
|
||||||
|
audiochannels = 1
|
||||||
elif profile == '240p':
|
elif profile == '240p':
|
||||||
height = 240
|
height = 240
|
||||||
|
|
||||||
|
@ -99,6 +113,13 @@ def stream(video, target, profile, info):
|
||||||
audioquality = 0
|
audioquality = 0
|
||||||
audiobitrate = None
|
audiobitrate = None
|
||||||
audiochannels = 1
|
audiochannels = 1
|
||||||
|
elif profile == '144p':
|
||||||
|
height = 144
|
||||||
|
|
||||||
|
audiorate = 22050
|
||||||
|
audioquality = -1
|
||||||
|
audiobitrate = '22k'
|
||||||
|
audiochannels = 1
|
||||||
else:
|
else:
|
||||||
height = 96
|
height = 96
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ import os
|
||||||
|
|
||||||
from django.conf.urls.defaults import *
|
from django.conf.urls.defaults import *
|
||||||
from ox.django.http import HttpFileResponse
|
from ox.django.http import HttpFileResponse
|
||||||
|
from django.views.generic.simple import redirect_to
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue