13 lines
312 B
Lua
13 lines
312 B
Lua
-- Keep result of 'encoding.lua' except flac.
|
|
|
|
local bitrate = bps or 9999999
|
|
local OGGMAX = 500000
|
|
|
|
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))}
|
|
end
|