ffmpeg是否在Jetson平台上支持GPU加速?

时间:2020-08-19 02:35:10

标签: ffmpeg decoder nvidia-jetson-nano

我想在Jetson nano上将ZoneMinder作为IP CAM服务器运行,但是看来Jetson nano无法处理许多使用ffmpeg解码的凸轮,如果我在ZoneMinder上打开三个凸轮,则CPU使用率始终为100%,但是GPU使用率为0%,我无法打开更多摄像头。

在讨论https://forums.developer.nvidia.com/t/ffmpeg-using-hardware-gpu-cuda/72312中,NV主持人说

在Jetson平台上未启用具有GPU支持的ffmpeg ...

NVENC / NVDEC可以帮助ffmpeg加速,但是这些硬件模块在CPU上,而不在GPU上。

但是我找到了一个仓库https://github.com/jocover/jetson-ffmpeg,这个仓库可以使用GPU加速吗?因为我尝试了但没用(仍然使用CPU的NVENC / NVDEC加速)。

如果Jetson nano上的GPU确定不能支持ffmpeg加速,但是我想使用ZoneMinder,是否有更好的方法来解决此问题?例如使用GStreamer吗?

1 个答案:

答案 0 :(得分:1)

ffmpeg支持已添加到Jetson平台。来自nvidia's docs

To install the ffmpeg binary package
•Enter these commands:
$ sudo apt install ffmpeg

To get source files for the ffmpeg package
•Enter this command:
$ apt source ffmpeg

To include the ffmpeg library in L4T builds
1.Add the following lines to /etc/apt/sources.list:
$ echo "deb https://repo.download.nvidia.com/jetson/ffmpeg main main" |  sudo tee -a /etc/apt/sources.list
$ echo "deb-src https://repo.download.nvidia.com/jetson/ffmpeg main main" |  sudo tee -a /etc/apt/sources.list
2.Enter the command:
$ sudo apt update

为清楚起见,请在标准Jetson图像上附加

deb https://repo.download.nvidia.com/jetson/ffmpeg main main

到您的/etc/apt/sources.list文件,然后运行 sudo apt update && sudo apt install ffmpeg

相关问题