Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > (HD) DVD, Blu-ray & (S)VCD > DVD Rebuilder

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th December 2017, 00:06   #1  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,006
TSM2UHD 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.

NOTES:

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

Last edited by jdobbs; 26th February 2018 at 03:26.
jdobbs is offline   Reply With Quote
Old 18th December 2017, 17:28   #2  |  Link
LowDead
Registered User
 
Join Date: Feb 2005
Location: Sweden
Posts: 141
Nice one! Thank you!

//LD
LowDead is offline   Reply With Quote
Old 19th December 2017, 19:02   #3  |  Link
geheim
Registered User
 
Join Date: Feb 2014
Posts: 58
Awesome, thank you very much! I'll be doing some tests over the next days and report any issues I may find.
geheim is offline   Reply With Quote
Old 20th December 2017, 05:36   #4  |  Link
DenisRodman
Registered User
 
Join Date: Jul 2015
Posts: 26
Well done!
DenisRodman is offline   Reply With Quote
Old 20th December 2017, 20:42   #5  |  Link
iSeries
Registered User
 
Join Date: Jan 2009
Posts: 475
Great, so this can be used for movie-only remuxes. Does it retain Dolby Vision?
iSeries is offline   Reply With Quote
Old 21st December 2017, 00:55   #6  |  Link
LowDead
Registered User
 
Join Date: Feb 2005
Location: Sweden
Posts: 141
I may have come across a bug. Whole movie took only 5min to scan and fix. In the instructions you mention about 30min.. Just to rule out user error, the m2ts box should not be ticked? Will test some more also to rule out bad rip.

//LD
LowDead is offline   Reply With Quote
Old 21st December 2017, 11:21   #7  |  Link
SeeMoreDigital
Life looks better in HD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 11,251
Quote:
Originally Posted by iSeries View Post
...Does it retain Dolby Vision?
Nope...
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 21st December 2017, 15:07   #8  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,006
Quote:
Originally Posted by LowDead View Post
I may have come across a bug. Whole movie took only 5min to scan and fix. In the instructions you mention about 30min.. Just to rule out user error, the m2ts box should not be ticked? Will test some more also to rule out bad rip.

//LD
It should not be ticked.

5 mins? How big is the input M2TS? Just reading a 45GB file (with no changes written) on my system takes about 10 mins.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net
jdobbs is offline   Reply With Quote
Old 21st December 2017, 15:10   #9  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,006
Quote:
Originally Posted by iSeries View Post
Great, so this can be used for movie-only remuxes. Does it retain Dolby Vision?
That would depend on whether TSMUXER handles it. This software doesn't do the muxing, it just corrects type and format flags, version numbers, PMT entries, and start codes in order to make it recognizable by a UHD player.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net
jdobbs is offline   Reply With Quote
Old 21st December 2017, 18:39   #10  |  Link
DenisRodman
Registered User
 
Join Date: Jul 2015
Posts: 26
jdobbs,
Maybe add support for all files.

Can you add conversion support also for files:

- CERTIFICATE\id.bdmv
- BDMV\AUXDATA\sound.bdmv
- BDMV\BDJO\00000.bdjo
DenisRodman is offline   Reply With Quote
Old 21st December 2017, 20:22   #11  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,006
Quote:
Originally Posted by DenisRodman View Post
jdobbs,
Maybe add support for all files.

Can you add conversion support also for files:

- CERTIFICATE\id.bdmv
- BDMV\AUXDATA\sound.bdmv
- BDMV\BDJO\00000.bdjo
They don't exist in a structure created by TSMUXER.

It's not that hard to find and replace those version headers, but could you please explain how you are using this S/W that might need that? I could understand if you are talking about the version of BD-RB I'm working on -- but I don't see how those could exist here.

Are you trying to restructure a full disc by hand and then run this on it? If so -- I'd think the version headers would already be correct for those files.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net

Last edited by jdobbs; 21st December 2017 at 20:26.
jdobbs is offline   Reply With Quote
Old 22nd December 2017, 05:55   #12  |  Link
DenisRodman
Registered User
 
Join Date: Jul 2015
Posts: 26
jdobbs,

I was thinking of trying to remultiplex a regular Blu-ray disc with a menu under the new format of the UHD BD. To do this, I used your program and saw that your program does not correct all files. So I suggested adding support for other files.
DenisRodman is offline   Reply With Quote
Old 22nd December 2017, 11:08   #13  |  Link
Bandits
Registered User
 
Join Date: Feb 2015
Posts: 26
Any chance you can make this work from command line without the gui?
__________________
Blu-Ray Ripper 0.111
Bandits is offline   Reply With Quote
Old 22nd December 2017, 12:05   #14  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 4,945
Does it work with x265 output? You mentioned here that you encountered troubles.
sneaker_ger is offline   Reply With Quote
Old 22nd December 2017, 13:50   #15  |  Link
wolflop
Registered User
 
Join Date: Sep 2009
Posts: 14
I have created a BD structure with the tsmuxer (UHD mkv). Then edited as specified with the TSMUhdmuxer. Unfortunately, only audio and no picture is playable on the player
wolflop is offline   Reply With Quote
Old 22nd December 2017, 18:35   #16  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,006
Quote:
Originally Posted by Bandits View Post
Any chance you can make this work from command line without the gui?
Sure. It may be a little while. though. Definitely after Christmas/New Year.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net

Last edited by jdobbs; 22nd December 2017 at 19:23.
jdobbs is offline   Reply With Quote
Old 22nd December 2017, 19:16   #17  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,006
Quote:
Originally Posted by sneaker_ger View Post
Does it work with x265 output? You mentioned here that you encountered troubles.
Yes, but...

1. I went back through the mux software I'd created when using the X265 stream and found a difference, with a fix to that I got a picture.

2. It played video then, but had serious "stuttering" issues with all of the examples I'd found. So I went through the entire set of CLI values and discovered that my player wouldn't playback smoothly unless the stream had open gops. I also found that I had to disable b-pyramid. That made no sense to me... but there it was. There were also several other tweaks I had to include to get smooth playback (see below)...

3. I couldn't use "--uhd-bd" because it would force settings that cause stutter. So I manually set it's other parameters

So now I'm at a point at which I'm using this line for recording (of course some things like bitrate can change):

ffmpeg.exe -probesize 100MB -i "\path\to\source.m2ts" -an -r 23.976
-pix_fmt yuv420p10le -f yuv4mpegpipe -strict -1 - | "x265.exe" -
--preset medium --input-depth 10 --output-depth 10 --vbv-bufsize
30000 --vbv-maxrate 35000 --level-idc 51 --bframes 3 --ref 3
--slices 4 --no-b-pyramid --repeat-headers --chromaloc 2 --aud
--hrd --min-keyint 1 --colorprim bt2020 --transfer smpte2084
--colormatrix bt2020nc --max-cll "1000,400" --master-display
"G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,1)"
--fps 23.976 --sar 1:1 --qpfile "\path\to\chapters.CHP" --keyint 24
--bitrate 34653 --y4m --output "output.hevc"

4. But... there is still an issue. I can encode (very slowly) with this line, then use TSMUXER and TSM2UHD to create a structure -- and the output plays back fine on my Sony standalone.

If though, I try to use that structure as input to another encode -- it starts stuttering again on the grandchild copy. That makes me suspicious of the "successful" encode. I think it may have something to do with the FFMPEG line -- because I don't have that problem if I use AVS2YUV the second time... (but I do lose 10 bit/HDR since AVISYNTH is 8 bit).

So I'm not 100% there yet. I'm hoping others will try different things, use TSM2UHD, and report back results on other players -- and maybe some of this will become clearer. Maybe they can also find something in this command line that needs changing too.

It sure would be easier if I had the spec.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net

Last edited by jdobbs; 22nd December 2017 at 19:21.
jdobbs is offline   Reply With Quote
Old 22nd December 2017, 20:25   #18  |  Link
gonca
Registered User
 
Join Date: Jul 2012
Location: Scarborough, Canada
Posts: 769
Would you consider using Vapoursynth?
gonca is offline   Reply With Quote
Old 22nd December 2017, 20:53   #19  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,006
Quote:
Originally Posted by gonca View Post
Would you consider using Vapoursynth?
Don't know enough about it to say.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net
jdobbs is offline   Reply With Quote
Old 22nd December 2017, 21:07   #20  |  Link
gonca
Registered User
 
Join Date: Jul 2012
Location: Scarborough, Canada
Posts: 769
You can use AVS filters and still have full depth (>8 bit) support
gonca is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:10.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.