【发布时间】:2021-10-24 15:25:08
【问题描述】:
我正在使用带有 hevc_nvenc 编码器的 ffmpeg,但是当我运行我的命令时:
ffmpeg -loglevel debug -i input.mp4 -c:v hevc_nvenc out.mp4
我收到以下错误:
[hevc_nvenc @ 0x34c3200] Nvenc initialized successfully
[hevc_nvenc @ 0x34c3200] 2 CUDA capable devices found
[hevc_nvenc @ 0x34c3200] [ GPU #0 - < NVIDIA Tesla K80 > has Compute SM 3.7 ]
[hevc_nvenc @ 0x34c3200] Codec not supported
[hevc_nvenc @ 0x34c3200] [ GPU #1 - < NVIDIA Tesla K80 > has Compute SM 3.7 ]
[hevc_nvenc @ 0x34c3200] Codec not supported
[hevc_nvenc @ 0x34c3200] No capable devices found
[hevc_nvenc @ 0x34c3200] Nvenc unloaded
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
这是我的 ffmpeg 配置:
configuration: --enable-nonfree --enable-nvenc --enable-libx264 --enable-gpl --enable-cuda --enable-cuvid --enable-cuda-nvcc
注意:我使用“h264_nvenc”时没有问题,但我不知道为什么它不能使用“hevc_nvenc”
【问题讨论】:
-
"Codec not supported" 是一个非常直接的错误。不支持您使用近 7 年的 GPU