[RESOLVED] What happens to embedded AC3 in truehd?

Support forum for DGDecNV
renols
Posts: 48
Joined: Tue Feb 22, 2011 3:34 am

[RESOLVED] What happens to embedded AC3 in truehd?

Post by renols » Sat May 18, 2019 6:53 am

Hi.

Maybe this has been covered, but I have not been able to find it with a search for truehd.

When I select to demux a truehd track which has an embedded AC3 track, it seems like only the truehd part gets demuxed.

What happens to the embedded AC3 stream?

Is it because dgindex doesn't detect the embedded AC3 stream, or is it just by design that only the truehd part gets demuxed?

I would like the complete truehd track including the embedded stream to be demuxed.

Is it possible or am I just missing and option somewhere?

renols

User avatar
admin
Site Admin
Posts: 4266
Joined: Thu Sep 09, 2010 3:08 pm

Re: What happens to embedded AC3 in truehd?

Post by admin » Sat May 18, 2019 10:28 am

Tell me the details of your source file and provide a sample if possible.

renols
Posts: 48
Joined: Tue Feb 22, 2011 3:34 am

Re: What happens to embedded AC3 in truehd?

Post by renols » Sat May 18, 2019 11:05 am

Hi.

Source is UHD disk.

Output from eac3to:

1: Chapters, 16 chapters
2: h265/HEVC, 2160p24 /1.001 (16:9), 10 bits
3: TrueHD/AC3 (Atmos), English, 7.1 channels, 48kHz
(embedded: AC3, 5.1 channels, 640kbps, 48kHz)
4: DTS Master Audio, English, 5.1 channels, 16 bits, 48kHz
(core: DTS, 5.1 channels, 1509kbps, 48kHz)

dgindex log file:

Stream Type: Transport [192]
Video Type: HEVC
Profile: Main 10
Level: 5.1/High
Coded Size: 3840x2160
SAR: 16x9
Display Size: 3840x2160
Frame Rate: 23.976024 fps
Colorimetry: BT.2020 [9]
Frame Structure:
Frame Type:
Coded Number: 129520
Playback Number: 129520
Frame Repeats: 0
Field Repeats: 0
Bitrate:
Bitrate (Avg):
Bitrate (Max):
Audio Stream: 1100: THD 48000 8ch [eng]
Audio Stream: 1101: DTS HDMA C+L+R+SL+SR 48 1536 [eng]
Elapsed: 0:08:12
Remain: 0:00:00
FPS:
Info: Finished!

4352: D:\audio PID 1100 48000 8ch eng.thd
4353: D:\audio PID 1101 C+L+R+SL+SR 48 1536 eng.dts

If it can be of any help, I can cut a minute or so of the m2ts file. Since full file is 83 GB or so.

There are more audios and some subs on there as well, and they are all demuxed just fine. Just the thd file seems to just demux the thd part and drop the embedded ac3.

renols

User avatar
admin
Site Admin
Posts: 4266
Joined: Thu Sep 09, 2010 3:08 pm

Re: What happens to embedded AC3 in truehd?

Post by admin » Sat May 18, 2019 11:15 am

I already asked for a sample. Why are you making me ask again?

Also, what makes you think DGIndexNV is dropping anything?

renols
Posts: 48
Joined: Tue Feb 22, 2011 3:34 am

Re: What happens to embedded AC3 in truehd?

Post by renols » Sat May 18, 2019 11:43 am

Hi.

Sorry, was not sure if you needed a sample.

http://www.mediafire.com/file/5d89c30wn ... .m2ts/file

I hope it Works. I have never used mediafire before.

If it is by design that dgindex only outputs the thd stream without the embedded AC3 stream, then it does what it is supposed to do.

Mostly TrueHD streams has an imbedded AC3 track though. So it would be nice if dgindex would extract the complete track.

Please let me know if you need any more information.

renols

User avatar
admin
Site Admin
Posts: 4266
Joined: Thu Sep 09, 2010 3:08 pm

Re: What happens to embedded AC3 in truehd?

Post by admin » Sat May 18, 2019 11:44 am

Thank you for the sample, but maybe you missed my question: What makes you think DGIndexNV is dropping anything?

I simply write out the packet data. There is no intentional design to drop anything.

User avatar
admin
Site Admin
Posts: 4266
Joined: Thu Sep 09, 2010 3:08 pm

Re: What happens to embedded AC3 in truehd?

Post by admin » Sat May 18, 2019 12:03 pm

I demuxed the THD using DGIndexNV. Then I was able to extract the core AC3 from the demuxed THD:

"C:\Standalone Apps\EAC3TO\eac3to" "uhd_sample PID 1100 48000 8ch.thd" output.ac3 -core

Also, the files demuxed by EAC3TO and DGIndexNV are identical (except that EAC3TO drops a small amount of data at the end).

So I'm not seeing any issue here.

renols
Posts: 48
Joined: Tue Feb 22, 2011 3:34 am

Re: What happens to embedded AC3 in truehd?

Post by renols » Sat May 18, 2019 12:17 pm

Hi.

Hm, then I must be doing something wrong.

the file demuxed by dgindex is much smaller than the file demuxed by eac3to.

eac3to file is 4971488816 bytes
dgindex file is 4305622576 bytes

I guess I will have to do some more testing. All I do is select the thd track in the demuxing menu, and the file I get is the small one.

Am using build 175 so should be the most recent one.

I will try to investigate why on my system the file made by dgindex is without the embedded AC3 track and much smaller than the one made by eac3to.

Must be something on my system, since you get identical files.

renols

User avatar
admin
Site Admin
Posts: 4266
Joined: Thu Sep 09, 2010 3:08 pm

Re: What happens to embedded AC3 in truehd?

Post by admin » Sat May 18, 2019 12:35 pm

OK, I did some research on all this and here are my findings:

Using EAC3TO, you can demux to one of three things (by choosing the appropriate extension):

1) file.thd: Just gives the TRUEHD stuff

2) file.ac3: Re-encodes an AC3 from the TRUEHD.

3) file.thd+ac3: Gives a stream with both THD and embedded AC3.

Now, if you do the third one, then you can extract (not re-encode) the embedded AC3 with:

eac3to file.thd+ac3 core.ac3

So you are correct and DGIndexNV only does the first of the three demux things above. I will have to do some further work to see if it is possible to support demuxing to file.thd+ac3, or perhaps just outputting the embedded AC3 directly to core.ac3.

renols
Posts: 48
Joined: Tue Feb 22, 2011 3:34 am

Re: What happens to embedded AC3 in truehd?

Post by renols » Sat May 18, 2019 12:46 pm

Hi.

Thanks for the explanation.

When just using -demux with eac3to, it looks like it does the thd+ac3 output by default then.

I have tried the sample on my other PC, and of course got the same result, and was starting to pull my hair out :-)

Anyway, dgindex does what it should do, and I am sorry for stating that it "drops" anything.

Would be great if it could also extract the AC3 part though, ending up with a thd+ac3 file. If others may only want the thd file, then maybe it can be optional?

Am using dgindex on a daily basis, and it just keeps getting better.

Thanks again for the quick support.

renols

Post Reply