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 > (HD) DVD & Blu-ray authoring

Reply
 
Thread Tools Search this Thread Display Modes
Old 28th February 2022, 10:13   #1201  |  Link
von Suppé
Registered User
 
von Suppé's Avatar
 
Join Date: Dec 2013
Posts: 639
Thanks for clarifying, a5180007.
von Suppé is offline   Reply With Quote
Old 4th March 2022, 00:13   #1202  |  Link
videoh
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.
videoh is offline   Reply With Quote
Old 6th March 2022, 00:57   #1203  |  Link
xledentaldj
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
xledentaldj is offline   Reply With Quote
Old 6th March 2022, 18:20   #1204  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 344
Quote:
Originally Posted by videoh View Post
OMG thank you so much. this is much faster than eac3to to convert THD MKV to THD+ac3 TS since it doesnt have to re-encode a core. This will save me a lot of time.

Last edited by Kuler087; 6th March 2022 at 18:35.
Kuler087 is offline   Reply With Quote
Old 7th March 2022, 01:41   #1205  |  Link
videoh
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.
videoh is offline   Reply With Quote
Old 7th March 2022, 01:44   #1206  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
Quote:
Originally Posted by xledentaldj View Post
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.
Can't test MAC/ARM so you'll have to compile your own. If you want a GUI you'll have to do that yourself as well. Should be easy for you.

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.
videoh is offline   Reply With Quote
Old 7th March 2022, 20:32   #1207  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
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
Kuler087 is offline   Reply With Quote
Old 8th March 2022, 16:58   #1208  |  Link
videoh
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...'.
videoh is offline   Reply With Quote
Old 9th March 2022, 12:53   #1209  |  Link
von Suppé
Registered User
 
von Suppé's Avatar
 
Join Date: Dec 2013
Posts: 639
@videoh:

In the UsEac3to thread I learned about the -t switch for truncating a longer audiotrack.
Are there more parameters possible in thdmerge command line?
von Suppé is offline   Reply With Quote
Old 9th March 2022, 14:12   #1210  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
Only -t is there now. Feel free to ask for anything else you need.
videoh is offline   Reply With Quote
Old 9th March 2022, 20:53   #1211  |  Link
schorman
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?
schorman is offline   Reply With Quote
Old 9th March 2022, 21:57   #1212  |  Link
videoh
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.
videoh is offline   Reply With Quote
Old 19th March 2022, 13:47   #1213  |  Link
yannick92
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:

Name:  Capture 13.PNG
Views: 1160
Size:  142.8 KB

THX
yannick92 is offline   Reply With Quote
Old 19th March 2022, 14:35   #1214  |  Link
videoh
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.
videoh is offline   Reply With Quote
Old 19th March 2022, 18:35   #1215  |  Link
yannick92
Registered User
 
Join Date: Jan 2020
Location: France
Posts: 28
Quote:
Originally Posted by videoh View Post
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.
Ok THX>>>>> https://uptobox.com/b7i4sj39rrwb
yannick92 is offline   Reply With Quote
Old 19th March 2022, 21:11   #1216  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
Ha ha, now I get:

This page is not allowed in the US
videoh is offline   Reply With Quote
Old 19th March 2022, 22:16   #1217  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 7,071
Quote:
Originally Posted by yannick92 View Post
However, would it be possible to have the choice to keep the "pure ThrHD" tracks (without the AC3 core) separately?
For what soft is your request?

This thread is for tsMuxer.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 20th March 2022, 02:02   #1218  |  Link
yannick92
Registered User
 
Join Date: Jan 2020
Location: France
Posts: 28
Quote:
Originally Posted by tebasuna51 View Post
For what soft is your request?

This thread is for tsMuxer.
Yes I know, but maybe I misunderstood myself, I just wanted to know if we could have this type of choice in TsMuxer as in MKVToolnix?
My apologies if the capture was too much...
yannick92 is offline   Reply With Quote
Old 20th March 2022, 11:23   #1219  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,248
Quote:
Originally Posted by yannick92 View Post
Yes I know, but maybe I misunderstood myself, I just wanted to know if we could have this type of choice in TsMuxer as in MKVToolnix?
Errr... No!

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 |
SeeMoreDigital is online now   Reply With Quote
Old 20th March 2022, 11:35   #1220  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
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.
tebasuna51 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 18:31.


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