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. |
18th December 2017, 00:06 | #1 | Link |
Moderator
Join Date: Oct 2001
Posts: 20,975
|
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. Last edited by jdobbs; 26th February 2018 at 03:26. |
21st December 2017, 00:55 | #6 | Link |
Elit Amans
Join Date: Feb 2005
Location: Sweden
Posts: 275
|
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 |
21st December 2017, 11:21 | #7 | Link |
Life's clearer in 4K UHD
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,227
|
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
|
21st December 2017, 15:07 | #8 | Link | |
Moderator
Join Date: Oct 2001
Posts: 20,975
|
Quote:
5 mins? How big is the input M2TS? Just reading a 45GB file (with no changes written) on my system takes about 10 mins. |
|
21st December 2017, 15:10 | #9 | Link |
Moderator
Join Date: Oct 2001
Posts: 20,975
|
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.
|
21st December 2017, 20:22 | #11 | Link | |
Moderator
Join Date: Oct 2001
Posts: 20,975
|
Quote:
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. Last edited by jdobbs; 21st December 2017 at 20:26. |
|
22nd December 2017, 05:55 | #12 | Link |
Registered User
Join Date: Jul 2015
Posts: 33
|
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. |
22nd December 2017, 11:08 | #13 | Link |
Registered User
Join Date: Feb 2015
Posts: 43
|
Any chance you can make this work from command line without the gui?
__________________
Blu-Ray Ripper 0.112c/0.21a |
22nd December 2017, 19:16 | #17 | Link | |
Moderator
Join Date: Oct 2001
Posts: 20,975
|
Quote:
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. Last edited by jdobbs; 22nd December 2017 at 19:21. |
|
|
|