ffmpeg:video_bit_rate
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ffmpeg:video_bit_rate [2024/09/15 09:20] – peter | ffmpeg:video_bit_rate [2025/01/12 13:34] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== ffmpeg - Video bit rate ====== | ||
- | |||
- | ===== Get the bitrate of a video ===== | ||
- | |||
- | <code bash> | ||
- | ffprobe " | ||
- | </ | ||
- | |||
- | returns: | ||
- | |||
- | < | ||
- | Duration: 00: | ||
- | Stream #0:0(eng): Video: av1 (Main), yuv420p(tv, bt709/ | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | To keep the same image details use the following formula to calculate the output video bit rate: | ||
- | |||
- | < | ||
- | -b:v value = input_file_size_KB / duration_sec / 100 | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Example ===== | ||
- | |||
- | < | ||
- | 460520KB / 120sec / 100 = 38.37 | ||
- | </ | ||
- | |||
- | result: | ||
- | |||
- | < | ||
- | -b:v 38M | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
ffmpeg/video_bit_rate.1726392058.txt.gz · Last modified: 2024/09/15 09:20 by peter