# voice memo clean-up: commands.log (2026-11-21, ffmpeg 6.1.1) test file: memo.m4a (synthetic voice reading our own text, quiet, with 2.5 s, 4 s and 3 s pauses and faint pink noise; mono AAC) codec_name=aac sample_rate=48000 channels=1 r_frame_rate=0/0 duration=22.015000 size=182233 loudness before: I: -29.1 LUFS LRA: 7.3 LU ## 1. cut pauses longer than one second and bring loudness to -16 LUFS published: ffmpeg -i memo.m4a -af "silenceremove=stop_periods=-1:stop_duration=1:stop_threshold=-40dB:start_periods=1:start_threshold=-40dB,loudnorm=I=-16:TP=-1.5:LRA=11" -ar 48000 -c:a aac -b:a 128k memo-clean.m4a exit=0 time=1.476s codec_name=aac sample_rate=48000 channels=1 r_frame_rate=0/0 duration=13.700000 size=229160 loudness after: I: -16.5 LUFS LRA: 2.1 LU edge: a memo with no pauses and normal level (b.wav only), same command codec_name=aac sample_rate=16000 channels=1 r_frame_rate=0/0 duration=6.530000 size=57071 published: ffmpeg -i edge.m4a -af "silenceremove=stop_periods=-1:stop_duration=1:stop_threshold=-40dB:start_periods=1:start_threshold=-40dB,loudnorm=I=-16:TP=-1.5:LRA=11" -ar 48000 -c:a aac -b:a 128k edge-clean.m4a exit=0 time=.6357s codec_name=aac sample_rate=48000 channels=1 r_frame_rate=0/0 duration=6.400000 size=106490 loudness edge before/after: I: -16.9 LUFS I: -16.1 LUFS ## 2. still picture plus the memo = a vertical video published: ffmpeg -loop 1 -i cover.png -i memo-clean.m4a -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -c:v libx264 -tune stillimage -r 30 -pix_fmt yuv420p -c:a copy -shortest memo-video.mp4 exit=0 time=7.089s codec_name=h264 width=1080 height=1920 r_frame_rate=30/1 codec_name=aac sample_rate=48000 channels=1 r_frame_rate=0/0 duration=13.700000 size=272916 edge: cover with an odd size (1081x1921), same command published: ffmpeg -loop 1 -i cover-odd.png -i memo-clean.m4a -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -c:v libx264 -tune stillimage -r 30 -pix_fmt yuv420p -c:a copy -shortest edge-video.mp4 exit=0 time=8.327s codec_name=h264 width=1080 height=1920 r_frame_rate=30/1 codec_name=aac sample_rate=48000 channels=1 r_frame_rate=0/0 duration=13.700000 size=273544 edge: the same odd cover WITHOUT the scale filter (not published; shows why the filter is there) [libx264 @ 0x5f67f32c3a40] width not divisible by 2 (1081x1921) exit=187