note: the exit= values below were taken with set -o pipefail, which the published command does not use. Run as published (plain pipeline) the exit status is awk's: 0 for the missing file (ffprobe itself exits 1), 0 for the empty-container case where awk prints nothing, 2 for the raw .h264 division by zero. published: ffprobe -v error -show_entries format=duration,size -of csv=p=0 clip.mp4 | awk -F, '{printf "%.1f MB per minute, %.2f GB per hour\n", $2/$1*60/1e6, $2/$1*3600/1e9}' run on out/p1-1080p30-h264.mp4: 79.1 MB per minute, 4.75 GB per hour exit=0 edge: test file, 60 s 1080p30 published: ffprobe -v error -show_entries format=duration,size -of csv=p=0 clip.mp4 | awk -F, '{printf "%.1f MB per minute, %.2f GB per hour\n", $2/$1*60/1e6, $2/$1*3600/1e9}' run on out/p4-4k60-h264.mp4: 312.9 MB per minute, 18.78 GB per hour exit=0 edge: test file, 60 s 4K60 published: ffprobe -v error -show_entries format=duration,size -of csv=p=0 clip.mp4 | awk -F, '{printf "%.1f MB per minute, %.2f GB per hour\n", $2/$1*60/1e6, $2/$1*3600/1e9}' run on edge-7s-4k30.mp4: 112.7 MB per minute, 6.76 GB per hour exit=0 edge: 7 s 4K30 clip, short duration published: ffprobe -v error -show_entries format=duration,size -of csv=p=0 clip.mp4 | awk -F, '{printf "%.1f MB per minute, %.2f GB per hour\n", $2/$1*60/1e6, $2/$1*3600/1e9}' run on edge-raw.h264: awk: cmd. line:1: (FILENAME=- FNR=1) fatal: division by zero attempted exit=2 edge: raw .h264 stream, no duration in the container published: ffprobe -v error -show_entries format=duration,size -of csv=p=0 clip.mp4 | awk -F, '{printf "%.1f MB per minute, %.2f GB per hour\n", $2/$1*60/1e6, $2/$1*3600/1e9}' run on nofile.mp4: nofile.mp4: No such file or directory exit=1 edge: file that does not exist control (same footage, stream copy): ffmpeg -i out/p3-4k30-h264.mp4 -t 7 -c copy p3first7.mp4, then the published command run on p3first7.mp4: 112.0 MB per minute, 6.72 GB per hour exit=0 edge: first 7 s of the 60 s p3 file by stream copy