demlo: Set ogg max bitrate to 192k
parent
18062e3ce9
commit
dfeb676474
|
@ -1,12 +1,12 @@
|
|||
-- Keep result of 'encoding.lua' except flac.
|
||||
|
||||
local bitrate = bps or 9999999
|
||||
local OGGMAX = 500000
|
||||
local bitrate_max = 192000
|
||||
|
||||
if output.format == 'flac' then
|
||||
if bitrate > input.bitrate then
|
||||
bitrate = input.bitrate
|
||||
end
|
||||
output.format = 'ogg'
|
||||
output.parameters = {'-c:a', 'libvorbis', '-b:a', tostring(math.min(bitrate, OGGMAX))}
|
||||
output.parameters = {'-c:a', 'libvorbis', '-b:a', tostring(math.min(bitrate, bitrate_max))}
|
||||
end
|
||||
|
|
|
@ -1,14 +1,12 @@
|
|||
-- Force output to OGG.
|
||||
|
||||
local OGGMAX = 500000
|
||||
|
||||
local bitrate = bps or 9999999
|
||||
local OGGMAX = 500000
|
||||
local bitrate_max = 192000
|
||||
|
||||
if bitrate > input.bitrate then
|
||||
bitrate = input.bitrate
|
||||
end
|
||||
|
||||
output.parameters = {'-c:a', 'libvorbis', '-b:a', tostring(math.min(bitrate, OGGMAX))}
|
||||
output.parameters = {'-c:a', 'libvorbis', '-b:a', tostring(math.min(bitrate, bitrate_max))}
|
||||
|
||||
output.format = 'ogg'
|
||||
|
|
Loading…
Reference in New Issue