diff options
author | pkviet <pkv.stream@gmail.com> | 2018-05-03 02:15:52 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2018-05-04 23:35:38 +0200 |
commit | 155375123c1f2e41f97057f00e65bcbb20f7833a (patch) | |
tree | 26a72c22a473af1e9c77e434931ff62fbfec574f /libavcodec/nvenc.h | |
parent | 952421cd20ace9f0dccbf37e9ab9c165a68d17d0 (diff) | |
download | ffmpeg-155375123c1f2e41f97057f00e65bcbb20f7833a.tar.gz |
avcodec/nvenc: support dynamic bitrate changes
The patch enables dynamic bitrate through ReconfigureEncoder method
from nvenc API.
This is useful for live streaming in case of network congestion.
Signed-off-by: pkviet <pkv.stream@gmail.com>
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/nvenc.h')
-rw-r--r-- | libavcodec/nvenc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/nvenc.h b/libavcodec/nvenc.h index c7506d6a15..b29fbf282a 100644 --- a/libavcodec/nvenc.h +++ b/libavcodec/nvenc.h @@ -152,6 +152,8 @@ typedef struct NvencContext int64_t initial_pts[2]; int first_packet_output; + int support_dyn_bitrate; + void *nvencoder; int preset; |