[Cin] In support of issue #120 (UHD blu-ray encoding/mastering)

Andrew Randrianasulu randrianasulu at gmail.com
Sat Feb 16 01:26:13 CET 2019

I found few forum posts about (non-opensource, windows) software, apparently able to fix tsmuxer output to be UHD-alike.


SM2UHD Discussion and Bug Reporting 
 This thread has been created for discussing TSM2UHD, a program to convert TSMUXER BD formatted structures for use on standalone UHD BD players.
 What is TSM2UHD?
 TSM2UHD stands for "TSMUXER to UHD".
 TSMUXER v2.6.12 has the ability to multiplex HEVC streams into a Blu-Ray disc structure. One might assume, then, that if that structure was created from a 2160p (UHD) HEVC file that is compliant with Ultra HD Blu-Ray (UHD-BD) -- it would playback on a UHD player. Unfortunately, however, that isn't the case. When TSMUXER v2.6.12 was created there was still much that hadn't been decided in the UHD-BD standard.
 The purpose of this software is to examine the output of TSMUXER v 2.6.12 and make changes that are required in order to make that structure readable and compatible with a standard UHD-BD standalone player.
 Latest Version: v1.12 (Feb 25, 2018)
 Click this link to download the latest version in a zip file.
 How to use the software:
 1. Read the software license text in LICENSE.TXT.
 2. Create a set of streams (video/audio/subtitles) that is compatible with UHD-BD. This assumes the video is 3840x2160. Be careful with bitrates! An original stream may not work -- as its maximum bitrate could exceed that of a BD-50 or BD-25 disc. I recommend you make sure the total of all streams does not exceed 50Mbs combined for BD-50 (absolutely no more than 64Mbs) and 35Mbs for BD-25. 
 3. Open TSMUXER v2.6.12 and select those streams (TSMUXER instructions are available elsewhere -- and details are not included here).
 4. Using the TSMUXER software, output a BD compatible structure to a folder on your hard drive. Let it complete its task.
 5. Run TSM2UHD, and select the folder you created in step 4. Then press the button to start execution.
 TSM2UHD will run. It will make changes to these files in the TSMUXER created folder:
 Index.bdmv, MovieObject.bdmv, the .mpls file, .clpi file, and .m2ts file.
 1. This is beta software. I tested it on my Sony UBP-X800 player and it works. There is a chance there may still be bugs... if you have issues report them here.
 2. Bitrates! Remember, An original stream may not work as is -- as its maximum bitrate could exceed that of a BD-50 or BD-25 disc. I recommend you make sure the total of all streams does not exceed 50Mbs combined for BD-50 (absolutely no more than 64Mbs) and 35Mbs for BD-25.
 3. The program has to scan the entire M2TS stream making changes to every video start code and all PMT packets. This can take a while (about 30-40 minutes on my system). I have noticed that on my player, it seems to play ok even when these updates aren't done. For that reason I have added a checkbox on the program's form that allows you to skip those updates. I highly recommend keeping it unchecked for compliance... but if you're in a hurry and want to risk it, it's your choice.
 4. I wrote this without access to the UHD-BD standard... so keep that in mind. If you run into an issue, report in this thread and I'll see what I can do. Please, don't keep asking for updates... it's freeware and I'll get to it when I have the free time. 
 Help with development of new apps:  Donations.
 Website: www.jdobbs.net 


well, looking at BD white papers ...

--------------p.14-----------                  Video streams       Primary video stream
Primary video stream is MPEG-4 AVC video stream or HEVC video stream.
The video formats shown in Table 2-3 can be used for Primary video streams. Not all BD-ROM Players support 25/50Hz video formats.

                                 Table 2-3 – Specification of BD-ROM Primary video streams
Codec               HEVC                            MPEG-4 AVC
Primary Video                       (Main 10, High Tier, Level 5.1) | (High/Main Profile, Level 4.1/4.0)
Max. bitrate        100 Mbps                    |    40 Mbps
Resolution          1920x1080, 3840x2160         |   1920x1080
Frame rate          23.976p, 24p, 25p, 50p, 59.94p, 23.976p, | 24p
Aspect ratio        16:9                    |        16:9


----------p. 16---------       Supported HDR technologies
This format defines four types of HDR video formats: BDMV HDR, Dolby Vision, SL-HDR2 and
HDR10+. The BDMV HDR is the HDR video format which is mandatory for player in this specification.
The Dolby Vision, SL-HDR2 and HDR10+ are the optional HDR video technologies for players and
discs.         BDMV HDR
The BDMV HDR format is characterized by the following properties:
•    BDMV HDR video stream is an HEVC video stream (10bit, YCbCr 4:2:0).
•    color primaries: BT.2020 with non-constant luminance
•    EOTF(Electro-Optical Transfer Function): SMPTE 2084
•    Metadata: SMPTE 2086(Mastering display color volume) metadata, Maximum Content Light
     Level (MaxCLL), and Maximum Frame-Average Light Level (MaxFALL)


see also 3 HEVC coding constraints at p. 31

There also was new release of libbluray, talks about UHD menus (1.1.0):

also this bug in mpv can add some light ...


mpv does not automatically detect UHD bluray filesystem structure  #5325


also interesting paper, talks about DV on Blu-Ray?? :


---quote (p.13)--------
4.     Direct Recording of DV Input
4.1.   Overview
   Taking advantage of the BD-RE drive’s high user transfer rate (36Mbps), the BD-RE Application Format provides an optional functionality of recording DV streams (28.8Mbps) to BD-RE disc via the i.LINK.

BD recorders that support this functionality enable users to record video material taken with a DV camcorder on BD-RE disc and take advantage of non-linear editing and other functions characteristic of disc media.

4.2.   DV Stream Recording Format
   The recording format for the DV stream conforms to the DVCR digital interface standard (IEC 61883-2) (Fig. The DV stream received through i.LINK is not re-encoded but recorded directly to disc, with aligning the beginning of the DV stream with the logical sector boundary, as shown in Fig.


(in relation to https://ffmpeg.org/pipermail/ffmpeg-user/2017-January/034965.html - "[FFmpeg-user] DV to SD Blu-ray
Terje J. Hanssen terje at nordland-teknikk.no 
 Thu Jan 19 20:19:57 EET 2017")

More information about the Cin mailing list