Posts by NTM-3D

    The subtitle torture test is now smooth for me on Pi4 without overclock (overclock may be useful for harder clips).

    I did some testing and this version is alot betetr and the load between cores are now much more even. I still get some frame drops when playing the torture test when not overclocked but night and day difference to before. After overclocking it plays without issue as far as I can tell :)

    Here is some graphs over the first 40 or so seconds of Big Buck Bunny with the torture test subtitle active.
    Standard is no overclock and overclock is at 2.1GHz.



    New builds: RPi5 RPi4.

    I have now tested both and as far as I can tell the all the depth changes are now shown as they should :)
    However the RPi4 is struggling some with decoding the MVC. Regardless if subtitles is enabled or not, it seems one core spikes and when that happens frames are dropped. I tried overclocking even more but saw no real improvement and then the RPi4 got unstable instead so went back to 2.1GHz.

    Here is a graph of the CPU core load every 100ms over the first minute or so of the 3D demo disc with a 1 frame subtitle track enabled. You can see how one core spikes while the three others stay around 40-60%. If it's possible to optimize the per core load a bit more evenly then the RPi4 should be able to play without dropped frames.

    I was also wondering if you have had any success on solving the resume problem?

    I need to give you a great big thank you! The work you've done here is great and being able to play all my 3D Blu-rays with proper subtitle support is awesome. Many commerical 3D Blu-ray players do not handle 3D subtitle this well!

    I've downloaded. It would be useful if you could describe where the output is wrong?

    e.g. at 00:30 sub should have increased depth compared to 00:29, but was the same.

    You can see the list on the Internet Archive page of what each subtitle should be doing. You also have an overlay at the top left corner that says what the currently selected subtitle is configured to do as you switch between subtitle 1-12 that are the demo ones. After changing subtitle track you need to wait until the next text line fore the overlay shows but after that stays on for the rest of the movie.

    Currently none of the dynamic subtitle tracks are updating properly, there at a lot of missed and inconsistent depth updates. Sometimes seconds between updates.
    If you watch the video I provided you can see how one subtitles where the depth change every frame behave on a real PS3. It updates the subtitles depth every frame just as instructed, making the subtitle smoothly sweep between -127 and +127 in depth.


    Don't know if this has been asked before but can this build output frame packed mode all the time? My projector takes some time to sync over to 3D mode, so I lose about 10 or more secs of the movie when starting. On my old build on pc, I could have it in 3D mode all the time so there was no sync delay. Awesome build btw <3

    Go to Settings/System/Display - "Stereoscopic 3D mode / Current": Over / Under
    This will switch frame packing on.

    But I would suggest to instead set Settings/System/Display - Delay after change of refresh rate: 10.0 seconds
    Or what every value your switching delay is. That will pause the start of the movie for that amount of time after activing frame packing.

    I think most menus you are having trouble with are java ones (2,3,5). You need to install the "JRE for BD-J menus" addon from LibreELEC repo to support those.

    1. wasn't obvious from log. I'd probably need a sample menu that behaves like that to debug further.

    4. looks fixable.

    6. looks like a bad rip:

    Code
    demuxer seek to: 2410868.000000
    bluray.c:925:  Unable to seek clip 00800.m2ts!
    bluray.c:1720: Seek to 9400237248
    bluray.c:824:  Read past EOF !
    Process - eof reading from demuxer
    CVideoPlayer::OnExit()


    the indexes point beyond the end of the file - we hit EOF and end. It may be possible to treat that as switch to next item in playlist which may behave better.

    Ah, I'll try the JRE for 2,´ 3 and 5. Edit: I tried them after installing JRE but same same thing.

    6 is not a bad rip it's a badly authored disc. There are quite a few of them that has been released over the years. PS3 for example is known to be picky and has issues with them. You can play that ISO on PowerDVD 18 without problem.

    1 is not a bad disc. The menu works fine on the PS3 funnily enough ;) Launches the 3D version, no problem.

    Regarding 3D subtitles and dynamic depth there are still some ways to go. To help in this I have made this demo disc that has many different variants of dynamic and static depth for subtitles. I even included a torture test that sweeps between the max (127) and min (-127) depths possible with changes every single frame.

    ISO can be downloaded here: https://archive.org/details/big_bu…tle_demo_ntm-3d
    I have a capture playing the torture test on my real PS3, i handles it without issue :)

    External Content youtu.be
    Content embedded from external sources will not be displayed without your consent.
    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.

    Can you test one of these builds for a potential fix for garbled right eye on Cars: Pi5 Pi4

    edit: updated links - attempted to clear menu when playing a second disc without stopping first.

    Also enabled more BluRay logging. Can you enable logging and Blu-ray specific logging, and reproduce the issue where the 3D menu said you needed a 3d TV.

    Logs: https://www.swisstransfer.com/dl/01a09982-0a…fb-d398c60dec5f

    I have now tested both the RPi5 and RPi4 versions and Cars now seems to play without glitching :)

    The menu issues are unchanged. Most fail to play the menu but then fall back to playing the movie instead. But on Dune (2021) it crashes when you try to open the menu. No problems playing from the playlist.
    I usually play my 3D ISOs on my PS3s. The PS3 is known for being a bit picky with playlist issues on some movies, causing skipping or complete failure of playback. So for some of these problematic movies I have made remuxed versions that play without issue. I tried John Carter that I know have this issue and I get the same problem here.

    The resume issues are also still present.

    The attached log is from my RPi5 and have the following:
    1. I am playing Money from Home using the menu and getting the no 3D TV error.
    2. I try playing the menu on Dune (2021) and it crashes hard.
    3. I try to play the menu on Jurassic World, it skips directly to the movie.
    4. I play the menu on Jurassic World: Dominion and it works. This menu also has a 3D/2D option like Money from Home and I selected the 3D option and it plays the movie in 3D. However it flips between 2D and 3D several times while loading the menu.
    5. I try to play the menu on Jurassic World: Fallen Kingdom, it skips directly to the movie.
    6. I play the full ISO of John Carter, it starts but after I try to skip 20-30 min into the movie it crashes.
    7. I play the remux ISO of John Carter, here I have no issues skipping in the movie.
    8. I play Avatar: Fire and Ash that is 2 discs. I start from the playlist and it starts. I try to skip past the break point and I manage after i few failed attempts. It shows the playlist or menu box, I choose playlist and it starts playing disc 2. So kinda works but a bit janky ;)

    Thanks for the update - it's reassuring to hear that the rpi4 is able to to handle the playback similar to the rpi5 with a 2.1 ghz overclock. I plan on running a good fan - it's part of the case I am using anyway. Did you notice any difference in the quality of the 3D between the 2 devices?

    Regarding the rest of the issues, hopefully these will get fixed over the due course of time.

    Since the MVC decoder is software the quality will be identical regardless of hardware. Your TV settings will have a much greater impact than running on different hardwares :)

    I just updated both my RPi5 and RPi4 to the latest 20260909 versions. I have not been able to do extensive testing but as far as I can tell the MVC playback are identical on both.


    (Example of the typical load on my RPi4 during 3D Blu-ray ISO playback)

    I am running the RPi4 at 2.1GHz overclock on the CPU. I have no overclock at all on the GPU since it is not used. Keep in mind that you need proper cooling if you plan to overclock you RPi4. I am running the GeekPi Armor case on all my RPi4s.
    51LSCn3op8L._SL1000_.jpg

    The graphical issues with for example Cars is still present on both RPi4 and RPi5 versions. The RPi5 versions still has the playlist is used by another file issue for 3D Blu-rays and the RPi4 has the issue instead of broken resume for 3D Blu-rays.

    Menus are still a bit hit and miss. Dune (2021) for example just refuse to even launch any menu at all.
    I saw that ht2tweak had luck with Money from Home but when I try to play it from the menu I just get this box telling me I need a 3D TV, while the menu is playing in 3D ;) Playing directly from the playlist works fine.

    I then forgot to first stop Money from Home and tried starting Jurrasic World from the menu. The menu did not show but the movie starting playing behind the Money from Home menu, but now the menu was 2D. So got some sort of hybrid thing going ;)

    I may need a sample to understand exactly how the subs are encoded.
    I assume you don't mean harcoded subtitles (i.e. in the pixels of the video).

    I'm assuming some format where each subtitle's text appears twice for each timestamp, with some positional offset aligning it to left eye or right eye half of screen?

    That sounds like a hack to support a media player that doesn't understand 3d.

    Without some metadata describing the format it is probably going to be awkward to handle.

    Exactly, made so you can play using like VLC and then just activate the SBS or OU settings on your TV and you get 3D subs.
    In the swisstransfer link in my last post has both a video of the Cars glitches and a small MKV from Cars HSBS MKV that has the stereo subtitles I am talking about.

    Also I just notices that resume does not work anymore. I guess the "playlist already in use" fix broke the resume? Video files still remeber their last postition but 3D ISOs now always starts for the beginning. Would be great if each ISOs remebers its position like other video files.

    Had a look on pi4, and seems bluray dependent. Edge of Tomorrow is a lot better than Coraline.

    We have up until now been creating a SBS buffer to combine the eyes and pass through kodi's default SBS handling, but that does require a copy of decoded frames which does have a cost. I've had a go at (in the usual DRMPrime path displaying using the decoded frames directly) and it does improve things.

    Here is a Pi4 build that may be a bit better - I suspect it will still want an overclock for harder samples, but perhaps can be a little lower. The build also has potential fixes for eye-swaps and subtitle depths. The corruption issue will probably need a sample file.

    You are beast :)
    This build feel much improved, starting and skipping around is clearly snappier now. I am still running my 2.1 Ghz overclock. The glitching and subtitle depth flickering in Drive Angry seems to be gone now. Setting subtitle depth now also seems to work and no longer overrides subs with dynamic depth :)

    I do notice that it now shows more playlists than before by default. Cars still has the same glitching. I tried making a sample ISO but the glitching does not show up in that one so the issue may be on another level. See the attached video I made that show the glitching and notice how the time jumps back to 00:57 during the first glitch, playlist issues causing them maybe?

    SwissTransfer - Send large files securely and free of charge
    Send up to 50 GB - Free and no registration required - Keep your transfers for 30 days
    www.swisstransfer.com


    I was wondering if it would be possible to support MKVs that has prebaked stereo subs? Quite a few on my SBS or OU MKVs has stereo subs. I included a short sample if you need. One problem though is that some like this one has the subs pre squeezed to match the Half SBS/OU format, some are not however are not. So ideally one would have a switch like swap eyes to manually squeeze/unsqueeze if needed.

    Builds in first updates to address issues reported.

    Note: I'm testing with slightly different files - I've found and improved some issues that are similar to what was failing in reports, but there could still be issues I didn't see. Please test and report what was fixed and what wasn't.

    Great work! A lot of things now work. Skipping in the Cars movie now preserves 3D. The movies that only had 2D now also show in 3D. Swap eyes now work but Driver Angry still default to the wrong order if I play from the playlist. But if I go to the menu and start it from there the eyes are correct from the start.

    I have notices some issues. First the subtitle 3D dynamic depth sometimes does not work and sometimes is a bit unstable, flickering between screendepth and the correct value. Also is you have the setting "Sterescopic 3D depth of subtitles" set to anything other than 0 it overrides the dynamic depth. It would be great if you could have this enabled for subtitles that do not have any depth info, like SRT, but if you play a subtitle track with dynamic depth it takes priority.

    Some movies have graphical glitches, they seems to happen at the same time every time.
    Log: https://www.swisstransfer.com/dl/01a06fe7-f9…2e-781536a5750a

    1. I play Cars, I think the first two subtitle texts have dynamic depth but then all the rest are just at screendepth. Some minor graphical issues across the whole screen also.
    2. I play Drive Angry via the menu. Graphical issues fairly frequent, mostly in the lower 1/4 of the left eye. Dynamic depth of subtitle works but sometimes flicker back to screendepth.

    I have been testing the latest image on the Raspberry Pi 4 and using the default clock speed I get slowdown and stutters but overclocking to 2.1Ghz seems to boost the performance enough to provide smotth playback of 3D Blu-rays, I have not done extensive testing but have tried several high bitrate scenes from different movies.

    If anyone elese want to try follow the instructions here, https://wiki.libreelec.tv/configuration/config_txt, to modify config.txt. This do require active cooling!
    Add arm_freq=2100 at the bottom of config.txt and reboot

    Have a couple more issues I've found.
    Logs: https://www.swisstransfer.com/dl/01a06788-7e…cd-ad91aff577a1

    1. I resume Driver Angry but the eeyes are flipped, see attached image. This is one of those disc where the right eye is the main och left the MVC track. I go to video settings and enable swap eyes but it has no effect I den disable it again.
    2. Try to play a movie, select the only playlist that is long and it plays in 2D.
    3. Try to play another movie, select the only playlist that is long and it also plays in 2D.

    So Kodi not detecting which stream has which eye and swap eyes not wokring in case the metadata is wrong. Also some dics fails to be detected as 3D at all. Not the same issue as above where it starts FP output and 3D but video is 2D. 2 and 3 never detects 3D at all.

    Yes, debug enabled log file would be useful. Also is this a regression compared to previous build, or did that do it too?

    Forgot to answer your question. I am not sure if it's a regression. I have not seen black screen or 2D before but I have not tried playing a lot of ISOs and don't know if I tried these before.

    Yes, debug enabled log file would be useful. Also is this a regression compared to previous build, or did that do it too?

    Here are the logs: https://www.swisstransfer.com/dl/01a065c8-37…09-a4a2b26e53c4
    1. I resume Cars 2, FP output starts, UI is 3D but video and subtitles are 2D.
    2. I start Cars 3 from the start, video is 3D, did not activate subtitles. I try to skip 5 minutes, video goes black and audio continue.
    3. I try to resume Cars 3, FP output starts, UI is 3D but video and subtitles are 2D.

    Also I keep getting questions about the playlist already being used and if I want to reassign it. Anyway to supress those?

    I see there have been some discussion about 3D-planes and subtitle depth so I will insert this I wrote some time ago where I go through some of the different variant you see on 3D Blu-rays. In case it is to some use :)

    --------------------------------------------------------------------

    First you have Cars 3. This disc shows how every disc should be done. Each subtitle has each own 3d-plane and each of those 3d-plane are different to match each subtitle track. Since different languages take up different amount of space and thus interact with the background object different.

    A bit lazier version of this is having one 3d-plane with dynamic depth and then connecting all subtitles tracks to that. This can work good enough if all of you subtitles are in related languages that produce text in about the same amount of space.

    3D-Plane #00
    NumFrames: 147333
    Minimum depth: -3
    Maximum depth: 24
    Average depth: 6.25
    Number of changes of depth value: 776
    First frame with a defined depth: 1097
    Last frame with a defined depth: 139153
    Number of frames with undefined depth: 9895
    Identical Planes: None

    3D-Plane #01
    NumFrames: 147333
    Minimum depth: -1
    Maximum depth: 24
    Average depth: 6.10
    Number of changes of depth value: 522
    First frame with a defined depth: 1124
    Last frame with a defined depth: 146108
    Number of frames with undefined depth: 2808
    Identical Planes: None

    3D-Plane #02
    NumFrames: 147333
    Minimum depth: -3
    Maximum depth: 24
    Average depth: 6.28
    Number of changes of depth value: 925
    First frame with a defined depth: 1124
    Last frame with a defined depth: 146108
    Number of frames with undefined depth: 3423
    Identical Planes: None

    3D-Plane #03
    NumFrames: 147333
    Minimum depth: -1
    Maximum depth: 11
    Average depth: 6.43
    Number of changes of depth value: 8
    First frame with a defined depth: 3393
    Last frame with a defined depth: 133805
    Number of frames with undefined depth: 16920
    Identical Planes: None

    3D-Plane #04
    NumFrames: 147333
    Minimum depth: 2
    Maximum depth: 11
    Average depth: 7.25
    Number of changes of depth value: 7
    First frame with a defined depth: 20290
    Last frame with a defined depth: 133805
    Number of frames with undefined depth: 33817
    Identical Planes: None

    --------------------------------------------------------------------

    The Super Mario Bros has all the subtitles on the same 3d-plane and that 3d-plane is just a fixed distance from the screen. Lazy creator and lazy maker of the disc. At least this disc has a small positive depth, you can find discs where the 3d-plane is just at screen depth. For these at screen depth it would be nice if you could override the depth and just set a fixed one to your own liking.

    3D-Plane #00
    NumFrames: 132946
    Minimum depth: 10
    Maximum depth: 10
    Average depth: 10.00
    Number of changes of depth value: 1
    First frame with a defined depth: 0
    Last frame with a defined depth: 132945
    Number of frames with undefined depth: 0
    Identical Planes: None

    --------------------------------------------------------------------

    Then you have these really unfortunate cases like The House of Magic disc. Here the creator is nWave Studios, lovers of 3D. But the maker of the disc was an idiot. There is a 3d-plane with dynamic depth but since the idiot swapped the eyes it's all inverted in relation to the video so instead of just swapping the eyes to the standard left eye first they make a fixed -12 depth 3d-plane, to make a small positive pop for the sub, and assigned that to the subtitle instead and called it a day. At least they still included the original 3d-plane so we can use that.

    3D-Plane #00
    NumFrames: 122472
    Minimum depth: -12
    Maximum depth: -12
    Average depth: -12.00
    Number of changes of depth value: 1
    First frame with a defined depth: 0
    Last frame with a defined depth: 122471
    Number of frames with undefined depth: 0
    Identical Planes: None
    *** Warning This 3D-Plane has a fixed depth of -12! ***

    3D-Plane #01
    NumFrames: 122472
    Minimum depth: 1
    Maximum depth: 50
    Average depth: 17.22
    Number of changes of depth value: 533
    First frame with a defined depth: 0
    Last frame with a defined depth: 122388
    Number of frames with undefined depth: 702
    Identical Planes: None

    Subtitle depth parsing

    Tried to try the subtitle depth parsing in the new build but had some issues. Most of the ISOs I tried played the intro in 3D then black screen. If I tried to skip it would result in instant froozen image or black screen. Audio always kept playing. If I skipped for example 10 minutes into the movie, stopped it and the resumed it would play and activate 3D but the image was 2D.

    A few of the ISOs i tried however seemed to work and most if not all the ones that had the issues above was Disney/Pixar movies.
    I will be able to get logs and even a video of the problem tomorrow if that helps :)

    Can you provide a sample file that includes varying depth in the subtitles?

    I have looked but it's been hard. I checked the example from https://kodi.wiki/view/Samples but that has static depth on the subtitles. I have a lot of ISOs but they are all around 40GB.

    But most commercial 3D Blu-rays have dynamic depth, especially from the "golden age" period around 2010-2015. Do you access to any Disney and or Pixar movies? I know for example that Cars 1, 2 and 3 all have unique 3d-plane with around 500-700 depth changes for each subttitle track.

    I will continue to look and see if I can find or produce a sample ISO.

    Thank you for making this fork :)
    I was wondering if you have any plans of adding support for rendering the subtitles at the dynamic depth according to the 3D-plane they are assigned when playing a 3D Blu-ray? Instead of just the static value you set in the Kodi settings.