published: ffprobe -v error -show_entries format=duration,size,bit_rate:stream=codec_name,bit_rate -of default=noprint_wrappers=1 in.mp4 run: ffprobe -v error -show_entries format=duration,size,bit_rate:stream=codec_name,bit_rate -of default=noprint_wrappers=1 lean-hevc.mp4 output: codec_name=hevc bit_rate=1774760 duration=3.000000 size=671161 bit_rate=1789762 exit=0 published: ffprobe -v error -show_entries format=duration,size,bit_rate:stream=codec_name,bit_rate -of default=noprint_wrappers=1 in.mp4 run: ffprobe -v error -show_entries format=duration,size,bit_rate:stream=codec_name,bit_rate -of default=noprint_wrappers=1 edge.mkv output: codec_name=hevc bit_rate=N/A duration=3.000000 size=669988 bit_rate=1786634 exit=0 edge: Matroska file: the container stores no per-stream bit rate, so the stream line may show N/A while the format line still gives a figure; the test file is an .mp4 published: ffprobe -v error -show_entries format=duration,size,bit_rate:stream=codec_name,bit_rate -of default=noprint_wrappers=1 in.mp4 run: ffprobe -v error -show_entries format=duration,size,bit_rate:stream=codec_name,bit_rate -of default=noprint_wrappers=1 edge-pcm.mov output: codec_name=h264 bit_rate=2372218 codec_name=pcm_s16le bit_rate=1536000 duration=3.000000 size=1471107 bit_rate=3922952 exit=0 edge: H.264 video with PCM audio in .mov; the test file has no audio stream, this one has two codec lines published: ffmpeg -i in.mp4 -c:v libx264 -b:v 1400k -c:a aac -b:a 128k out.mp4 run: ffmpeg -v error -y -i lean-hevc.mp4 -c:v libx264 -b:v 1400k -c:a aac -b:a 128k out.mp4 output: in_bytes=671161 out_bytes=430425 exit=0 published: ffmpeg -i in.mp4 -c:v libx264 -b:v 1400k -c:a aac -b:a 128k out.mp4 run: ffmpeg -v error -y -i edge-pcm.mov -c:v libx264 -b:v 1400k -c:a aac -b:a 128k out.mp4 output: in_bytes=1471107 out_bytes=488205 exit=0 edge: input has PCM audio: -c:a aac converts it, so the output is smaller than the input; the test file has no audio published: ffmpeg -i in.mp4 -c:v libx264 -b:v 1400k -c:a aac -b:a 128k out.mp4 run: ffmpeg -v error -y -f lavfi -i color=c=gray:s=320x180:r=25:d=3 -f lavfi -i sine=frequency=440:duration=3 -c:v libx264 -preset medium -c:a aac -b:a 32k -shortest tiny-withaudio.mp4 output: bytes=18152 (H.264 5,096 b/s, AAC 32,537 b/s) exit=0 run: ffmpeg -v error -y -i tiny-withaudio.mp4 -c:v libx264 -b:v 1400k -c:a aac -b:a 128k out.mp4 output: in_bytes=18152 out_bytes=47457 exit=0 edge: tiny source (flat grey picture at about 5 kbps plus AAC, tiny-withaudio.mp4 in this folder): 1400k is far above the source, so the output is 2.6 times bigger run: ffmpeg -v error -y -i lean-hevc.mp4 -c:v libx264 -b:v 2M -preset medium -an out-2M.mp4 output: in_bytes=671161 out_bytes=602044 exit=0 run: ffmpeg -v error -y -i lean-hevc.mp4 -c:v libx264 -b:v 8M -preset medium -an out-8M.mp4 output: in_bytes=671161 out_bytes=2445594 exit=0