deew icon indicating copy to clipboard operation
deew copied to clipboard

[REQUEST] Implement DDP Atmos encoding

Open pcroland opened this issue 1 year ago • 50 comments

pcroland avatar Aug 16 '22 19:08 pcroland

Well, the encoding only is possible from .atmos or .adm files, so...

ValZapod avatar Oct 02 '22 22:10 ValZapod

It's possible from DDP abd TrueHD aswell.

pcroland avatar Oct 02 '22 22:10 pcroland

How? Cavern? It does not like ADM done with cavern.

ValZapod avatar Oct 02 '22 22:10 ValZapod

No, with DRP and DEE.

pcroland avatar Oct 02 '22 22:10 pcroland

Well, the encoding only is possible from .atmos or .adm files, so...

What if the source is an Atmos stream?

argonan0 avatar Oct 10 '22 14:10 argonan0

What if the source is an Atmos stream?

Will be possible after Cavern applied Atmos metadata in ADM.

ValZapod avatar Oct 10 '22 14:10 ValZapod

DRP and gstreamer can decode atmos, no need to use ADM.

pcroland avatar Oct 10 '22 14:10 pcroland

gstreamer can decode atmos, no need to use ADM.

You must use ADM to encode ATMOS in Davinci or in Nuendo.

ValZapod avatar Oct 10 '22 14:10 ValZapod

+1 on this, for encoding ddp-joc from trueHD would be amazing to support

xEsteem avatar Mar 17 '23 12:03 xEsteem

@pcroland could you elaborate further what is needed to take THD and convert it to eac3 atmos? I might be able to assist.

jessielw avatar Apr 05 '23 02:04 jessielw

i really like to know that either.

hyllm avatar Apr 22 '23 17:04 hyllm

Atmos JOC is not possible from just a TrueHD source

pcroland avatar Apr 22 '23 17:04 pcroland

We actually found a way and developed it. We'll be open sourcing it in the next month or so.

jessielw avatar Apr 22 '23 17:04 jessielw

can i try? :) i am willing to pay for it. :) send pm if open for testing. :)

hyllm avatar Apr 22 '23 17:04 hyllm

Atmos JOC is not possible from just a TrueHD source

It is actually possible from the TrueHD source. If the source is untouched (had no dialnorm ran on it) it will decode to what ever preset of channels you'd like easily.

can i try? :) i am willing to pay for it. :) send pm if open for testing. :)

We actually have a stable version of it done. However, we're re-writing the tool and we'll open source it. Right now it's 1 large script and we're re writing it in OOP.

jessielw avatar Apr 22 '23 17:04 jessielw

Does it use DEE for encoding with a custom decoder or does the project have an encoder aswell?

pcroland avatar Apr 22 '23 17:04 pcroland

can't wait to test it. :) i got 5.1.2 atmos setup, so keeping large truehd with atmos is no benefit for me... 768kbps JOC will be great. :D can't wait to test. :)

hyllm avatar Apr 22 '23 17:04 hyllm

Does it use DEE for encoding with a custom decoder or does the project have an encoder aswell?

Uses a custom decoder but uses DEE to encode.

Actually we started the project based off of deew.

So totally open to working together.

jessielw avatar Apr 22 '23 17:04 jessielw

Atmos JOC is not possible from just a TrueHD source

LG C9 has no problem transcoding THD to EAC3 while preserving Atmos. And of course even now it is possible if you have both THD and EAC3 source by using EAC3 panning metadata and WAV layer from THD (by using Cavern's special secret option).

can you write more? :) i want to try. :)

hyllm avatar Apr 22 '23 17:04 hyllm

Atmos JOC is not possible from just a TrueHD source

LG C9 has no problem transcoding THD to EAC3 while preserving Atmos. And of course even now it is possible if you have both THD and EAC3 source by using EAC3 panning metadata and WAV layer from THD (by using Cavern's special secret

I'm decoding with dolbys reference player.

jessielw avatar Apr 22 '23 17:04 jessielw

We'll open source it soon. Works 100% of the time as long as THD has not been manipulated in anyway with dialnorm.

So straight from bluray it always works.

jessielw avatar Apr 22 '23 18:04 jessielw

Does it use DEE for encoding with a custom decoder or does the project have an encoder aswell?

Uses a custom decoder but uses DEE to encode.

Actually we started the project based off of deew.

So totally open to working together.

Could you write an e-mail or message me on Telegram?

pcroland avatar Apr 22 '23 18:04 pcroland

Atmos JOC is not possible from just a TrueHD source

LG C9 has no problem transcoding THD to EAC3 while preserving Atmos. And of course even now it is possible if you have both THD and EAC3 source by using EAC3 panning metadata and WAV layer from THD (by using Cavern's special secret option).

can you write more? :) i want to try. :)

Sure. EAC3 has 256 samples of silence in front so you need to add that to THD track decoded to WAV ADM, note that. Secret option is called --override-bed, I asked for it here: VoidXH/Cavern#78

whare to put the command line... what tool??? cavern64 itself is gui... or am i missing something? :)

hyllm avatar Apr 22 '23 18:04 hyllm

Cavernize GUI opens command line first, because it is compiled in Visual Studio using CLI option. Even if it has gui you can still use it as command line utility.

as long as THD has not been manipulated in anyway with dialnorm.

Does THD 4th actual (Atmos) substream uses Huffman too as EAC3 does? Did you stole the tables? Nuts, guys.

I don't understand what you're saying?

jessielw avatar Apr 22 '23 18:04 jessielw

Cavernize GUI opens command line first, because it is compiled in Visual Studio using CLI option. Even if it has gui you can still use it as command line utility. <

so merge first 256 EAC3 5.1 samples with truehd with atmos stream, then decode to adm wav??? can you write telegram/signal or PM here? i am kind of confused... but maybe i drunk too much last night. :D :D

hyllm avatar Apr 22 '23 18:04 hyllm

don't understand what you're saying?

Then how did you extract panning metadata to ADM with panning metadata? And how did you wrote the code that extracted all 16 objects from 8 channels? After that Cavern or even Davinci Resolve can be used to render it.

Dolby official libraries to decode the atmos data into what ever channel format is wanted.

jessielw avatar Apr 22 '23 18:04 jessielw

@jlw4049 e-mail or tg? 👀

pcroland avatar Apr 22 '23 18:04 pcroland

Anyone interested in it can reach me on discord.

jlw_4049#1867

jessielw avatar Apr 22 '23 18:04 jessielw

Anyone interested in it can reach me on discord.

jlw_4049#1867

sent you request

hyllm avatar Apr 22 '23 18:04 hyllm

official libraries to decode the atmos data into what ever channel format is wanted.

That is useless. Channel format is not needed by me or anyone, we need object format with panning metadata. That is closest to master format even if some of 128 objects are unified.

I guess this is useless decoded/encoded from a bluray thd track. Hmm

😀

image.png

jessielw avatar Apr 22 '23 18:04 jessielw

Also sent you a request on DC.

pcroland avatar Apr 22 '23 18:04 pcroland

or PM here

There is no PM on github. Those 256 samples are always silence, it is called encoder delay. Yes, you add 256 samples to the base layer, "bed", it will not allow you to proceed to ADM without that.

mail? discord? telegram?

hyllm avatar Apr 22 '23 18:04 hyllm

guess this is useless decoded/encoded from a bluray thd track. Hmm

That will not have any moving objects, it will be fake Atmos. Did you look with cavern driver (Unity), do the objects move after you encode EAC3?

Yes all the channels work after encoded.

jessielw avatar Apr 22 '23 18:04 jessielw

mail?

My mail is public on https://github.com/ValZapod

sent you mail

hyllm avatar Apr 22 '23 18:04 hyllm