Re: [FFmpeg-user] FFmpeg changing maximum video bitrate during streaming?
Does anyone have any ideas on the question I asked previously? Is this list the best place to ask?
I'm using the following command to stream video: -
ffmpeg.exe -re -i test.avi -b:v 960k -minrate 960k -maxrate 960k -bufsize 240k -an -s 480x640 -r 30 -threads 0 -vcodec libx264 -preset veryfast -x264opts keyint=90:no-scenecut=1:min-keyint=90 -vprofile baseline -level 3.0 -pix_fmt yuv420p -f rtp rtp://127.0.0.1:62712
Is there a way of communicating with FFmpeg whilst it is streaming to change the video bitrate?
I have looked at the filters and zmq but cannot find anything for the video bitrate.
Thanks
On Thu, May 18, 2017 at 15:19:50 +0100, Dave Ellis wrote:
Is this list the best place to ask?
It probably is, but as far as I can tell, there's no way to reconfigure the encoder at runtime. Moritz
On Thu, May 18, 2017 at 10:19 PM, Dave Ellis <ssuellid@gmail.com> wrote:
Does anyone have any ideas on the question I asked previously? Is this list the best place to ask?
libx264 does support to change bitrate dynamiclly, but you need do it by FFmpeg's API
I'm using the following command to stream video: -
ffmpeg.exe -re -i test.avi -b:v 960k -minrate 960k -maxrate 960k -bufsize 240k -an -s 480x640 -r 30 -threads 0 -vcodec libx264 -preset veryfast -x264opts keyint=90:no-scenecut=1:min-keyint=90 -vprofile baseline -level 3.0 -pix_fmt yuv420p -f rtp rtp://127.0.0.1:62712
Is there a way of communicating with FFmpeg whilst it is streaming to change the video bitrate?
I have looked at the filters and zmq but cannot find anything for the video bitrate.
participants (3)
-
Dave Ellis -
Geek.Song -
Moritz Barsnick