Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPPH264ENC支持bgr3颜色格式吗 #29

Open
huochen1 opened this issue Dec 20, 2024 · 4 comments
Open

MPPH264ENC支持bgr3颜色格式吗 #29

huochen1 opened this issue Dec 20, 2024 · 4 comments

Comments

@huochen1
Copy link

不好意思打扰一下,我看到gstreamer+mpp好像有您在写,我想请问一下目前的话我是测试这个mpph264enc是支持NV12,NV16,NV21的请问要支持bgr3,rgb这些颜色格式需要怎么修改呢?

@JeffyCN
Copy link
Owner

JeffyCN commented Dec 21, 2024

commit c37e7cf10283521c262f9e71fd9be0422a457989 (tag: linux-6.1-stan-rkr4)
Author: Jiajian Wu [email protected]
Date: Tue Aug 27 09:56:08 2024 +0800

mppenc: Add support RGB and BGR

Tested on RK3588 EVB with:
gst-launch-1.0 videotestsrc ! video/x-raw,format=BGR ! \
    mpph264enc ! h264parse ! filesink location=out.h264
gst-launch-1.0 videotestsrc ! video/x-raw,format=RGB ! \
    mpph264enc ! h264parse ! filesink location=out.h264

Change-Id: I1d2c419f585906402f881fd6c7fe8f8638474186
Signed-off-by: Jiajian Wu <[email protected]>

there's a new patch might related, please ask jair for more details

@huochen1
Copy link
Author

您好,忘记同步一下,根据gstreamer+mpp的说明文档,开启了rga加速的
image
我在rk3588的evb板子以及Debian系统下进行了以下的测试,
image
按照您的提示保存输入上面的gst-launch-1.0 videotestsrc ! video/x-raw,format=RGB ! mpph264enc ! h264parse ! matroskamux ! filesink location=out264_RGB.mkv指令,出来的图像是不正常的
image
但是如果我使用了将rgb或者bgr的命令转化为NV12再保存的话,颜色就是正常的,命令如下:gst-launch-1.0 videotestsrc ! video/x-raw,format=RGB ! videoconvert ! video/x-raw,format=NV12 ! mpph264enc ! h264parse ! matroskamux ! filesink location=out264_rgb.mkv ,但是一旦使用到了videoconvert这个元素,性能就变的很低,不使用videoconvert这个元素的时候我测试了可以保存4k 60fps不卡顿,但是一旦使用了这个videoconvert,在4k 60fps下测试会很卡顿,就算是使用videoconvert n-threads=3 这样子增加线程数保存视频文件也不行,也会卡顿。请问这种现象有什么好的解决方式吗,根据您的提示这个需要安装内核的补丁就可以解决吗?

@JeffyCN
Copy link
Owner

JeffyCN commented Dec 21, 2024

不了解这个问题,请邮件咨询:
Jiajian Wu [email protected]

可能需要一并更新mpp等其他软件包

@huochen1
Copy link
Author

huochen1 commented Dec 21, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants