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. |
4th March 2022, 00:13 | #1202 | Link |
Useful n00b
Join Date: Jul 2014
Posts: 1,667
|
Hey guys, want to play around with my new utility (thdmerge) that combines a THD stream (without embedded AC3) and an AC3 stream? These two are obtained from demuxing a bluray THD stream (splitting THD and the embedded AC3) using DGDemux or DGIndexNV. This is required if you want to get a combined THD stream with seamless branching gaps correction on both the THD and AC3 streams. The resulting combined stream can then be muxed using tsmuxer. It may be useful elsewhere, for example, to convert MKVs carrying separated streams back to merged bluray format. Let me know what other related utilities I can make to help you out with THD.
http://rationalqm.us/board/viewtopic...p=15406#p15406 Feel free to use this wherever you want without restriction. If no issues come to light I'll publish the source code. Honestly, it wasn't very hard to make this. Hat tip von Suppé for pushing me to find a way to make a combined THD with gaps correction. Last edited by videoh; 7th March 2022 at 05:05. |
6th March 2022, 00:57 | #1203 | Link |
Registered User
Join Date: Apr 2010
Posts: 44
|
videoh, this needs a MacOS (Arm) binary/build and a GUI. Gettin tired of the command line tools I have (ffmpeg, USeac3toGUI, dovi_tool, mp4muxer_mac, tsmuxer). Im the Mac mini M1 (Arm) person who helped with the tsmuxer compiling errors with justdan96 and xavery. Thanks.
__________________
__________ Oppo-203 |
6th March 2022, 18:20 | #1204 | Link | |
Registered User
Join Date: Aug 2021
Location: Canada
Posts: 344
|
Quote:
Last edited by Kuler087; 6th March 2022 at 18:35. |
|
7th March 2022, 01:41 | #1205 | Link |
Useful n00b
Join Date: Jul 2014
Posts: 1,667
|
Glad you find it useful and thank you for your testing. I will release it formally with source code tomorrow. There will be an option to choose what to do if the two audio streams are not the same duration: truncate the longer one or do not truncate it.
Last edited by videoh; 7th March 2022 at 05:09. |
7th March 2022, 01:44 | #1206 | Link | |
Useful n00b
Join Date: Jul 2014
Posts: 1,667
|
Quote:
The code will be integrated into DGDemux and DGIndexNV so it will be transparent there, i.e., no need to invoke it manually. Last edited by videoh; 7th March 2022 at 04:55. |
|
7th March 2022, 20:32 | #1207 | Link |
Registered User
Join Date: Aug 2021
Location: Canada
Posts: 344
|
just to let you know that I made a 64kbps silent ac3 core and used your tool to merge it with trueHD and it works fine on my Sony x800m2.
I hope it will be implemented in tsmuxer soon Last edited by Kuler087; 8th March 2022 at 00:24. Reason: d |
8th March 2022, 16:58 | #1208 | Link |
Useful n00b
Join Date: Jul 2014
Posts: 1,667
|
Great, thank you for the update.
Version 1.1 is now released with source code. See the file thdmerge.zip contained in the DGDemux distribution: http://rationalqm.us/dgdemux/binarie...x_1.0.0.59.zip Right click and 'Save link as...'. |
9th March 2022, 20:53 | #1211 | Link |
Registered User
Join Date: Jul 2008
Posts: 6
|
Thanks so much for thdmerge! I very much appreciate it.
I've done a few attempts to reconstruct a .thd+ac3 from the separate tracks, and it seems that the merged versions don't exactly match the thd+ac3 tracks that I rip directly from disc. I would assume that reconstructing the .thd+ac3 from individual tracks should produce a file that is identical to one created by demuxing from the disc structure directly with TS muxer. To be clear, I'm not using tracks that are subject to seamless branching for this comparison. All the data seems to match, but it seems like the ac3 frames are inserted at different points in the thd track. Is there a reason for this difference? Does it matter? |
9th March 2022, 21:57 | #1212 | Link |
Useful n00b
Join Date: Jul 2014
Posts: 1,667
|
I don't think it matters. I try to keep audio sync as close as possible, i.e., the THD and AC3 frames for a given time are always close to each other in the combined stream. The bluray spec does not specify how the streams are to be interleaved. I did look at a couple bluray combined streams and there didn't seem to be much rhyme or reason to it so I didn't try to match things. I suppose if it works we can be happy.
Last edited by videoh; 9th March 2022 at 22:00. |
19th March 2022, 13:47 | #1213 | Link |
Registered User
Join Date: Jan 2020
Location: France
Posts: 28
|
Thanks for TrueHD/Atmos detection!
What a pleasure to no longer have an error message when opening a file... However, would it be possible to have the choice to keep the "pure ThrHD" tracks (without the AC3 core) separately? Something like this: THX |
19th March 2022, 14:35 | #1214 | Link |
Useful n00b
Join Date: Jul 2014
Posts: 1,667
|
yannick92, can you please upload that image somewhere and give a link? Attachments here can take ages, and people often don't keep checking for approval and soon your post is forgotten, or it gets lost in subsequent posts. Thank you.
|
19th March 2022, 18:35 | #1215 | Link | |
Registered User
Join Date: Jan 2020
Location: France
Posts: 28
|
Quote:
|
|
19th March 2022, 22:16 | #1217 | Link | |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 7,071
|
Quote:
This thread is for tsMuxer.
__________________
BeHappy, AviSynth audio transcoder. |
|
20th March 2022, 11:23 | #1219 | Link | |
Life's clearer in 4K UHD
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,248
|
Quote:
The Blu-ray disc specification requires a mandatory Dolby Digital core within the TrueHD stream. Which has been the main point of discussion for the last few months! Indeed, it could be argued that if the Matroska developers had created a way of keeping the Dolby Digital core within the TrueHD stream, we wouldn't have been in this mess in the first place
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
|
|
20th March 2022, 11:35 | #1220 | Link |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 7,071
|
In MKVToolnix it is not a choice because mkv don't support thd+ac3 and automatically split the thd+ac3 in 2 tracks.
In tsMuxer when you mux to m2ts for BD's you need the thd with ac3, a lonely thd is not supported, but you have the option of include (or extract) the ac3 only. To split thd+ac3 tracks you have mkvextract, eac3to and the DG tools. [EDIT]SeeMoreDigital is fast than me.
__________________
BeHappy, AviSynth audio transcoder. Last edited by tebasuna51; 20th March 2022 at 11:37. |
Thread Tools | Search this Thread |
Display Modes | |
|
|