没有硬件加速的FFMPEG?
在这个讨论中,NV主持人说
在Jetson平台上不启用GPU支持的ffmpeg .
我知道NVENC/NVDEC可以帮助ffmpeg硬件加速,但是这些硬件块现在正在CPU上执行,而不是在GPU上执行。
为jetson定制的FFMPEG不支持GPU加速?
我发现了这个杰特森-芬伯回购,这个回购能使用GPU加速吗?因为我尝试了,但没有工作(仍然使用NVENC/NVDEC加速CPU)。
如果GPU在Jetson上确定不能支持ffmpeg加速,但我想使用ZoneMinder,有更好的方法来解决这个问题吗?例如使用GStreamer?
发布于 2020-10-01 04:22:58
在Jetson平台上增加了ffmpeg支持。来自nvidia博士
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
。
发布于 2022-01-06 18:08:40
使用(jetson-ffmpeg) -jetson修补的ffmpeg
NVDEC
)解码,L4T多媒体API可以访问该解码器,并对上面的ffmpeg进行修补。该硬件与GPU分离,可供您用于其他用途。命令行硬件解码jetson-ffmpeg
你把上面的东西弄错了。要使用硬件解码,必须指定解码器。从他们的回购自述文件的一些例子。
ffmpeg -c:v h264_nvmpi -i yourfile\or\stream...
ffmpeg -c:v hevc_nvmpi -i yourfile\or\stream...
。ZoneMinder
我不使用Zoneminder,但使用MotionProject,它也使用ffmpeg作为后端库。我已经使用了4个没有问题的IP相机已经几个月了。CPU使用率约20%,8个RTSP流(高分辨率和低分辨率)。
对于ZoneMinder,我不确定,但我认为DecoderHWAccelName
、DecoderHWAccelDevice
参数应该起作用。例如,指定h264_nvmpi
或nvmpi
或您的流所需的任何内容。但我不能精确地说,因为我不再使用它了。试试他们的文档,在adding部分查找那些参数。
https://stackoverflow.com/questions/63479215
复制相似问题