|
|
|
|
|
by w-m
353 days ago
|
|
In the meantime I realized that the apad part is nonsensical - it pads the end of the stream, not at each silence-removed cut. I wanted to get angry at o3 for proposing this, but then I had a look at the silenceremove= documentation myself: https://ffmpeg.org/ffmpeg-filters.html#silenceremove Good god. You couldn't make that any more convoluted and hard-to-grasp if you wanted to. You gotta love ffmpeg! I now think this might be a good solution: ffmpeg -i video-audio.m4a \
-af "silenceremove=start_periods=1:stop_periods=-1:stop_duration=0.15:stop_threshold=-40dB:detection=rms" \
-c:a aac -b:a 128k output.m4a -y
|
|