demlo: Set ogg max bitrate to 192k
parent
18062e3ce9
commit
dfeb676474
|
@ -1,12 +1,12 @@
|
||||||
-- Keep result of 'encoding.lua' except flac.
|
-- Keep result of 'encoding.lua' except flac.
|
||||||
|
|
||||||
local bitrate = bps or 9999999
|
local bitrate = bps or 9999999
|
||||||
local OGGMAX = 500000
|
local bitrate_max = 192000
|
||||||
|
|
||||||
if output.format == 'flac' then
|
if output.format == 'flac' then
|
||||||
if bitrate > input.bitrate then
|
if bitrate > input.bitrate then
|
||||||
bitrate = input.bitrate
|
bitrate = input.bitrate
|
||||||
end
|
end
|
||||||
output.format = 'ogg'
|
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
|
end
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
-- Force output to OGG.
|
-- Force output to OGG.
|
||||||
|
|
||||||
local OGGMAX = 500000
|
|
||||||
|
|
||||||
local bitrate = bps or 9999999
|
local bitrate = bps or 9999999
|
||||||
local OGGMAX = 500000
|
local bitrate_max = 192000
|
||||||
|
|
||||||
if bitrate > input.bitrate then
|
if bitrate > input.bitrate then
|
||||||
bitrate = input.bitrate
|
bitrate = input.bitrate
|
||||||
end
|
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'
|
output.format = 'ogg'
|
||||||
|
|
Loading…
Reference in New Issue