![]() |
Solved popcornmix's Leia_pi4 branch on RPi4 build runs but no video when playing - Printable Version Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Raspberry Pi (https://forum.kodi.tv/forumdisplay.php?fid=166) ---- Thread: Solved popcornmix's Leia_pi4 branch on RPi4 build runs but no video when playing (/showthread.php?tid=345572) Pages:
1
2
|
popcornmix's Leia_pi4 branch on RPi4 build runs but no video when playing - graysky - 2019-07-21 I built the Leia_pi4 fork by @popcornmix but video play back does not work. I get either a blank screen (audio plays), or a frozen GUI (no video/no audio). I verified my hardware (RPi4B 4G) is good by playing the same videos running LE. I'd like to get this fork running on Arch ARM while Kodi v19 is under development. Here is the kodi.log when trying to play a video (h264). I was able to hit the "x" key to stop it after 5-10 second. Here is the kodi.log when trying to play a x265 video. It crashed kodi. Here is how I built the fork: (2019-07-19, 13:12)popcornmix Wrote: Ah okay, leia_pi4 is a temporary hack. 1) I copied bcm_host.pc mmal.pc vcsm.pc into /pkgconfig in my build root.2) I renamed the following directories from the buildroot: /opt/vc/include/{EGL,GLES,GLES2} appending a hyphen to them so the build would not look into them.With the buildroot prepared, I built the fork with this cmake stanza which completes without error: Code: export PKG_CONFIG_PATH="/pkgconfig" For completeness, here is the cmake build log. RE: popcornmix's Leia_pi4 branch on RPi4 build runs but no video when playing - popcornmix - 2019-07-22 (2019-07-21, 21:53)graysky Wrote: Here is the kodi.log when trying to play a video (h264). I was able to hit the "x" key to stop it after 5-10 second.Can't see an obvious error. Does it play if you disable MMAL in video acceleration options? RE: popcornmix's Leia_pi4 branch on RPi4 build runs but no video when playing - popcornmix - 2019-07-22 Two things I'd suggest trying: Switch to 1080p60 in system video settings. I think you are using 2560x1440 which I've seen some reported issues with. Switch to HDMI (or analogue) Pi Sink (I think you are using alsa). RE: popcornmix's Leia_pi4 branch on RPi4 build runs but no video when playing - graysky - 2019-07-22 (2019-07-22, 12:45)popcornmix Wrote: Can't see an obvious error. Does it play if you disable MMAL in video acceleration options? No, I get the same result with or without MMAL acceleration enabled. (2019-07-22, 13:39)popcornmix Wrote: Two things I'd suggest trying: I switched to 1920x1080 but get the same result. Also, switching audio to Pi Sink does not help. Running it on LE @ 2560x1440 works fine. ...could there be some permissions issues that would keep the kodi user from using acceleration or something like that? Here is what I have for the user and some udev rules: Code: # id kodi Code: # cat /etc/udev/rules.d/99-kodi.rules Code: # cat /usr/share/polkit-1/rules.d/10-kodi.rules :( I created a new kodi profile to just be using defaults. Here is the complete kodi crash log... and below is a key line maybe... "CMMALVideo::Open : Video codec unknown: ad" Code: ... RE: popcornmix's Leia_pi4 branch on RPi4 build runs but no video when playing - popcornmix - 2019-07-22 If it is failing without MMAL disabled, then focus on that. Don't try a 4k hevc file which has far more ways of failing. Start with a clean .kodi. Disable MMAL. Switch to Pi HDMI sink. Play an SD video file (that's not hevc). If that fails provide a log. RE: popcornmix's Leia_pi4 branch on RPi4 build runs but no video when playing - popcornmix - 2019-07-22 You might want to check this thread where dimitry got a kodi build working from leia_pi4 branch. RE: popcornmix's Leia_pi4 branch on RPi4 build runs but no video when playing - graysky - 2019-07-22 (2019-07-22, 21:53)popcornmix Wrote: If it is failing without MMAL disabled, then focus on that. Good idea. Clean profile, disabled MMAL, Pi HDMI audio, 1920x1080. This time playing the 480p big buck bunny. Result: black screen while video is playing. Sound is present but no video. Link to debug log. RE: popcornmix's Leia_pi4 branch on RPi4 build runs but no video when playing - popcornmix - 2019-07-22 Main difference between your log and mine is you have: Code: DEBUG: CRBP::WaitVsync no vsync 0/1 display:0 delay:0 which suggests CRBP::VSyncCallback is not occurring. I think this is due to: [mine] DEBUG: CRBP::OpenDisplay device:0 m_display:10000030 (0) [yours] DEBUG: CRBP::OpenDisplay device:0 m_display:0 (0) which means the call to vc_dispmanx_display_open failed. First guess is Arch kernel is missing patches. Second guess is some strange timing that Arch kernel has a different effect. Is there any change in behaviour with "adjust display refresh" enabled/disabled? How about setting "delay after change of refresh rate" to a few seconds? RE: popcornmix's Leia_pi4 branch on RPi4 build runs but no video when playing - graysky - 2019-07-22 (2019-07-22, 22:44)popcornmix Wrote: Main difference between your log and mine is you have:
About the Arch kernel differences... what distro are you using (is it LE)? I built the Arch kernel using the LE config but found that it would panic on boot. The error was something about not being able to read the root filesystem. Perhaps it is setup for the squashfs that LE uses. I am not expert with kernel configs. For reference, here is the config Arch ARM uses for RPi4. RE: popcornmix's Leia_pi4 branch on RPi4 build runs but no video when playing - popcornmix - 2019-07-22 I'm using raspbian kernel. (but LE kernel is also known to work). RE: popcornmix's Leia_pi4 branch on RPi4 build runs but no video when playing - graysky - 2019-07-23 @popcornmix - I built kernel using the LE config with a minor mod: the key was modifying the CONFIG_CMDLINE= to match Arch's. Booting into it still gave the errors and no video. Link to debug log. RE: popcornmix's Leia_pi4 branch on RPi4 build runs but no video when playing - popcornmix - 2019-07-23 Can you try your build on raspbian? Useful to know if problem is in build or environment (e.g. kernel or perhaps /opt/vc/libs). RE: popcornmix's Leia_pi4 branch on RPi4 build runs but no video when playing - graysky - 2019-07-23 I put my build here: http://repo-ck.com/armv7h/ I'm not totally sure how exactly to do this on Buster. Arch packages are literally tarballs. Is it as simple as untarring it and running it on Buster? How would I handle getting the Raspbian equivalent dependencies? Here is the link to the main kodi package I built, would you try it on your Buster: http://repo-ck.com/armv7h/kodi-rbp4-18.3-1-armv7h.pkg.tar.zst EDIT: I installed the Raspbian kodi package thinking it would pull down the needed deps. Then I untarred my package to /home/pi/local and adjusting the kodi script therein but when I try to run it: Code: cd ~/local/usr/bin And: Code: cd /home/pi/local/usr/lib/kodi RE: popcornmix's Leia_pi4 branch on RPi4 build runs but no video when playing - popcornmix - 2019-07-23 Looks like Buster has libnfs.so.12. You could try creating a symlink. Repeating the build instructions on raspbian may be a more sure way. RE: popcornmix's Leia_pi4 branch on RPi4 build runs but no video when playing - graysky - 2019-07-23 Symlinking worked but there are others I had to symlink including libcdio.so.19, libpcreposix.so.3.13.3, and libtinyxml.so.2.6.2 but I seem to be stuck. Code: $~/local/usr/bin/kodi EDIT: I even pointed apt-get to the bullseye repos and updated but still no go :/ What can we conclude from me booting Arch ARM with the LE kernel config? Doesn't that rule out a kernel setting as the issue? There is gave the same message you pointed out: https://gist.github.com/graysky2/50c6ebb23a4f7c65260a19741077785b#file-gistfile1-txt-L401 Code: DEBUG: CRBP::OpenDisplay device:0 m_display:0 (0) |