3D Frame Packed output

#1

For a while now, we’ve been working on adding support for Frame Packed (MVC) output when playing 3D content.

Side-by-side and Top-and-bottom output have been possible for some time over the years, but this isn’t ideal as the resolution is halved. With these test builds, you should be able to play MVC content and output as Frame Packed 3D if your equipment supports it. These are still test builds, and we need more feedback before we can make this part of OSMC as standard.

Many thanks to @tanio99 for stepping up and helping with this. He has been very helpful.

Install instructions

Ensure that you have first updated to OSMC’s July update (2019.07-1) or later; otherwise these builds will not work.

Log in via the command line and execute these commands:

wget "https://collab.osmc.tv/s/dQ7xCKmKnVHQ9Re/download" -O mediacenter.deb
sudo dpkg -i mediacenter.deb
rm mediacenter.deb
systemctl start mediacenter

Note: these builds are based Kodi Leia (v18) which is currently a stable build. These changes are not available for Kodi Matrix (v19) at the time of writing.

Known issues

Known issues will be added here as they are reported. When reporting an issue, please provide debug logs and let us know what equipment you are using.

  • Macroblocking with some video files
  • Some files cannot be watched. They typically exhibit an ‘NTSC’ flag in their MediaInfo output. This is caused due to a PTS mismatch with the 2D and 3D decoder and is being investigated. In the interim, disabling Adjust Refresh Rate will allow these titles to play, albeit less smoothly than native 23.976Hz output. After some discovery this seems to be caused by IVTC being forced by ffmpeg; rather than an inherent decoder/ucode issue in SoC firmware. This is further supported by some of our earlier attempts to implement 3D MVC where we didn’t explicitly push MVC tags through the decoder chain and relied on AMCodec to pick this up, which didn’t exhibit this issue. This looks like an ffmpeg bug.

Solved issues

Solved issues will be added here as they are fixed.

14th September 2019

  • Based on Kodi v18.4
  • Fixed issues with subtitle scaling when playing files with PGS subtitles. Note that this needs testing, even with 2D content
  • Seamless branching issues are fixed – caused issues with some titles such as ‘Alita’
  • Fixed an issue which caused problems playing back UHD content after playing a 3D title
  • Improved seeking after forwards / backward skips
  • Flip eyes now works for MVC video viewed in 2D.

21st August 2019

  • Added support for right-eye-first content
  • Added support for ISO playback
  • Fixed frozen playback with some files

There is also a microcode update for the H264 decoder. This is available via the staging repository. You should update this first before following the instructions above:

  1. Login via the command line
  2. Edit the file /etc/apt/sources.list
  3. Add the following line: deb http://apt.osmc.tv stretch-devel main
  4. Run the following commands to update: sudo apt-get update && sudo apt-get dist-upgrade && reboot
  5. Your system should have have received the update.

I also recommend you edit /etc/apt/sources.list again and remove the line that you added after updating. This will return you to the normal update channel.

Changelog

15th September - further improvements and fixes made
21st August - improvements and fixes made.
7th August - initial version

4 Likes
Playback of packed 3D (3D ISO)
#4

Most of my 3D content is in M2TS format at the moment, and it doesn’t seem to recognise those as 3D. (They play in 2D okay).

Is that what we would expect at this stage?

#5

Check known issues

1 Like
#6

Yes – that’s explained above. Try playing some files in an MKV container.

#8

I’ll do some remuxing.

If I go into Settings/System/Display and change “Stereoscopic 3D mode / Current” to “Hardware based”, would you expect that to be working correctly at this point?

#9

Yes – for MKV files.

#10

I have a lot of Full Frame 3D in my collection, but I really don’t have any 3D MKV file, even not one for a test. So I will go and find one, but for me this solution will not do. Hopefully the ISO/SSIF support will come (a bit sooner) in the near future :wink:

So I will still be using the special MVC 18 Build for Windows for 3D (and more).

Appreciate the effort and support though, great job :clap:

#11

That setting switches you into 3D mode even when you aren’t actually playing anything. And it goes crazy when I try it - doesn’t switch to 3D, but all kinds of flashing display corruption.

Logs: https://paste.osmc.tv/bubixetira

#12

You don’t need to set it if your MKV has proper flagging.

As always, logs and details about the equipment you are using helps.

#13

One step at a time. It would still be good to get feedback for 3D MKVs.

#14

Link to logs is in my previous post. Vero 4K+ is connected to a Lumagen RadiancePro processor, which is connected to an LG OLED65G6 television.

#15

I need to add more logging to gather 3D capabilities.

The output of disp_cap_3d would be useful to see the capabilities. Can you also try rebooting and directly to the TV?

#16

Directly to the TV is going to involve a lot more crawling around on the floor than I can cope with tonight. I’ll have a go tomorrow.

You’ll have to tell me what to type at the command-line to get that.

#17

cat /sys/class/amhdmitx/amhdmitx0/disp_cap_3d

#18

OK so after some testing my observations are:

3D mkvs play well in FP mode although I did noticed some corruption or decoding errors when playing A Christmas Carol.

UHD files now don’t seem to have any OSD and some play half screen, even after a reboot, very strange.

Black levels on all content and menus seems to be raised.

Flip eyes doesn’t work so on some right eye first content such as The Hobbit an Unexpected Journey theres no way to watch it correctly.

#19

I think I know how to fix this.

Really appreciate the feedback

Sam

#20

No worries Sam, I really appreciate the effort you’re putting in to get this working for us!

1 Like
#21

This should be normal as all 3D TVs boost up their brightness a lot for use with 3D shutter glasses. But the goal would be that the black level should be fine again when watching with 3D glasses on.

#22

Well from my quick testing it looked like brightness levels had been universally raised on the Vero, so any content I played - 4K, normal 1080 stuff was all brighter than before.

Its also strange that this test build has affected UHD playback.

#23

That we haven’t noticed on our test setups.

It’s not strange, no. We’re aware there’s an issue with UHD 2D content. We were only able to reproduce this after playing MVC content output as SBS/TAB. It was not a general problem after MVC 3D FP output for us.
Could you describe what you’re doing exactly so that UHD playback is borked?