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 > Video Encoding > MPEG-4 Encoder GUIs

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th December 2023, 00:31   #1  |  Link
Yosho
Registered User
 
Join Date: Feb 2006
Posts: 37
Need to delay DTS-HD MA track then mux to mp4

If I mux a ts with DTS-HD MA track and DV HEVC video with tsmuxer and select to delay it, then convert to mkv it stays delayed, but if I try to convert to MP4 the audio is changed back to being delayed.
What can I use to change the audio delay permanently where the delay stays for good and then can be used in MP4 conversions?
Yosho is offline   Reply With Quote
Old 6th December 2023, 00:25   #2  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,671
You would have to specify again because the offset you want is not part of the source file, but became a property of the container.
If you want the correction to be with the file: reencode.
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."
Emulgator is offline   Reply With Quote
Old 6th December 2023, 13:04   #3  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 7,076
eac3to can insert silent frames to a DTS-MA without recode it, and the delay can be preserved. For instance:

Quote:
eac3to Input.dts Output.dts +300ms
...
DTS Master Audio, 7.1 channels, 24 bits, 48kHz, dialnorm: 0dB
(core: DTS-ES, 5.1 channels, 1509kbps, 48kHz, dialnorm: 0dB)
Applying DTS delay...
A remaining delay of +2ms could not be fixed.
Creating file output.dts
...
Input.dts
Total Frames / SubF: 5614 / 5614
Duration ..........: 59882 ms (0 h. 0 m. 59.882 s.)

Output.dts
Total Frames / SubF: 5642 / 5642
Duration ..........: 60181 ms (0 h. 1 m. 0.181 s.)

eac3to add 28 silent frames of 10.666 ms, a total of 298.6 ms, for that the remaining: +2ms could not be fixed

You can do the delay +- 5 ms
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 6th December 2023, 18:52   #4  |  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 Yosho View Post
What can I use to change the audio delay permanently where the delay stays for good and then can be used in MP4 conversions?
Out of interest... Why are you using the .mp4 container?
__________________
| 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 offline   Reply With Quote
Old 7th December 2023, 12:59   #5  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,671
Quote:
eac3to can insert silent frames to a DTS-MA without recode it, and the delay can be preserved.
Top solution, will keep that in mind. Thanks, tebasuna51 !
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."
Emulgator is offline   Reply With Quote
Old 7th December 2023, 14:32   #6  |  Link
Yosho
Registered User
 
Join Date: Feb 2006
Posts: 37
Quote:
Originally Posted by SeeMoreDigital View Post
Out of interest... Why are you using the .mp4 container?
MKV is not supported on separate hardware used to view.
Yosho is offline   Reply With Quote
Old 7th December 2023, 15:00   #7  |  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 Yosho View Post
MKV is not supported on separate hardware used to view.
Really!

What hardware are you using?
__________________
| 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 offline   Reply With Quote
Old 7th December 2023, 16:18   #8  |  Link
Yosho
Registered User
 
Join Date: Feb 2006
Posts: 37
Quote:
Originally Posted by tebasuna51 View Post
eac3to can insert silent frames to a DTS-MA without recode it, and the delay can be preserved. For instance:



Input.dts
Total Frames / SubF: 5614 / 5614
Duration ..........: 59882 ms (0 h. 0 m. 59.882 s.)

Output.dts
Total Frames / SubF: 5642 / 5642
Duration ..........: 60181 ms (0 h. 1 m. 0.181 s.)

eac3to add 28 silent frames of 10.666 ms, a total of 298.6 ms, for that the remaining: +2ms could not be fixed

You can do the delay +- 5 ms
Figured it out with your help! Thanks!
Should have been using the 100ms option and changing the - to a + and changing it to +1024ms.
Yosho is offline   Reply With Quote
Old 7th December 2023, 16:23   #9  |  Link
Yosho
Registered User
 
Join Date: Feb 2006
Posts: 37
Quote:
Originally Posted by SeeMoreDigital View Post
Really!

What hardware are you using?
LG C9 USB port.
I didn't like the Shield that everyone talks about..
You have to install apps, and change settings and things, and I just don't have time to dedicate for that to be to my liking.
Yosho is offline   Reply With Quote
Old 7th December 2023, 16:42   #10  |  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 Yosho View Post
LG C9 USB port.
I didn't like the Shield that everyone talks about..
You have to install apps, and change settings and things, and I just don't have time to dedicate for that to be to my liking.
The [2019] LG C9 supports the .mkv container just fine. However, in order to hear lossless DTS-HD MA you'll need to access the TV's pass-through mode and send the DTS-HD MA bit-stream via HDMI to an AVR. Regular lossy DTS audio can be natively decoded by the TV's in-built/on-board audio decoder.

Just-so-you-know.... The C9 is the last LG television to support native decoding of lossy DTS.
__________________
| 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 offline   Reply With Quote
Old 7th December 2023, 17:27   #11  |  Link
Yosho
Registered User
 
Join Date: Feb 2006
Posts: 37
Quote:
Originally Posted by SeeMoreDigital View Post
The [2019] LG C9 supports the .mkv container just fine. However, in order to hear lossless DTS-HD MA you'll need to access the TV's pass-through mode and send the DTS-HD MA bit-stream via HDMI to an AVR. Regular lossy DTS audio can be natively decoded by the TV's in-built/on-board audio decoder.

Just-so-you-know.... The C9 is the last LG television to support native decoding of lossy DTS.
Never had a problem with DTS-HD MA myself on the C9.
But maybe I'm just playing the AC3 inside it or something?

Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5@High
HDR format : Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU
Codec ID : hev1
Codec ID/Info : High Efficiency Video Coding
Duration : 2 h 12 min
Bit rate : 16.2 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.082
Stream size : 15.0 GiB (70%)
Title :
Language : English
Tagged date : 2023-12-07 15:30:45 UTC
Color range : Full
Codec configuration box : hvcC+dvcC

Audio #1
ID : 2
Format : E-AC-3
Format/Info : Enhanced AC-3
Commercial name : Dolby Digital Plus
Codec ID : ec-3
Duration : 2 h 12 min
Bit rate mode : Constant
Bit rate : 1 024 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 968 MiB (4%)
Title : Original
Language : English
Service kind : Complete Main
Default : Yes
Alternate group : 1
Tagged date : 2023-12-07 15:30:45 UTC

Audio #2
ID : 3
Format : DTS XLL
Format/Info : Digital Theater Systems
Commercial name : DTS-HD Master Audio
Codec ID : mp4a-A9
Duration : 2 h 12 min
Bit rate mode : Variable
Bit rate : 2 034 kb/s
Maximum bit rate : 2 376 kb/s / 2 034 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Frame rate : 93.750 FPS (512 SPF)
Bit depth : 24 bits
Compression mode : Lossless
Stream size : 1.88 GiB (9%)
Language : English
Default : Yes
Alternate group : 2
Tagged date : 2023-12-07 15:30:45 UTC

Audio #3
ID : 4
Format : DTS XLL
Format/Info : Digital Theater Systems
Commercial name : DTS-HD Master Audio
Codec ID : mp4a-A9
Duration : 2 h 12 min
Bit rate mode : Variable
Bit rate : 3 672 kb/s
Maximum bit rate : 5 194 kb/s / 3 672 kb/s
Channel(s) : 6 channels
Channel layout : C L R Ls Rs LFE
Sampling rate : 48.0 kHz
Frame rate : 93.750 FPS (512 SPF)
Bit depth : 24 bits
Compression mode : Lossless
Stream size : 3.39 GiB (16%)
Language : English
Default : Yes
Alternate group : 3
Tagged date : 2023-12-07 15:30:45 UTC
Yosho is offline   Reply With Quote
Old 7th December 2023, 18:12   #12  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,248
The television will be able tell you which audio track it's accessing and playing...
__________________
| 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 offline   Reply With Quote
Old 7th December 2023, 18:25   #13  |  Link
Yosho
Registered User
 
Join Date: Feb 2006
Posts: 37
Quote:
Originally Posted by SeeMoreDigital View Post
The television will be able tell you which audio track it's accessing and playing...
Is it not supposed to be able to play them?
Yosho is offline   Reply With Quote
Old 7th December 2023, 18:33   #14  |  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 Yosho View Post
Is it not supposed to be able to play them?
The TV's media player app can access and play Dolby Digital Plus. It can also access and play the lossy DTS core embedded within a lossless DTS-HD MA stream.

Have you tried selecting between the three audio tracks?
__________________
| 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 offline   Reply With Quote
Old 7th December 2023, 18:39   #15  |  Link
Yosho
Registered User
 
Join Date: Feb 2006
Posts: 37
Quote:
Originally Posted by SeeMoreDigital View Post
The TV's media player app can access and play Dolby Digital Plus. It can also access and play the lossy DTS core embedded within a lossless DTS-HD MA stream.

Have you tried selecting between the three audio tracks?
Yep, they all work. So I'm playing the DTS core, since it shows as DTS, but not the full lossless stream because it would be useless with tv speakers?
Yosho is offline   Reply With Quote
Old 7th December 2023, 18:42   #16  |  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 Yosho View Post
Yep, they all work. So I'm playing the DTS core, since it shows as DTS, but not the full lossless stream because it would be useless with tv speakers?
Indeed...

Out of interest... Do you have an AVR capable of decoding DTS-HD MA bit-streams?
__________________
| 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 offline   Reply With Quote
Old 7th December 2023, 18:58   #17  |  Link
Yosho
Registered User
 
Join Date: Feb 2006
Posts: 37
Quote:
Originally Posted by SeeMoreDigital View Post
Indeed...

Out of interest... Do you have an AVR capable of decoding DTS-HD MA bit-streams?
I do not.
Yosho is offline   Reply With Quote
Old 7th December 2023, 19:08   #18  |  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 Yosho View Post
I do not.
In that case it's pretty pointless keeping the lossless DTS-HD MA stream. You might as well extract and keep the lossy DTS core(s).

I see from your MediaInfo report that the video stream has been encoded with Dolby Vision. This being the case you will need to mux everything into the .mp4 or .m2ts/.ts container.

If the video stream had been encoded with regular HDR10, muxing everything into the .mkv container will be fine.
__________________
| 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 offline   Reply With Quote
Old 7th December 2023, 19:46   #19  |  Link
Yosho
Registered User
 
Join Date: Feb 2006
Posts: 37
Quote:
Originally Posted by SeeMoreDigital View Post
In that case it's pretty pointless keeping the lossless DTS-HD MA stream. You might as well extract and keep the lossy DTS core(s).

I see from your MediaInfo report that the video stream has been encoded with Dolby Vision. This being the case you will need to mux everything into the .mp4 or .m2ts/.ts container.

If the video stream had been encoded with regular HDR10, muxing everything into the .mkv container will be fine.
That would make sense.

Sometimes I wonder though about if I'm seeing things or not, and some Dolby Vision is washed out or grayer blacks on P5 MP4's as well..
Yosho is offline   Reply With Quote
Old 7th December 2023, 19:59   #20  |  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 Yosho View Post
Sometimes I wonder though about if I'm seeing things or not, and some Dolby Vision is washed out or grayer blacks on P5 MP4's as well..
That's not something I can help you with as I play my Dolby Vision encoded files using an OPPO UDP-203 hardware media player...
__________________
| 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 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 01:05.


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