# commands.log: mp3-silence-at-beginning, November 29, 2026 (server: Ubuntu 24.04, ffmpeg 6.1.1, Python 3, Node 24.21.0, Playwright Chromium 153 and Firefox 157) # Each published command as run, its exit code and the edge inputs it was also tried on. Scripts sit next to this file. published: ffmpeg -i effect.wav -vn effect.mp3 ran: ffmpeg -v error -y -i effect.wav -vn effect.mp3 exit=0 | 19479 bytes; cmp with the converter output: effect.mp3 ../out/mp3/karabiner-click.tool.mp3 differ: byte 26, line 1 edge: 24-bit mono WAV whose data chunk ends with one stray byte (sleigh-bells.wav) ran: ffmpeg -v error -y -i odd.wav -vn odd.mp3 exit=0 | [pcm_s24le @ 0x5f104253ec00] Invalid PCM packet, data has size 1 but at least a size of 3 was expected | [aist#0:0/pcm_s24le @ 0x5f1042538f00] Decoding error: Invalid data found when processing input | 79340 bytes edge: missing file ran: ffmpeg -v error -y -i missing.wav -vn x.mp3 exit=254 | [in#0 @ 0x5c44cc718d80] Error opening input: No such file or directory | Error opening input file missing.wav. | Error opening input files: No such file or directory published: python3 lametag.py effect.mp3 ran: python3 ../lametag.py effect.mp3 exit=0 | effect.mp3: tag=Info encoder=Lavc60.31 delay=576 padding=1369 frames=46 audio_samples=51047 edge: MP3 written to a pipe (no tag) ran: python3 ../lametag.py notag.mp3 exit=1 | notag.mp3: no Info/Xing tag: a player cannot know the delay, so it plays it edge: a WAV instead of an MP3 ran: python3 ../lametag.py effect.wav exit=1 | effect.wav: a WAV (RIFF) file, not an MP3: WAV has no encoder delay edge: empty file ran: python3 ../lametag.py empty.mp3 exit=1 | empty.mp3: empty file edge: missing file ran: python3 ../lametag.py missing.mp3 exit=2 | missing.mp3: cannot read (No such file or directory) edge: file name with a space and é ran: python3 ../lametag.py efecto de sonido é.mp3 exit=0 | efecto de sonido é.mp3: tag=Info encoder=Lavc59.37 delay=576 padding=1369 frames=46 audio_samples=51047 edge: no argument ran: python3 ../lametag.py exit=1 | usage: python3 lametag.py file.mp3 [file2.mp3 ...] published: ffprobe -v error -show_entries format=start_time -of csv=p=0 effect.mp3 ran: ffprobe -v error -show_entries format=start_time -of csv=p=0 effect.mp3 exit=0 | 0.025057 edge: MP3 without the tag ran: ffprobe -v error -show_entries format=start_time -of csv=p=0 notag.mp3 exit=0 | 0.000000 edge: 48 kHz mono converter output (knock) ran: ffprobe -v error -show_entries format=start_time -of csv=p=0 ../out/mp3/knock.tool.mp3 exit=0 | 0.023021 published: ffmpeg -i effect.wav -af silenceremove=start_periods=1:start_threshold=-50dB:detection=peak effect-trimmed.wav (run in cmd/trim with the knock as effect.wav: 16-bit mono 48 kHz, a long pause before the knock) ran: ffmpeg -v error -y -i effect.wav -af silenceremove=start_periods=1:start_threshold=-50dB:detection=peak effect-trimmed.wav exit=0 comparison: the same without detection=peak (default RMS window) ran: ffmpeg -v error -y -i effect.wav -af silenceremove=start_periods=1:start_threshold=-50dB effect-rms.wav exit=0 edge: a file that starts loud at sample 0 (karabiner-click) ran: ffmpeg -v error -y -i loud.wav -af silenceremove=start_periods=1:start_threshold=-50dB:detection=peak loud-trimmed.wav exit=0 | effect.wav -> effect-trimmed.wav: 178176 -> 114036 samples (3.712 s -> 2.376 s); input's first sample at -50 dBFS or louder: 64140, at -40 dBFS: 64146 (1336.4 ms) | cut 64140 samples: 0 of them at -50 dBFS or louder, 0 at -40 dBFS or louder, loudest cut sample -51.7 dBFS | effect.wav -> effect-rms.wav: 178176 -> 114020 samples (3.712 s -> 2.375 s); input's first sample at -50 dBFS or louder: 64140, at -40 dBFS: 64146 (1336.4 ms) | cut 64156 samples: 16 of them at -50 dBFS or louder, 10 at -40 dBFS or louder, loudest cut sample -26.4 dBFS | loud.wav -> loud-trimmed.wav: 51047 -> 51009 samples (1.158 s -> 1.157 s); input's first sample at -50 dBFS or louder: 38, at -40 dBFS: 39 (0.9 ms) | cut 38 samples: 0 of them at -50 dBFS or louder, 0 at -40 dBFS or louder, loudest cut sample -53.5 dBFS (stereo file: louder channel; other channel -63.1, mono mix -58.7) edge: 24-bit WAV (bicycle-bell): ffmpeg writes 16-bit WAV unless told otherwise ran: ffmpeg -v error -y -i bell24.wav -af silenceremove=start_periods=1:start_threshold=-50dB:detection=peak bell-trimmed.wav exit=0 published variant for 24-bit: ... -c:a pcm_s24le effect-trimmed.wav ran: ffmpeg -v error -y -i bell24.wav -af silenceremove=start_periods=1:start_threshold=-50dB:detection=peak -c:a pcm_s24le bell-trimmed24.wav exit=0 | bell24.wav: pcm_s24le,24,65390 (codec,bits,samples) | bell-trimmed.wav: pcm_s16le,16,65389 (codec,bits,samples) | bell-trimmed24.wav: pcm_s24le,24,65389 (codec,bits,samples) edge: missing file ran: ffmpeg -v error -y -i missing.wav -af silenceremove=start_periods=1:start_threshold=-50dB:detection=peak x.wav exit=254 | [in#0 @ 0x5e180ccdad80] Error opening input: No such file or directory | Error opening input file missing.wav. | Error opening input files: No such file or directory published (Remove silence tool, args from src/lib/media-operations.ts SILENCE_FILTER + MP3_QUALITY), on the knock ran: ffmpeg -v error -y -i knock.wav -af silenceremove=start_periods=1:start_threshold=-40dB:stop_periods=-1:stop_threshold=-40dB -c:a libmp3lame -q:a 2 tool.mp3 exit=0 ran: ffprobe -v error -show_entries format=duration -of csv=p=0 tool.mp3 exit=0 | 0.144000 (container length: 6 frames x 1152 / 48000, includes delay and padding) ran: python3 lametag.py tool.mp3 exit=0 | tool.mp3: tag=Xing encoder=Lavc60.31 delay=576 padding=1598 frames=6 audio_samples=4738 ran: ffmpeg -v error -i knock.wav -af silenceremove=start_periods=1:start_threshold=-40dB:stop_periods=-1:stop_threshold=-40dB -f s16le -ac 1 - | wc -c exit=0 | 9476 (bytes s16 mono = 4738 samples = 0.099 s at 48 kHz: the sound the tool kept) published: Web Audio loopStart/loopEnd snippet, seconds = samples / fileRate (44100), tested with loop-test.cjs in Chromium 153, click track ran: node ../loop-test.cjs ../out/mp3/click-track.noxing.mp3 1105 88200 44100 exit=0 | ../out/mp3/click-track.noxing.mp3 context=44100 decoded=89856 buf.sampleRate=44100 plain: clicks at 12130,34180,56230,78280,101986,124036,146086,168136,191842,213892,235942,257992 spacing 22050/23706 | ../out/mp3/click-track.noxing.mp3 context=44100 decoded=89856 buf.sampleRate=44100 trimmed: clicks at 11025,33075,55125,77175,99225,121275,143325,165375,187425,209475,231525,253575 spacing 22050 | ../out/mp3/click-track.noxing.mp3 context=44100 decoded=89856 buf.sampleRate=44100 bufrate: clicks at 11025,33075,55125,77175,99225,121275,143325,165375,187425,209475,231525,253575 spacing 22050 edge: 48 kHz AudioContext (decodeAudioData resamples to 48 kHz; trimmed = the page snippet, bufrate = dividing by buf.sampleRate instead) ran: node ../loop-test.cjs ../out/mp3/click-track.noxing.mp3 1105 88200 48000 exit=0 | ../out/mp3/click-track.noxing.mp3 context=48000 decoded=97802 buf.sampleRate=48000 plain: clicks at 13203,37203,61203,85203,111005,135005,159005,183005,208807,232807,256807,280807 spacing 24000/25802 | ../out/mp3/click-track.noxing.mp3 context=48000 decoded=97802 buf.sampleRate=48000 trimmed: clicks at 12000,36000,60000,84000,108000,132000,156000,180000,204000,228000,252000,276000 spacing 24000 | ../out/mp3/click-track.noxing.mp3 context=48000 decoded=97802 buf.sampleRate=48000 bufrate: clicks at 12098,36098,60098,84098,100298,124298,148298,172298,188498,212498,236498,260498,276698 spacing 24000/16200 control: converter MP3 with the tag, delay 0 ran: node ../loop-test.cjs ../out/mp3/click-track.tool.mp3 0 88200 44100 exit=0 | ../out/mp3/click-track.tool.mp3 context=44100 decoded=88200 buf.sampleRate=44100 plain: clicks at 11025,33075,55125,77175,99225,121275,143325,165375,187425,209475,231525,253575 spacing 22050 | ../out/mp3/click-track.tool.mp3 context=44100 decoded=88200 buf.sampleRate=44100 trimmed: clicks at 11025,33075,55125,77175,99225,121275,143325,165375,187425,209475,231525,253575 spacing 22050 | ../out/mp3/click-track.tool.mp3 context=44100 decoded=88200 buf.sampleRate=44100 bufrate: clicks at 11025,33075,55125,77175,99225,121275,143325,165375,187425,209475,231525,253575 spacing 22050 control at 48 kHz: converter MP3 with the tag, delay 0 ran: node ../loop-test.cjs ../out/mp3/click-track.tool.mp3 0 88200 48000 exit=0 | ../out/mp3/click-track.tool.mp3 context=48000 decoded=96000 buf.sampleRate=48000 plain: clicks at 12000,36000,60000,84000,108000,132000,156000,180000,204000,228000,252000,276000 spacing 24000 | ../out/mp3/click-track.tool.mp3 context=48000 decoded=96000 buf.sampleRate=48000 trimmed: clicks at 12000,36000,60000,84000,108000,132000,156000,180000,204000,228000,252000,276000 spacing 24000 | ../out/mp3/click-track.tool.mp3 context=48000 decoded=96000 buf.sampleRate=48000 bufrate: clicks at 12000,36000,60000,84000,100200,124200,148200,172200,188400,212400,236400,260400,276600 spacing 24000/16200 edge: missing file ran: node ../loop-test.cjs missing.mp3 1105 88200 exit=2 | usage: node loop-test.cjs [context rate] published (loop caption): ffprobe -v error -show_entries stream=duration_ts -of csv=p=0 effect.wav ran: ffprobe -v error -show_entries stream=duration_ts -of csv=p=0 click.wav exit=0 | 88200 edge: 48 kHz knock ran: ffprobe -v error -show_entries stream=duration_ts -of csv=p=0 trim/effect.wav exit=0 | 178176 edge: missing file ran: ffprobe -v error -show_entries stream=duration_ts -of csv=p=0 missing.wav exit=1 | missing.wav: No such file or directory