mirror of
https://github.com/chuot/rdio-scanner.git
synced 2026-08-13 16:33:01 -06:00
Trim silence from audio files when converting to m4a
This commit is contained in:
parent
d4f25eee3c
commit
4b8e860b04
|
|
@ -123,6 +123,9 @@ class Controller extends EventEmitter {
|
||||||
const proc = spawn('ffmpeg', [
|
const proc = spawn('ffmpeg', [
|
||||||
'-i',
|
'-i',
|
||||||
'-',
|
'-',
|
||||||
|
'-af',
|
||||||
|
'silenceremove=start_periods=1:start_duration=1:start_threshold=-60dB:detection=peak,aformat=dblp,areverse,'
|
||||||
|
+ 'silenceremove=start_periods=1:start_duration=1:start_threshold=-60dB:detection=peak,aformat=dblp,areverse',
|
||||||
...metadata,
|
...metadata,
|
||||||
'-c:a',
|
'-c:a',
|
||||||
'aac',
|
'aac',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue