From 0b127a2f3b4c0eb0307c5c2dff5c07fee09d2a89 Mon Sep 17 00:00:00 2001 From: The Great Wizard Azkali <10491142+Azkali@users.noreply.github.com> Date: Sun, 27 Mar 2022 05:02:00 +0200 Subject: [PATCH] Add support for h264_nvv4l2 and hevc_nvv4l2 (#745) * Add support for h264_nvv4l2 A new implementation of nvv4l2 decoder has been made by @CTCaer and will be released in thr next switchroot (Linux for Nintendo Switch) update. This implementation of ffmpeg can also be used by other Jetson boards. A repository will be soon hosted so Jetson users can install it. Prior to the new implementation distribution, we add it to the project who currently use nvmpi implementation. * Add support for hevc_nvv4l2 Following previous PR, add hevc support as well. --- app/streaming/video/ffmpeg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/streaming/video/ffmpeg.cpp b/app/streaming/video/ffmpeg.cpp index 04d00e81..248be072 100644 --- a/app/streaming/video/ffmpeg.cpp +++ b/app/streaming/video/ffmpeg.cpp @@ -882,6 +882,7 @@ bool FFmpegVideoDecoder::initialize(PDECODER_PARAMETERS params) "h264_mmal", #endif "h264_rkmpp", + "h264_nvv4l2", "h264_nvmpi", #ifndef HAVE_MMAL // Only enable V4L2M2M by default on non-MMAL (RPi) builds. The performance @@ -899,7 +900,7 @@ bool FFmpegVideoDecoder::initialize(PDECODER_PARAMETERS params) } } else { - QList knownHevcCodecs = { "hevc_rkmpp", "hevc_nvmpi", "hevc_v4l2m2m" }; + QList knownHevcCodecs = { "hevc_rkmpp", "hevc_nvmpi", "hevc_nvv4l2", "hevc_v4l2m2m" }; for (const char* codec : knownHevcCodecs) { if (tryInitializeRendererForDecoderByName(codec, params)) { return true;