forked from 0x2620/pandora
add resolutions to firefogg upload
This commit is contained in:
parent
1cad133fc3
commit
14fa74bf44
3 changed files with 20 additions and 3 deletions
|
@ -82,16 +82,15 @@ def stream(video, target, profile, info):
|
||||||
height = 480
|
height = 480
|
||||||
|
|
||||||
audiorate = 44100
|
audiorate = 44100
|
||||||
audioquality = 2
|
audioquality = 3
|
||||||
audiobitrate = None
|
audiobitrate = None
|
||||||
audiochannels = 2
|
audiochannels = 2
|
||||||
elif profile == '432p':
|
elif profile == '432p':
|
||||||
height = 432
|
height = 432
|
||||||
audiorate = 44100
|
audiorate = 44100
|
||||||
audioquality = 2
|
audioquality = 3
|
||||||
audiobitrate = None
|
audiobitrate = None
|
||||||
audiochannels = 2
|
audiochannels = 2
|
||||||
|
|
||||||
elif profile == '360p':
|
elif profile == '360p':
|
||||||
height = 360
|
height = 360
|
||||||
|
|
||||||
|
|
|
@ -685,6 +685,8 @@
|
||||||
"download": true,
|
"download": true,
|
||||||
"formats": ["webm", "mp4"],
|
"formats": ["webm", "mp4"],
|
||||||
"previewRatio": 1.3333333333,
|
"previewRatio": 1.3333333333,
|
||||||
|
//supported resolutions are
|
||||||
|
//1080, 720, 480, 432, 360, 288, 240, 144, 96
|
||||||
"resolutions": [480, 240, 96]
|
"resolutions": [480, 240, 96]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -226,16 +226,32 @@ pandora.ui.uploadDialog = function(data) {
|
||||||
options.samplerate = 44100;
|
options.samplerate = 44100;
|
||||||
options.audioQuality = 3;
|
options.audioQuality = 3;
|
||||||
options.channels = 2;
|
options.channels = 2;
|
||||||
|
} else if (resolution == 432) {
|
||||||
|
options.height = 432;
|
||||||
|
options.samplerate = 44100;
|
||||||
|
options.audioQuality = 3;
|
||||||
|
options.channels = 2;
|
||||||
} else if (resolution == 360) {
|
} else if (resolution == 360) {
|
||||||
options.height = 320;
|
options.height = 320;
|
||||||
options.samplerate = 44100;
|
options.samplerate = 44100;
|
||||||
options.audioQuality = 1;
|
options.audioQuality = 1;
|
||||||
options.channels = 1;
|
options.channels = 1;
|
||||||
|
} else if (resolution == 288) {
|
||||||
|
options.height = 288;
|
||||||
|
options.samplerate = 44100;
|
||||||
|
options.audioQuality = 0;
|
||||||
|
options.channels = 1;
|
||||||
} else if (resolution == 240) {
|
} else if (resolution == 240) {
|
||||||
options.height = 240;
|
options.height = 240;
|
||||||
options.samplerate = 44100;
|
options.samplerate = 44100;
|
||||||
options.audioQuality = 0;
|
options.audioQuality = 0;
|
||||||
options.channels = 1;
|
options.channels = 1;
|
||||||
|
} else if (resolution == 144) {
|
||||||
|
options.height = 144;
|
||||||
|
options.samplerate = 22050;
|
||||||
|
options.audioQuality = -1;
|
||||||
|
options.audioBitrate = 22;
|
||||||
|
options.channels = 1;
|
||||||
} else if (resolution == 96) {
|
} else if (resolution == 96) {
|
||||||
options.height = 96;
|
options.height = 96;
|
||||||
options.samplerate = 22050;
|
options.samplerate = 22050;
|
||||||
|
|
Loading…
Reference in a new issue