Experimental 3D CoreELEC 22 patch

Hi all,

I’ve made an experimental CoreELEC 22 NO feature that converts Full-SBS (3840×1080) and Full-TAB/OU (1920×2160) and 4K/8K UltraHD SBS/TAB into genuine hardware decoded HDMI 1080p frame-packed 3D.

It is currently working well on SC2, S7D, T7,G12B chipsets, but others are also supported.

Both eyes are output at full 1920×1080 resolution, and normal MVC 3D still works.

The feature lets VD1 and VD2 read the two eye regions from the same decoded frame and feeds them into the existing Amlogic frame-packing path for full hardware decoding.

UPDATE: I’ve added vertical shift support for MVC Blu-ray 3D, Full-SBS and Full-TAB playback, allowing the 3D image to be moved vertically while keeping both eyes correctly aligned.

UPDATE 2: Added scaling corrections for external .srt subtitles being stretched (HSBS) and made narrow (HTAB) during 3D playback. Also fixed the wrapping for longer lines that was cut very short in HSBS.

UPDATE 3: Added HEVC and AV1 support incl 4K/8K resolutions and support for ultrawide and narrow movies. Improved 3D scaling, positioning and vertical alignment. Support for multiple Amlogic chipsets, with new chipset specific optimizations for S6, S7D, T7 (Thanks tukkie and xmlcom)

Also, it detects filenames like FSBS, FTAB, and OU as 3D.

It is currently based on the NO-codebase from Oct 28. So it adds newer fixes including Portisch’s fantastic MVC macroblocking fix.

Just put the .tar file into /storage/.update/

Included is also an F-SBS and F-TAB sample, that will show if the two eyes are working and shown in full HD - based on pixel patterns, where you should be able to see 1-pixel lines.

https://github.com/hej456git

I did some limited testing.

Hardware: Ugoos AM6B+ (Amlogic S922X-J) → older 3D capable receiver (Onkyo TX-NR5008) → LG E6 4K TV

Also tested without the receiver with a straight connection to the TV.

Everything works well, MVC plays the same as before, FSBS and FTAB are nicely converted to frame-packed and correctly and automatically recognized by my TV (for the TV, MVC/FTAB/FSBS are now seen as the same thing). Everything is FP 1080p 3D as expected. HTAB and HSBS are still working as normal too with the TV recognizing them and switching accordingly to the respective modes.

CoreELEC was your provided build of course on CE22 no.

As I do not have any full FSBS/FTAB movies, but rather everything in MVC, I cannot test full movies.

Great works nevertheless, thank you!

Thank you very much for performing this comprehensive testing.

Good to know that the patch is also working on the Amlogic S922X-J.

I have now set up all code for the Full-SBS/TAB feature implementation in Github: My Repository

Don’t you lose resolution depths as it is downscaling?

Nope — that’s actually the nice bit :slightly_smiling_face:

The patch basically just separates the two eyes which in Full-SBS/Full-TAB each is already full 1920×1080 and repacks them into HDMI frame-packed 3D at 1920×2205.

So there’s no extra per-eye downscaling and no loss of depth information from the conversion itself.

The test files in my repo nicely demonstrates this as they have some 1 and 2 pixel patterns that are preserved.

Do you know why CE won’t incorporate it?

I tried to submit the feature to CE, but it was rejected as too hardware-specific to justify the maintenance burden. Unlike some displays, my projector cannot accept Full-SBS (FSBS) directly as 3D, resulting in reduced per-eye resolution. The patch converts Full-SBS/TAB into standard HDMI frame-packed 3D, preserving full 1080p resolution per eye.

I’ll update the experimental build soon with the latest codebase and additional 3D fixes.

Although I am a 3D enthusiast and following the 3D MVC developments in CE for a long time now, I can see and understand the core CE team here. Down the line, something like this might become a community expectation to keep this feature alive, with more and more SoC potentially dropping frame packing support, 3D TVs not being produced in over 10 years now and therefore only projectors/VR-goggles supporting this going forward. (I do not need to be convinced of the glory of 3D and know, that there are still releases today.)

Also: I am not sure, if there are many FSBS/FTAB movies out there? I am not sailing the high seas, so I am not sure, how 3D movies are “distributed”? =P. My guess would be HSBS/HTAB? Or MVC for enthusiasts with dedicated players?

In any case, a suggestion/question: Could you package this into an Addon for Kodi? I am not sure, what the possibilities are here, but if thats possible, then you could lift the maintaining aspect from the CE team and if it becomes deprecated down the line, so be it?

I fully agree. It would indeed be nice if it could work as an add-on for Kodi.

he Full3D patch however changes both Kodi and the Amlogic video driver, so it needs to be built into CoreELEC.

Some Kodi-side parts could potentially be separated, but real HDMI frame-packed 3D still requires common_drivers changes.

Excellent work @HejDu. Does your solution rely on s/w decoding MVC, or is it still h/w using Amlogic’s decoder? Just trying to understand.

Thanks! The solution still uses Amlogic’s hardware decoder for MVC, there is no software decoding involved.

The patch modifies the CoreELEC/Amlogic video pipeline to enable native MVC 3D playback and output the two decoded views as HDMI frame-packed 3D.

So the MVC decoding remains hardware-accelerated, with the driver changes primarily handling the 3D output and display pipeline.

You solved the issue Amlogic abandoned for us years ago.

Build has been updated to NO-codebase from Oct 17. And I have patched the non-working vertical shift during 3D playback and done some clean-ups in the code. Enjoy.

I’ve patched the non-working vertical shift for MVC Blu-ray 3D, Full-SBS and Full-TAB playback, allowing the 3D image to be moved vertically while keeping both eyes correctly aligned.

Tested successfully on Nokia Streaming Box 8010 (S905X4), with smooth playback.

It can be found in my updated: Experimental 3D CoreELEC 22 patch

Feedback and testing on other devices are welcome!

Just tested. Good news: the macroblocking issue is absent from ‘Gravity’, ‘Ready Player One’, etc. 3D MVC MKV’s and ISO’s play well.

But, HSBS is playing in 2D, same as CE-NO nightlies, as is HTAB, which nightly plays fine. And, FSBS is only showing half the frame. Seems just one eye view.

Debug log, and video of what I saw.

Thanks a lot, I will try to look into those issues. For HSBS/TAB I have not done any changes and at least my projector selects 3D mode with playback - however sometimes small differences are introduced with the newer codebases. I can test using your file. For the FSBS did you try running the sample I provided? I am currently working on fixing the dimensionality of subtitles in HSBS and HTAB which on my projector are either wery wide or quite narrow depending on the file played. Also, since the later codebase I experience stuttering in MVC playback from my SMB NAS, not for other files - which is also there in the stock version, but was not there in my first build some weeks ago… still some details to look into :-).

This looks really good. Unfortunately doesn’t seem to work on my LG UB850 TV. And just gets a completely fuzzy screen, which I think it occuring when it tries to change how it outputs through the hdmi. I’ve tested both the github one, and the new mega link. Any ideas on why this might be occuring? I don’t think it’s a hardware issue as I do still get full sbs on the official coreelec version

Update:
I got it working but I am not 100% sure that what I did fixed it, because it just kind of worked. I ended up whitelisting only the frame packed resolutions, and even then only did 50, 30, 25, 24 and 23.97. It still didn’t instantly fixed, but then just somehow worked later on, possibly because of a restart. Either way, it works great now, and also the new vertical shift patch in the mega file allowed me to correct where it appeared on the screen. Nice work!

Thanks a lot for testing. I guess the problems have to do with the resolutions as you write. If you can recreate the problems and create a log I can take a look. I have only tested on my projector with 24.

Also, I have fixed srt playback in HSBS and HTAB which at least on my display gets either stretched or very narrow. I will put it out with the next release, but don’t know whether anyone else has this problem?

I’ve updated the Full3D build with improved .srt subtitle handling for half-SBS (hSBS) and half-TAB (hTAB) 3D playback, which were before stretched and narrow as the rendered subtitles were scaled according to the half-size image.

Main post updated.

Source: GitHub - hej456git/CoreELEC at full3d-release-20261027 · GitHub