不支持 ffmpeg 编解码器,找不到支持的设备

标签 ffmpeg nvidia codec

我正在使用带有 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”

最佳答案

tnx 到 talonmies。
如果有人需要,这里是资源:
在这里您可以找到您的 GPU 架构和生成:

https://gitlab.pasteur.fr/inception-gpulab/wiki/-/blob/master/nvidia-gpu-hardware-acceleration.md
并基于此,您可以找到支持的 nvidia de/encoder (264,265):
https://en.m.wikipedia.org/wiki/Nvidia_NVENC

关于不支持 ffmpeg 编解码器,找不到支持的设备,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68906804/

相关文章:

android - 800x480 H264 视频在某些设备上不工作

ffmpeg - 使用 ffmpeg 在同一个文件中创建单声道和立体声流?

java - 通过java执行mp4box命令得到错误

cuda - nvidia-smi 是如何工作的?

image - ffmpeg在从图像生成的视频中缺少图像帧

ios - 是否为AVAssetReaderAudioMixOutput指定基于软件的编解码器?

ffmpeg - 如何为 ffmpeg HLS 导出的文件夹提供自定义文件夹名称?

ffmpeg - %configure - 未知选项 --build

cuda - GTX 980 ti : Unknown Error 上的动态并行

cuda - Nvidia Hyper Q 和 Nvidia Streams 有什么区别?