-
Notifications
You must be signed in to change notification settings - Fork 85
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
Green screen with the attached video sample #39
Comments
and your kernel is? |
It's 5.10.160 |
This clip itself is abnormal. When I play it on other x86 PCs, it also behaves very choppy. When I use ffmpeg-rockchip to transcode on RK3588, the transcoded clip is still very choppy, but there is no green screen here. transcoded_out.mp4 |
dont worry, i reproduced the issue, true that, the file is acting weird, but blue/green screen is because of the dimensions w = 912, however gbm should have still worked, seems like there is something weird there, i m trying find out if this is kernel related or xbmc related.... |
to prevent kodi/gbm issues in the meanwhile you can use without afbc mdoe as below
it should work (as long the file is not corrupted, the file seems to be corrupted) do not add env variable |
I think I know why. I've been using the mpp patch for Jellyfin to avoid 64-aligned issues when using RGA3. Maybe you should add these two to the repository too. |
ok what if vp9 or hevc, are they 256 aligned? and mpeg1/2/4... DVD stuff |
iirc vp9 and hevc should both be 256-aligned. I forgot mpeg1/2/4, will add it later. |
i think not always, only when above certain size, at least for either vp9 or hevc afaik... |
linking the issue for future reference rockchip-linux/mpp#507 |
Found the root cause of GBM problem i will push a fix, in the meanwhile you can disable afbc mode by not passing the env value |
@kyak if you do not know how to test it here is a quick recipe. # download the PKGBUILD of kodi-ext-git to clean directory
yay -G kodi-ext-git
# go to dir
cd kodi-ext-git
# edit the PKGBUILD
nano PKGBUILD
# replace the source git repo to my test repo
# the line source=("git+https://github.com/xbmc/xbmc.git#branch=$_codename")
# should be source=("git+https://github.com/hbiyik/xbmc.git#branch=gbm_drm_dynamic_afbc_video_planes_v2")
# build the package
makepkg -s
# you dont have to install navigate to build directory
cd src/kodi-build
# and execute the kodi.bin locally
FFMPEG_RKMPP_DEC_OPT="afbc=on" ./kodi.bin --windowing=gbm --audio-backend=alsa if so far so good, we can move to xbmc/xbmc#24431 for the discussion since the issue is not related to ffmpeg but xbmc |
@hbiyik although i build
|
@kyak yeah it is lagging but thats fine. you can just add -DENABLE_INTERNAL_TAGLIB=ON somewhere around line 89~109, in to the also please delete the [[ -d kodi-build ]] && rm -rf kodi-build in line 70, under |
@hbiyik thanks for the hints! Unfortunately, it doesn't really work. Most of the videos don't play (although I found one that plays). For example, |
Without FFMPEG_RKMPP_DEC_OPT="afbc=on", it seems to work, albeit weird. For example, it displays black screen behind OSD (i.e. OSD is drawn on top of black screen). When OSD is not active, the video displays normally. |
Weird tried it last night it was working, i will check again. Just to confirm, does ur kernel have below path? Which kernel package are you using? Also you can you provide output of Drm info pkg is on aur: https://aur.archlinux.org/packages/drm_info |
I'm using
|
ok your kernel is not patched correctly
there should be no XRGB2101010 in drm formats... This is a bug confirmed by rockchip #4 (comment) now we need a new ticket in 7ji-pkgbuilds. :) i will open it for you :) |
@hbiyik back to you here. As mentioned, i'm now running the patched kernel:
I need to mention that As for This message from the kernel log repeats:
|
thanks for the feedback, i suggest the following since we are on different hardwares we need to reduce the software variantions to minimum. To even simplify the cases, lets focus 5.10 kernel, because 6.1 kernel has several differences in display driver of rockchip (vop2) and i dont want possible 6.1 vop2 changes related issues to interfere, so lets make sure 5.10 works first. Later we can reiterate the test on 6.1.. so lets use https://github.com/7Ji-PKGBUILDs/linux-aarch64-rockchip-bsp5.10-joshua/blob/master/PKGBUILD. lets focus on 1 single file and 1 single obvious problem, and that should not be out.mkv.gz, because this file is already broken. So you will see black screen with this file not because rendering is wrong but because the file is broken and ffmpeg cant decode properly. lets only test https://github.com/hbiyik/xbmc/tree/gbm_drm_dynamic_afbc_video_planes_v2 as xbmc, because i already noticed a problem in the first implementation (the one in the ffmpeg-mpp-git). And for you building this should be reletively easy may be in 2 or 3 mins, we can test a new change. We can forget ffmpeg-mpp-git for now until we clearify all the issues. If we can reproduce 1 single issue, i assume the root cause of it will fix the rest of the issues. From my end, i have onyl tested this with 5.10 radxa kernel, so may be i will directly see the issue on joshua 5.10.. we will see |
I'm running Orange Pi 5 Plus (have both 8 Gb and 16 Gb versions). What is your hardware?
This is clear, will do.
Also clear, I will find you the file that's properly broken :) Thing is, I've split this one from original video using ffmpeg and might've broken something in the video file along the way.
It's clear I should test
|
i am on radxa 5b with 4g.
i mean we should forget about ffmpeg-mpp-git durinf testing gbm workflow, when we fix those issues in gbm_drm_dynamic_afbc_video_planes_v2, i will port them to for testing and verifying the kodi-ext-git, point the source to gbm_drm_dynamic_afbc_video_planes_v2 and run Whenever i push a fix, you will run makepkg again, and it will compile with the latest from my branch so that you can verify that it is fixed in opi5 as well. When we make sure it works fine, i can then port the changes to |
@kyak |
Don't worry, it's almost built on my side. Will report back tomorrow. |
I'm now running With Without Is this expected? |
no this is not expected, it should play in afbc mode aswell. could you restart the device and provide the full output of Then run kodi with afbc mode in gbm, make sure u enabled debug mode . It is very important debug mode to be enabled otherwise i wont see anything. Run the video which is resulting the black video output. Close kodi, and send the log file at Also, for me to reproduce can you send the file that produces black video? |
Here's the drm_info output after the reboot: Here's the verbose log: And here is the video file: https://file.io/QNZMTBNLMCxi |
ok something obviously is wrong according to your logs, let me investigate this a little bit.
|
@kyak is it possible to boot into https://github.com/7Ji-PKGBUILDs/linux-aarch64-rockchip-bsp6.1-joshua-git kernel, and provide the I understood the problem, the soc rk3588s (used in opi5) and rk3588 (used in rock 5b) provides different drm layout, this is a little bit weird, to me looks like even a display driver (vop2) bug in kernel. PS: no need to patch joshua6.1 all patches are already in there Note to myself: Joshua-Riek/linux-rockchip@f155527 most likely this commit might fix a lot issues |
Here's the drm_info for 6.1: Please note that i'm running Orange Pi 5 Plus, which is rk3588, not rk3588s. I also checked the situation with 6.1 kernel and it seems like it didn't change anything. |
@kyak the location should be: the actual change is here PS: I did not mention specificly and thought it was obvious, but in any case you need to restart the device after replacing the dtb :) |
@hbiyik thanks so much for your patience. This is Using modified dtb still didn't change anything |
@hbiyik in case this was lost in discussion, i want to point out that there is a configuration that works fine for me. I.e. all kinds of videos plays fine, OSD displays fine and this is with GBM and Direct to Plane mode of Kodi. The configuration is:
Maybe with can start from this configuration and figure out what the problem is? |
@kyak I think i got the underlying problem, and i have something in my mind to solve it with xbmc. Currently im on vacation may be next week i will prototype something, than i might need some testinv support. |
Originally reported at 7Ji-PKGBUILDs/.meta#29
I'm using
kodi-mpp-git
andffmpeg-rockchip-git
.With the attached video sample,
mpv --profile=fast --hwdec=rkmpp path-to-file
displays green screen.kodi
under GBM (https://github.com/hbiyik/ffmpeg-rockchip/wiki/Rendering#kodi-under-gbm) seems to play it, although displays black screen after stopping the video.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:
And these messages in kodi log:
Sorry for gzip'ed mkv, couldn't upload to github otherwise :(
out.mkv.gz
The text was updated successfully, but these errors were encountered: