kodi-git build script for mainline hwaccel media decoding
#1
greetings,

provided is a build script for kodi-git using gbm+gles. kodi works excellently on the pbp with hantro and rkvdec media decoding for mpeg2, h264, h265, vp8 and vp9 codecs. see the mainline kernel and mainline hwaccel threads for more information. particularly THIS POST.

run kodi from a terminal WITHOUT a GUI running.

REQUIREMENTS
linux-hwaccel
ffmpeg-v4l2request

RECOMMENDED
mesa-git

SCRIPT
script now part of pbp-tools. see other forum thread for details.
https://github.com/xmixahlx/pbp-tools
https://forum.pine64.org/showthread.php?tid=10190
  Reply
#2
Is this Debian only? Or will it work with Manjaro too?
  Reply
#3
it will work with manjaro, also. just translate dependencies and other debian-centric steps to manjaro/pacman, etc.
  Reply
#4
modified the script a bit for rerun. you'll want to use ccache if doing that...
  Reply
#5
updated and added inputstream.adaptive from git, which allows >720p youtube, among other uses.
  Reply
#6
scripts now part of pbp-tools. see other forum thread for details.
https://github.com/xmixahlx/pbp-tools
https://forum.pine64.org/showthread.php?tid=10190

updated the first post
  Reply
#7
Hi @xmixahlx

I have added your vdec patch to `linux-pinebookpro` it built fine then I tried building ffmpeg full but it have too many extra libs enabled so I moved to ffmpeg with only v4l2_request and it was build just fine.

Now I am stuck with kodi-git I tried my PKGBuild with your config and it fails with errors then I think I will just run your script and it fails with missing deps and after I install those deps then it fails with missing packages which are not part of arch linux example `fstrcmp` and `libdvdread` errors.

Have you tried building using the kodi script on your pbp-tools repo? Can you add full dep list?

Thanks for your work.
Manjaro ARM Team.
Devices: Pinebook Pro & PinePhone.
  Reply
#8
@spikerguy

if you have built linux and ffmpeg with the linux-hwaccel and ffmpeg-v4l2request patches, i'm assuming you should be able to add gbm and gles from configure to an existing kodi PKGBUILD.

i run all these scripts from debian sid arm64 and dependencies are largely solved with "apt-get build-dep kodi ffmpeg". i do plan to update debian dependencies shortly. i'm not that familiar with pacman - does it have a similar build-dep command?

my assumption is you would want to convert these scripts to PKGBUILDs in manjaro. happy to help that if i can.

can you post the kodi build log?

note: i steal the "full" ffmpeg configure directly from debian-multimedia.org's debian package and add the needed v4l2-request additions. you could adapt this for manjaro by removing anything not included in the repo?
  Reply
#9
(06-13-2020, 01:41 PM)xmixahlx Wrote: @spikerguy

if you have built linux and ffmpeg with the linux-hwaccel and ffmpeg-v4l2request patches, i'm assuming you should be able to add gbm and gles from configure to an existing kodi PKGBUILD.

i run all these scripts from debian sid arm64 and dependencies are largely solved with "apt-get build-dep kodi ffmpeg".  i do plan to update debian dependencies shortly. i'm not that familiar with pacman - does it have a similar build-dep command?

my assumption is you would want to convert these scripts to PKGBUILDs in manjaro. happy to help that if i can.

can you post the kodi build log?

note: i steal the "full" ffmpeg configure directly from debian-multimedia.org's debian package and add the needed v4l2-request additions. you could adapt this for manjaro by removing anything not included in the repo?

Thank you for the clarification. I just wanted to make sure I follow what is in your scripts. 

As it is clear now, I will try to build ffmpeg with v4l2_request enabled and kodi with gbm instead of x11.

I did try to play a video with linux_hwacc and ffmpeg_hwacc and I see there is some less load on cpu as compared to before where I used ffmpeg to play the video and not mpv. There is some video tearing which is fine as hw decoding is still wip.

I will try to rebuild kodi and ffmpeg again tonight.

Thanks.
Manjaro ARM Team.
Devices: Pinebook Pro & PinePhone.
  Reply
#10
I'm missing something configuration-wise, when I run kodi it opens up but I have no input methods that work. I tried an external keyboard but no dice
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  A true mainline Linux Kernel for the Pinebook Pro tsys 149 28,121 07-18-2020, 01:39 AM
Last Post: schanzen
  How does one get working deep/S3 sleep with Ubuntu Focal/5.7 mainline kernel? Syonyk 6 443 06-14-2020, 10:36 PM
Last Post: Syonyk
  mainline kernel hardware acceleration xmixahlx 33 6,631 06-11-2020, 10:41 AM
Last Post: xmixahlx
  Default Manjaro KDE build download link for Pinebook Pro? qeek 8 697 03-21-2020, 09:41 AM
Last Post: MrDitchy
  Kodi on Manjaro brent.thierens 12 1,193 03-16-2020, 09:10 AM
Last Post: spikerguy
  rkmpv Accelerated Media Player issues zaius 3 415 03-11-2020, 05:49 AM
Last Post: agD0i7rY
Shocked Pinebook Pro Build Script Issues TDC_PBP 3 707 03-01-2020, 04:24 PM
Last Post: jwhall
Bug Firefox crashes in the default Debian build Feakster 4 839 12-02-2019, 11:47 AM
Last Post: Mrfixit2001
  Debian auto-build bcnaz 0 172 11-05-2019, 05:30 PM
Last Post: bcnaz

Forum Jump:


Users browsing this thread: 1 Guest(s)