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. |
19th October 2023, 09:40 | #61 | Link |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,890
|
A w64 file is not Atmos despite the initial source.
BTW to do a Slowdown you can use 'tempo' (preserve pitch also) or 'rate' (modify tempo and pitch) but if you use 'pitch' the duration is not changed. I test it with a wav with 12 channels and work fine.
__________________
BeHappy, AviSynth audio transcoder. Last edited by tebasuna51; 19th October 2023 at 09:51. |
16th February 2024, 23:36 | #63 | Link |
Registered User
Join Date: Mar 2016
Posts: 34
|
I have a problem with command. What is to do here?
Code:
Microsoft Windows [Version 10.0.19045.4046] (c) Microsoft Corporation. Alle Rechte vorbehalten. C:\Users\DeafYakuza-PC>python "C:\Users\DeafYakuza-PC\Downloads\Python Atmos\MY.ATMOS.py" File "C:\Users\DeafYakuza-PC\Downloads\Python Atmos\MY.ATMOS.py", line 1 atmos_decode.py -i "MY.ATMOS.thd" -c 9.1.6 ^ SyntaxError: invalid syntax C:\Users\DeafYakuza-PC> |
16th February 2024, 23:44 | #64 | Link |
Registered User
Join Date: Mar 2016
Posts: 34
|
I tried with CMD with using python location.
C:\Users\DeafYakuza-PC\Downloads\Python Atmos>python atmos_decode.py -i MY.ATMOS.thd -c 9.1.6 Traceback (most recent call last): File "C:\Users\DeafYakuza-PC\Downloads\Python Atmos\atmos_decode.py", line 70, in <module> class AtmosDecode: File "C:\Users\DeafYakuza-PC\Downloads\Python Atmos\atmos_decode.py", line 76, in AtmosDecode def decode(self, input_file: pathlib.Path, out_file: pathlib.Path | None = None): TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' C:\Users\DeafYakuza-PC\Downloads\Python Atmos> |
17th February 2024, 09:23 | #65 | Link |
QfG Group Germany
Join Date: Oct 2018
Location: Germany
Posts: 245
|
I have created a little CLI based Audio decoder (supports Atmos, too). You can download here:
https://mega.nz/folder/hwF1SJyC#UajU9fy_QAiPJCpYwE2KNQ For Atmos decoding you need installed Dolby Reference Player, for speed / amplify manipulation you need installed Avisynth+ DRC will be erased by default if you decode THD Atmos files. The Dolby Reference Player cannot erase DRC for eac3 JOC files. Simply use Cavernize for DRC Free encoding of eac3 JOC files. Fun fact, Cavernize can demux the original Atmos masterfile including the original 3D metadata, for encoding a real OBI Atmos file. Works only with eac3 JOC, no THD support.
__________________
Last edited by -QfG-; 17th February 2024 at 09:28. |
17th February 2024, 11:55 | #66 | Link | |
Formally known as .......
Join Date: Sep 2021
Location: Down Under.
Posts: 965
|
Quote:
Just one question, atm I can only encode to eac3, (which is what I wanted anyway), but how to change the option to the other types available ?? Last edited by TDS; 17th February 2024 at 12:21. |
|
18th February 2024, 02:59 | #68 | Link |
QfG Group Germany
Join Date: Oct 2018
Location: Germany
Posts: 245
|
Simply drag&drop the audio file (or supported container) over the script (Don't start the script and drop now).
After Analysing you have a little menu for changes. In the archive is a readme.txt what the options do.
__________________
|
18th February 2024, 10:12 | #69 | Link | |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,890
|
Quote:
Then you recommend use Cavernize to decode eac3 JOC files?
__________________
BeHappy, AviSynth audio transcoder. |
|
18th February 2024, 10:48 | #70 | Link |
QfG Group Germany
Join Date: Oct 2018
Location: Germany
Posts: 245
|
Yes. Cavernize Gui can decode EAC3-JOC files without DRC. Download is for freee here: https://cavern.sbence.hu/cavern/downloads.php
__________________
|
18th February 2024, 14:47 | #71 | Link | ||
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,890
|
Quote:
El sistema no puede encontrar la ruta especificada. (The system can't found the path...) 2) With thd source I try some layouts without succes: Demuxing Dolby TrueHD with Atmos [5.1.2] to WAV or; Quote:
And yes, apply DRC, the Cavernize output seems don't apply it with high volume. I use the 5.1.2 front in Cavernize [FL][FR][FC][LFE][SL][SR][TFL][TFR] but with your soft can't use that layout, only [FL][FR][FC][LFE][SL][SR][TSL][TSR] and I found differences between [SL][SR][TFL][TFR] and [SL][SR][TSL][TSR] channels. It is possible use that channel layout (like my audio system is) with your soft.
__________________
BeHappy, AviSynth audio transcoder. |
||
19th February 2024, 13:17 | #72 | Link |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,890
|
I test some samples comparing the eac3 Atmos output of Dolby Reference Player 5.1.2 and the Cavernize output 5.1.2 (front).
The wav output of Dolby Reference Player: Code:
File: C:\tmp\atmos\DolbyRefD.wav Size: 4951819344 bytes ---------------------------------------------- Header Info ChunkID .....: RIFF RiffLength ..: 656852040 (ERROR: Must be Size - 8 = 4951819336) Container ...: WAVE SubchunkID ..: fmt (Length: 40) AudioFormat .: 65534 (WAVE_FORMAT_EXTENSIBLE) NumChannels .: 8 SampleRate ..: 48000 ByteRate ....: 1536000 BlockAlign ..: 32 BitsPerSample: 32 ValidBitsPS .: 32 MaskChannels : 0 (ERROR: Invalid ChannelMask) SubType .....: 1 (Integer) SubchunkID ..: fact (Length: 4) SampleLength : 154744352 (fact Duration: 3223.84067 sec.) SubchunkID ..: data (Length: 656851968) Offset data .: 80 (WARNING: Assumed DataLength = 4951819264) Duration ....: 3223.84067 sec., (0h. 53m. 43.84067s.) ------------------------------------------------- End Info [Parsed_volumedetect_0 @ 0000019e6e5e4900] mean_volume: -43.2 dB [Parsed_volumedetect_0 @ 0000019e6e5e4900] max_volume: -12.8 dB 2) Invalid ChannelMask 3) Unexact size, the source eac3 is 53 m. 43.872 s. 4) Applied DRC until obtain a max_volume: -12.8 dB Anyway can be used after Normalize to have a correct volume. The Cavernize output: Code:
File: C:\tmp\atmos\Cavernize.wav Size: 4955308192 bytes ---------------------------------------------- Header Info ChunkID .....: RF64 RiffLength ..: 4294967295 Container ...: WAVE SubchunkID ..: ds64 (Length: 28) RiffSize ....: 4955308184 DataSize ....: 4951867392 SampleCount .: 154745856 SubchunkID ..: fmt (Length: 40) AudioFormat .: 65534 (WAVE_FORMAT_EXTENSIBLE) NumChannels .: 8 SampleRate ..: 48000 ByteRate ....: 1536000 BlockAlign ..: 32 BitsPerSample: 32 ValidBitsPS .: 32 MaskChannels : 22031 (FL FR FC LF SL SR TFL TFR) SubType .....: 3 (Float) SubchunkID ..: data (Length: 4294967295) Offset data .: 104 (WARNING: Extrachunks at end of file: 3440696 bytes) Duration ....: 3223.872 sec., (0h. 53m. 43.872s.) ------------------------------------------------- End Info [Parsed_volumedetect_0 @ 0000015d81065640] mean_volume: -29.5 dB [Parsed_volumedetect_0 @ 0000015d81065640] max_volume: 0.0 dB Correct MaskChannels and with float samples without clipping and max_volume: 0.0 dB then DRC is not applied. Comparing the channels content seems equivalents, maybe in other samples there are little differences between SL SR TFL TFR from Cavernize and the last 4 channels from DolbyRP maybe because are SL SR TSL TSR. Like my system is 5.1.2(front) (SL SR TFL TFR) I'll use and recommend Cavernize and let Dolby Reference Player for TrueHD only.
__________________
BeHappy, AviSynth audio transcoder. |
23rd February 2024, 10:25 | #75 | Link | |
Registered User
Join Date: Feb 2020
Posts: 539
|
Quote:
3) Wrong. The source EAC3 does not have 53 m. 43.872 s., because all EAC3 have priming of at least 256 samples in the start AND may have some in the end. DRP removes them correctly. 4) It is likely it is impossible to decode Dolby EAC3 (at least with Atmos) without applied DRC. Because of artefacts if not applied and in some peaks Last edited by Balling; 24th February 2024 at 06:33. |
|
23rd February 2024, 13:26 | #76 | Link | ||
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,890
|
The Cavernize output is not W64 but RF64
And Audition 2017 read it directly without problems > 4GB files. With the Dolby wrong simple wav output I need convert it to W64 or RF64 to be read correctly. Quote:
I'll make some test about this. Quote:
I don't think so, for what not apply DRC implies artifacts? Cavernize do this and output float samples without clip in all my tests. DRC can be a help for old weak players but must be a user option apply it when decode. Apply it forced is a wrong option.
__________________
BeHappy, AviSynth audio transcoder. Last edited by tebasuna51; 23rd February 2024 at 13:38. |
||
23rd February 2024, 20:42 | #77 | Link | |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,890
|
Quote:
1) Wav source of exactly 12.000000 seconds encoded to eac3 with Dolby Encoder Engine I obtain exactly 375 frames (32 ms/frame at 48000 Hz) Decoded with ffmpeg I recover exactly the same 12.000 sec. without delay. Decoded with DRP I recover also 12.000 sec but delayed 32 samples 0.667 ms. 2) Wav source of exactly 12.010000 seconds encoded to eac3 with Dolby Encoder Engine I obtain 376 frames (32 ms/frame at 48000 Hz=12.032 sec.) Decoded with ffmpeg I recover 12.032 sec. without delay and filled at end with 22 ms of silence Decoded with DRP I recover also 12.032 sec but delayed 32 samples 0.667 ms. and filled at end with 21.333 ms of silence.
__________________
BeHappy, AviSynth audio transcoder. |
|
24th February 2024, 06:35 | #78 | Link |
Registered User
Join Date: Feb 2020
Posts: 539
|
" Decoded with ffmpeg I recover 12.032 sec. without delay and filled at end with 22 ms of silence "
FFmpeg does not support removing remainder, even on aac. And you want EAC3?? "Decoded with DRP I recover also 12.000 sec but delayed 32 samples 0.667 ms." That is indeed bad then I would love your source two files and 2 files encoded by Dolby EE |
24th February 2024, 10:15 | #79 | Link | ||
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,890
|
Quote:
And DRP delay and cut the last 0.667 ms of the 12000 ms wav. Quote:
Link
__________________
BeHappy, AviSynth audio transcoder. Last edited by tebasuna51; 24th February 2024 at 10:18. |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|