demlo: Add 'ogg.lua' script
parent
d7b7d72764
commit
e3fc2deee0
|
@ -0,0 +1,14 @@
|
||||||
|
-- Force output to OGG.
|
||||||
|
|
||||||
|
local OGGMAX = 500000
|
||||||
|
|
||||||
|
local bitrate = bps or 9999999
|
||||||
|
local OGGMAX = 500000
|
||||||
|
|
||||||
|
if bitrate > input.bitrate then
|
||||||
|
bitrate = input.bitrate
|
||||||
|
end
|
||||||
|
|
||||||
|
output.parameters = {'-c:a', 'libvorbis', '-b:a', tostring(math.min(bitrate, OGGMAX))}
|
||||||
|
|
||||||
|
output.format = 'ogg'
|
Loading…
Reference in New Issue