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

ffmpeg-rockchip-git green screen with kodi and mpv #29

Closed
kyak opened this issue Mar 14, 2024 · 4 comments
Closed

ffmpeg-rockchip-git green screen with kodi and mpv #29

kyak opened this issue Mar 14, 2024 · 4 comments

Comments

@kyak
Copy link

kyak commented Mar 14, 2024

I'm using kodi-mpp-git and ffmpeg-rockchip-git.

Both mpv --profile=fast --hwdec=rkmpp path-to-file and kodi unber GBM (https://github.com/hbiyik/ffmpeg-rockchip/wiki/Rendering#kodi-under-gbm) produce green screen with the attached video sample.

Sorry for gzip'ed mkv, couldn't upload to github otherwise :(

out.mkv.gz

@kyak
Copy link
Author

kyak commented Mar 14, 2024

Somehow Prime Render Method=Direct to Plane was reset to Prime Render Method=EGL after I've downgraded kodi from latest master to nexus. After setting it back to Direct to Plane, the video plays.

However, after stopping the video, kodi shows black screen (it doesn't freeze, it really is just a blank or black screen).

I see these messages in journalctl:

kernel: [drm:rockchip_vop2_mod_supported] *ERROR* Unsupported format modifier 0x800000000000051

And these messages in kodi log:

2024-03-14 21:28:00.101 T:328297   error <general>: CDRMAtomic::DrmAtomicCommit - test commit failed: (Invalid argument) - falling back to last successful atomic request
2024-03-14 21:28:00.102 T:328297   error <general>:
                                                   Object: plane        ID: 71
                                                     Property: SRC_X    ID: 9   Value: 0
                                                     Property: SRC_Y    ID: 10  Value: 0
                                                     Property: SRC_W    ID: 11  Value: 251658240
                                                     Property: SRC_H    ID: 12  Value: 141557760
                                                     Property: CRTC_X   ID: 13  Value: 0
                                                     Property: CRTC_Y   ID: 14  Value: 0
                                                     Property: CRTC_W   ID: 15  Value: 3840
                                                     Property: CRTC_H   ID: 16  Value: 2160
                                                     Property: FB_ID    ID: 17  Value: 322
                                                     Property: CRTC_ID  ID: 20  Value: 85
2024-03-14 21:28:00.102 T:328297   error <general>: CDRMAtomic::DrmAtomicCommit - atomic commit failed: Invalid argument

But mpv really displays the green screen, this holds true from the original message.

@hbiyik
Copy link

hbiyik commented Mar 15, 2024

This is not the best place to discuss since this place is for packaging issues.

But here we are,

The greenscreen issue is known:

https://github.com/nyanmisaka/ffmpeg-rockchip/wiki/Rendering

Limitations:

In both cases, mesa expects 64 byte aligned picture buffers, however mpp currently gives dynamicly
aligned frame buffer which may not be 64 byte aligned. If the the picture width is an
oddnumber * 64 (720x480), then it is possible that mesa will not accept the provided
 frames over EGL.

It is not about ffmpeg, kodi or mpv. It is more likely an issue between mesa and mpp

For mpp i requested a fix at rockchip-linux/mpp#507 but i got no answer from them for 1 month so iclosed it. I have reopened again, you can also try to ask mpp guys about it.

For kodi gbm errors, i have also noticed same issues when bsp version is 6.1

could you create a ticket at https://github.com/nyanmisaka/ffmpeg-rockchip/issues, so that i can close it here to keep it clean.

@kyak
Copy link
Author

kyak commented Mar 15, 2024

This is not the best place to discuss since this place is for packaging issues.

I know, but it wasn't really clear where this issue belongs. Sorry for that.

But here we are,

The greenscreen issue is known:

https://github.com/nyanmisaka/ffmpeg-rockchip/wiki/Rendering

Limitations:

In both cases, mesa expects 64 byte aligned picture buffers, however mpp currently gives dynamicly
aligned frame buffer which may not be 64 byte aligned. If the the picture width is an
oddnumber * 64 (720x480), then it is possible that mesa will not accept the provided
 frames over EGL.

It is not about ffmpeg, kodi or mpv. It is more likely an issue between mesa and mpp

For mpp i requested a fix at rockchip-linux/mpp#507 but i got no answer from them for 1 month so iclosed it. I have reopened again, you can also try to ask mpp guys about it.

Ok, i've pinged them in the issue.

For kodi gbm errors, i have also noticed same issues when bsp version is 6.1

could you create a ticket at https://github.com/nyanmisaka/ffmpeg-rockchip/issues, so that i can close it here to keep it clean.

Sure, it's here: nyanmisaka/ffmpeg-rockchip#39

@hbiyik
Copy link

hbiyik commented Mar 15, 2024

thanks then closing this one

@hbiyik hbiyik closed this as completed Mar 15, 2024
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