首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不支持ffmpeg编解码器,找不到支持的设备

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

Stack Overflow用户
提问于 2021-08-24 11:32:41
回答 1查看 301关注 0票数 0

我使用的是带hevc_nvenc编码器的ffmpeg,但是当我运行我的命令时:

代码语言:javascript
复制
ffmpeg -loglevel debug -i input.mp4  -c:v hevc_nvenc  out.mp4

我得到以下错误:

代码语言:javascript
复制
[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配置:

代码语言:javascript
复制
  configuration: --enable-nonfree --enable-nvenc --enable-libx264 --enable-gpl --enable-cuda --enable-cuvid --enable-cuda-nvcc

注意:我使用"h264_nvenc“没有问题,但是我不知道为什么"hevc_nvenc”不能使用。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-08-25 04:25:04

tnx呼叫塔伦米斯。

以下是任何人需要的资源:

您可以在此处找到您的GPU架构和代码库:

代码语言:javascript
复制
https://gitlab.pasteur.fr/inception-gpulab/wiki/-/blob/master/nvidia-gpu-hardware-acceleration.md

在此基础上,您可以找到nvidia de/encoder支持(264,265):

代码语言:javascript
复制
https://en.m.wikipedia.org/wiki/Nvidia_NVENC
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68906804

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档