How to set bitrate limit in FFMPEG
Asked Answered
N

2

9

How can I limit bitrate of a transcoding video in FFMPEG to keep it under a limit value?

Nolan answered 16/4, 2017 at 9:22 Comment(0)
S
18

You can use this code

ffmpeg -i myfile.avi -b 4000k -minrate 4000k -maxrate 4000k -bufsize 1835k out.m2v
Shealy answered 16/4, 2017 at 9:25 Comment(3)
Thank you! exactly I needed minrate and maxrateNolan
-b set video and audio's average bit rate per secondShealy
Note: "maxrate integer (encoding,audio,video) - Set max bitrate tolerance (in bits/s). Requires bufsize to be set." - see also trac.ffmpeg.org/wiki/Limiting%20the%20output%20bitrateSmashing
M
7

Read the documentation here: http://www.ffmpeg.org/ffmpeg-all.html#Description

To set the video bitrate of the output file to 64 kbit/s:

 ffmpeg -i input.avi -b:v 64k -bufsize 64k output.avi
Mesosphere answered 16/4, 2017 at 9:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.