Packages from LibreELEC

Recently @hiassoft added a PR to LE that enables libx264 and libx265 support for aarch64 which works nicely with RPi5 and RK3588 but I expect it won’t work well with most CE devices. When version 2 comes out to CE I will test on my S928 box and I hope it works.

The reason for that long intro is if I don’t want to enable ffmpeg video web decoding in CoreELEC for service.nextpvr, is there are way in the python install script to tell that CE is running or possibly what Amlogic family the box is on?

Martin

You can check different things on a device. Like file /etc/os-release or /proc/cpuinfo.

Thanks I will need to use both

DISTRO_DEVICE=“RPi5”

DISTRO_DEVICE=“RK3588”

CE has the SoC in /proc/cpuinfo

However I just noticed ffmpeg and ffprobe from tools is segfaulting https://paste.coreelec.org/StuffingGrownup with the current nightly. Maybe a v8 vs v7.1.1 in CE issue?

Martin

Something odd could be happening with the update. I decide to build ffmpeg from source and the new version works. Then starting service.nextpvr it failed and it seems the dotnet-runtime wasn’t working but building from source fixed it too.

In any case using the newest ffmpeg transcode 1080i MPEG2 to h264 in real time for the browser is doable, with just enough CPU and not too bad 52C while streamin.

Just had a chance to try the S905X5M and it can transcode in 1x too. With ultrafast it is even lower CPU then what I showed for the S928.

However the recent FFmpeg enhancements really needs the second PR x264: enable asm optimization for arm/aarch64 as well by HiassofT · Pull Request #10647 · LibreELEC/LibreELEC.tv · GitHub to really show a difference.

Martin