[FFmpeg-devel] [PATCH] avcodec/nvenc: support dynamic resolution change
Linjie Fu
linjie.justin.fu at gmail.com
Sat Aug 8 03:48:11 EEST 2020
On Fri, Aug 7, 2020 at 4:19 PM leozhang <leozhang at qiyi.com> wrote:
>
> Allow dynamic resolution change, this is useful for real time video communication application.
>
> Use below commands to test it,
> ffmpeg -i reinit-large_420_8-to-small_420_8.h264 -noautoscale -c:v hevc_nvenc out.265 -loglevel verbose -y
> ffmpeg -i reinit-large_420_8-to-small_420_8.h264 -noautoscale -c:v h264_nvenc out.264 -loglevel verbose -y
>
> Signed-off-by: leozhang <leozhang at qiyi.com>
> ---
> libavcodec/nvenc.c | 22 +++++++++++++++++++++-
> 1 file changed, 21 insertions(+), 1 deletion(-)
Hi leozhang,
Adding dynamic resolution encoding support is the tendency, and there
are some previous discussions[1] [2]
about adding support for dynamic resolution encoding.
And one conclusion is that we'd prefer to cope with this in a more
general way, like recreating the
encoder instance instead of modifying in specific codec.
- Linjie
[1] https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=1434
[2] https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=1470
More information about the ffmpeg-devel
mailing list