published: ffprobe -v error -show_entries stream=index,codec_type,codec_name -of csv=p=0 converted.mp4 run: ffprobe -v error -show_entries stream=index,codec_type,codec_name -of csv=p=0 converted.mp4 0,h264,video 1,aac,audio exit=0 edge: converted.mp4 is a normal file: one video line (0,h264,video) and one audio line (1,aac,audio) run (edge): ffprobe -v error -show_entries stream=index,codec_type,codec_name -of csv=p=0 src_noaudio.mp4 0,h264,video exit=0 edge: src_noaudio.mp4 has no audio, and the command prints only the video line and still exits 0, so read the output instead of trusting the exit code published: ffmpeg -hide_banner -i converted.mp4 -map 0:a:0 -af volumedetect -f null - 2>&1 | grep mean_volume run: ffmpeg -hide_banner -i converted.mp4 -map 0:a:0 -af volumedetect -f null - 2>&1 | grep mean_volume [Parsed_volumedetect_0 @ 0x6088e6959800] mean_volume: -21.1 dB exit=0 edge: converted.mp4 first audio track; the same filter on the silent first track of src_twoaudio.mkv gave mean_volume -91.0 dB (row R14) run (edge): same command on src_noaudio.mp4 (no output: the -map 0:a:0 matched nothing) exit=1 edge: a file with no audio makes grep print nothing and exit 1, which means no audio stream, not silence published: ffmpeg -i in.mov -c:v copy -c:a aac -b:a 192k out.mp4 run: ffmpeg -v error -y -i in.mov -c:v copy -c:a aac -b:a 192k out.mp4 exit=0 edge: in.mov is src_pcm.mov (PCM audio): out.mp4 has aac, mean volume -21.1 dB (row R10) run (edge): ffmpeg -v error -y -i src_aac.mp4 -c:v copy -c:a aac -b:a 192k out2.webm [webm @ 0x576f4c99d440] Only VP8 or VP9 or AV1 video and Vorbis or Opus audio and WebVTT subtitles are supported for WebM. [out#0/webm @ 0x576f4c8c8240] Could not write header (incorrect codec parameters ?): Invalid argument Error while filtering: Invalid argument exit=234 edge: the same command into WebM fails, because WebM refuses H.264 video and AAC audio; use VP9 and Opus there # full matrix R1 to R19 (written by test-run.sh): $ ffmpeg -y -i src_aac.mp4 -c copy o1.mp4 -> exit 0; $ ffmpeg -y -i src_aac.mp4 -c copy o2.webm -> exit 234; [webm @ 0x578359e63f40] Only VP8 or VP9 or AV1 video and Vorbis or Opus audio and WebVTT subtitles are supported for WebM. [out#0/webm @ 0x578359e21180] Could n $ ffmpeg -y -i src_aac.mp4 -c:v libvpx-vp9 -b:v 300k -c:a libopus -b:a 96k o3.webm -> exit 0; $ ffmpeg -y -i src_aac.mp4 -c:v libvpx-vp9 -b:v 300k o4.webm -> exit 0; $ ffmpeg -y -i src_opus.mkv -c copy o5.mp4 -> exit 0; $ ffmpeg -y -i src_opus.mkv -c copy o6.mov -> exit 234; [mov @ 0x5ce5462b08c0] opus only supported in MP4. [out#0/mov @ 0x5ce546268940] Could not write header (incorrect codec parameters ?): Invalid argument Error op $ ffmpeg -y -i src_ac3.mkv -c copy o7.mp4 -> exit 0; $ ffmpeg -y -i src_ac3.mkv -c copy o8.webm -> exit 234; [webm @ 0x637cb7d17d00] Only VP8 or VP9 or AV1 video and Vorbis or Opus audio and WebVTT subtitles are supported for WebM. [out#0/webm @ 0x637cb7c70780] Could n $ ffmpeg -y -i src_pcm.mov -c copy o9.mp4 -> exit 0; $ ffmpeg -y -i src_pcm.mov -c:v copy -c:a aac -b:a 192k o10.mp4 -> exit 0; $ ffmpeg -y -i src_mp3.mp4 -c copy o11.mp4 -> exit 0; $ ffmpeg -y -i src_mp3.mp4 -c:v libvpx-vp9 -b:v 300k -c:a copy o12.webm -> exit 234; [webm @ 0x6499806a4940] Only VP8 or VP9 or AV1 video and Vorbis or Opus audio and WebVTT subtitles are supported for WebM. [out#0/webm @ 0x6499805efd00] Could n $ ffmpeg -y -i src_noaudio.mp4 -c copy o13.mp4 -> exit 0; $ ffmpeg -y -i src_twoaudio.mkv -c copy o14.mp4 -> exit 0; $ ffmpeg -y -i src_twoaudio.mkv -map 0:v:0 -map 0:a:1 -c copy o15.mp4 -> exit 0; $ ffmpeg -y -i src_aac.mp4 -c:v copy -an o16.mp4 -> exit 0; $ ffmpeg -y -i src_aac.mp4 -c copy o17.mkv -> exit 0; $ ffmpeg -y -i src_aac.mp4 -c copy o18.mov -> exit 0; $ ffmpeg -y -i src_aac.mp4 -c:v libx264 -c:a aac -b:a 192k o19.mp4 -> exit 0; run (edge, verify fix): ffmpeg -v error -y -i src_aac.mp4 -c:v libvpx-vp9 -b:v 300k -c:a copy x.webm (same with src_ac3.mkv) [webm] Only VP8 or VP9 or AV1 video and Vorbis or Opus audio and WebVTT subtitles are supported for WebM. exit=234 edge: with VP9 video the audio copy alone is still refused, so R2 and R8 fail because of the audio as well as the H.264 video run (edge, verify fix): ffprobe on src_twoaudio.mkv 1,aac,audio,2,stereo (silent) 2,aac,audio,1,mono (tone) edge: the first track has more channels, so the most-channels rule picks it (R14) run (edge, verify fix): live converter on pcm.mov, video stream md5 (ffmpeg -map 0:v -c copy -f md5 -) edge: input c8a6ef8d..., converter output 764a9b41...: the converter re-encoded the video too (aac.mov in and out both c8a6ef8d...); see DEFECTS.md mov-to-mp4 fallback