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 > General > Audio encoding

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 13th February 2017, 17:30   #14141  |  Link
gzuz
Registered User
 
Join Date: Mar 2016
Posts: 7
Hey folks! I apologize if this is the wrong thread for my post.

I have 2 Blu-ray releases of the same movie. They're different editions.

I used eac3to to extract the video track from the first disc, and the audio/subtitle tracks from the other, for the purpose of muxing them together into an .mkv.

Unfortunately, they don't share the same length. The video from disc #1 is 8 seconds longer than the video from disc #2. So the audio track and subtitles from disc #2 are running ahead of the picture.

I calculated the exact delay, and it's 7967 ms. I used mkvmergeGUI to apply the delay in question, but to my surprise the sync was still off for ~half a second. Finally, I set it to 7217 ms and I seem to have hit the spot.. but have I?

How can I be certain that I've achieved the perfect sync? Surely there must be a better way of doing this, rather than relying on my own two eyes and guessing/assuming. Is there a method for doing this with eac3to, or perhaps some other application?

Thanks in advance!
gzuz is offline  
Old 13th February 2017, 17:49   #14142  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,744
Is it the same cut and the same framerate for both versions ?
Music Fan is offline  
Old 13th February 2017, 18:04   #14143  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,914
Quote:
Originally Posted by gzuz View Post
I have 2 Blu-ray releases of the same movie. They're different editions.
Then, probably, have different initial credits (~7217 ms) and maybe the end until 7967 ms.

Don't exist a easy tool to determine the exact amount of delay.
You need found the same video frame (after credits) and the time diference is the exact delay than you need.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 13th February 2017, 18:04   #14144  |  Link
gzuz
Registered User
 
Join Date: Mar 2016
Posts: 7
Quote:
Originally Posted by Music Fan View Post
Is it the same cut and the same framerate for both versions ?
Yes, they're the same. There's a Warner Brothers intro that lasts for ~8 seconds in the beginning of my video source. That's what's causing the delay.

@tebasuna51 - You're on point. How do I find the exact video frame, and thus the time difference? Thank you!

Okay (2.5hrs later),

So I managed to find a frame match in both sources:

https://postimg.org/image/lh6y3e68h/

I found the beginning and the ending of this "scene". But I'm confused:

7010 - 7024 - > 6839 - 6852

14 frames - > 13 frames

So this still shot from the movie runs for 14 frames on the first source, while on the second one it does so for 13 frames. Do I pick the first frame of each video source and subtract, or?

For example - 7010 minus 6839? What am I supposed to do? Thanks!

Last edited by gzuz; 13th February 2017 at 20:29. Reason: New information.
gzuz is offline  
Old 13th February 2017, 22:17   #14145  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,914
You have already the time (seems the same frame), the delay is:

4:52.375 - 4:45.243 = 7132 ms

You can verify if the delay is the same at end of movie, because if there are differences (14 frames - > 13 frames) along the movie you have a serious problem.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 13th February 2017, 22:54   #14146  |  Link
gzuz
Registered User
 
Join Date: Mar 2016
Posts: 7
Quote:
Originally Posted by tebasuna51 View Post
You have already the time (seems the same frame), the delay is:

4:52.375 - 4:45.243 = 7132 ms

You can verify if the delay is the same at end of movie, because if there are differences (14 frames - > 13 frames) along the movie you have a serious problem.
Thanks. I just tested with another frame and it's way off. Well, I tried.

Thanks for helping me out guys, it's appreciated!
gzuz is offline  
Old 18th February 2017, 19:52   #14147  |  Link
MeteorRain
結城有紀
 
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 894
Let me bump this up a little bit:

Any plan to support HEVC so that we can demux the audio with the correct delay?
__________________
Projects
x265 - Yuuki-Asuna-mod Download / GitHub
TS - ADTS AAC Splitter | LATM AAC Splitter | BS4K-ASS
Neo AviSynth+ filters - F3KDB | FFT3D | DFTTest | MiniDeen | Temporal Median
MeteorRain is offline  
Old 18th February 2017, 22:19   #14148  |  Link
Thunderbolt8
Registered User
 
Join Date: Sep 2006
Posts: 2,197
Quote:
Originally Posted by MeteorRain View Post
support HEVC
yes please
__________________
Laptop Lenovo Legion 5 17IMH05: i5-10300H, 16 GB Ram, NVIDIA GTX 1650 Ti (+ Intel UHD 630), Windows 10 x64, madVR (x64), MPC-HC (x64), LAV Filter (x64), XySubfilter (x64) (K-lite codec pack)
Thunderbolt8 is offline  
Old 19th February 2017, 10:17   #14149  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,779
HEVC is a format of video content streams. It has no audio in itself. It may have audio streams in parallel when multiplexed in containers like TS, MP4, MKV. In this case, it should not be very different from AVC video streams. The only difference I would imagine is a decoder delay, due to the higher complexity of the GOP structure and the video encoding algorithms. Would eac3to be able to consider that?
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline  
Old 19th February 2017, 13:11   #14150  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,914
Quote:
Originally Posted by MeteorRain View Post
Any plan to support HEVC so that we can demux the audio with the correct delay?
Of course eac3to can't extract HEVC video or manage Ultra HD Blu-ray, and is a desired feature.

BTW extract, and delay, the audio from a mkv can work even with HEVC video. At least with a simple test:

Quote:
eac3to v3.31
command line: "D:\Programa\eac3to\eac3to.exe" "D:\Temp\t\Test.mkv" 2: "D:\Temp\t\Test.mkv_2spa.ac3"
------------------------------------------------------------------------------
MKV, 1 video track, 1 audio track, 0:00:37, 24p /1.001
1: MPEGH/ISO/HEVC, English, 3840x1568p (120:49)
2: AC3, Spanish, 5.1 channels, 448kbps, 48kHz, 12000ms
Bitstream parsing for track 1 failed. <WARNING>
Demuxing this track may still produce correct results - or not. <WARNING>
[a02] Extracting audio track number 2...
[a02] Applying (E-)AC3 delay...
[a02] Creating file "D:\Temp\t\Test.mkv_2spa.ac3"...
eac3to processing took 1 second.
Done.
The extracted ac3 is OK for me.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 19th February 2017, 20:13   #14151  |  Link
MeteorRain
結城有紀
 
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 894
Code:
eac3to main.ts main.aac
TS, 1 audio track, 0:58:40
1: AAC, 2.0 channels, 198kbps, 48kHz
Track 1 is used for destination file "main.aac".
a01 Extracting audio track number 1...
a01 Creating file "main.aac"...
eac3to processing took 1 minute, 52 seconds.
Done.
It's a file recorded from TV broadcasting with HEVC Main10 video stream and AAC audio stream. It has about -450ms delay, and since eac3to can't recognize the video, it cannot figure out the actually delay.

I believe it only happens when a TS file is given, as with MKV it seems to work fine.
__________________
Projects
x265 - Yuuki-Asuna-mod Download / GitHub
TS - ADTS AAC Splitter | LATM AAC Splitter | BS4K-ASS
Neo AviSynth+ filters - F3KDB | FFT3D | DFTTest | MiniDeen | Temporal Median

Last edited by MeteorRain; 19th February 2017 at 20:45.
MeteorRain is offline  
Old 25th February 2017, 13:01   #14152  |  Link
gzuz
Registered User
 
Join Date: Mar 2016
Posts: 7
Hey again guys,

I demuxed a TrueHD stream from a BD, and eac3to reported a delay of 125ms in relation to the video stream.

That means the 125ms audio delay is originally included in the BD, correct? I assume I don't need to "fix" the delay when muxing into an. mkv, because that's how it got out of the studio.

Am I right? Thanks in advance!

Last edited by gzuz; 25th February 2017 at 16:29.
gzuz is offline  
Old 25th February 2017, 18:16   #14153  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,914
Quote:
Originally Posted by gzuz View Post
I demuxed a TrueHD stream from a BD, and eac3to reported a delay of 125ms in relation to the video stream.


Quote:
I assume I don't need to "fix" the delay when muxing into an. mkv
You need fix the delay because eac3to can't apply the delay over a TrueHD, like do automatically with other audio track.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 25th February 2017, 23:39   #14154  |  Link
gzuz
Registered User
 
Join Date: Mar 2016
Posts: 7
Quote:
Originally Posted by tebasuna51 View Post



You need fix the delay because eac3to can't apply the delay over a TrueHD, like do automatically with other audio track.

Code:
eac3to v3.31
------------------------------------------------------------------------------
M2TS, 2 video tracks, 9 audio tracks, 26 subtitle tracks, 2:20:03, 24p /1.001
1: Chapters, 40 chapters
2: VC-1, 1080p24 /1.001 (16:9)
3: VC-1, 480p24 /1.001 (3:2), 83ms
4: AC3, English, 5.1 channels, 640kbps, 48kHz, dialnorm: -27dB, 125ms
5: TrueHD/AC3, English, 5.1 channels, 48kHz, dialnorm: -27dB, 125ms
   (embedded: AC3, 5.1 channels, 640kbps, 48kHz, dialnorm: -27dB)
6: AC3, Czech, 5.1 channels, 640kbps, 48kHz, dialnorm: -27dB
7: AC3, Hungarian, 5.1 channels, 640kbps, 48kHz, dialnorm: -27dB
8: AC3, Polish, 5.1 channels, 640kbps, 48kHz, dialnorm: -27dB
9: AC3, Russian, 5.1 channels, 640kbps, 48kHz, dialnorm: -27dB
10: AC3, Thai, 5.1 channels, 640kbps, 48kHz, dialnorm: -27dB
11: AC3, Turkish, 5.1 channels, 640kbps, 48kHz, dialnorm: -27dB
12: E-AC3, English, 2.0 channels, 192kbps, 48kHz, dialnorm: -27dB, 83ms
13: Subtitle (PGS), English
14: Subtitle (PGS), Chinese
15: Subtitle (PGS), Arabic
16: Subtitle (PGS), Indonesian
17: Subtitle (PGS), Bulgarian
18: Subtitle (PGS), Croatian
19: Subtitle (PGS), Czech
20: Subtitle (PGS), Estonian
21: Subtitle (PGS), Modern Greek
22: Subtitle (PGS), Hebrew
23: Subtitle (PGS), Hungarian
24: Subtitle (PGS), Icelandic
25: Subtitle (PGS), Latvian
26: Subtitle (PGS), Lithuanian
27: Subtitle (PGS), Polish
28: Subtitle (PGS), Romanian
29: Subtitle (PGS), Russian
30: Subtitle (PGS), Serbian
31: Subtitle (PGS), Slovenian
32: Subtitle (PGS), Thai
33: Subtitle (PGS), Turkish
34: Subtitle (PGS), Czech
35: Subtitle (PGS), Hungarian
36: Subtitle (PGS), Turkish
37: Subtitle (PGS), English
38: Subtitle (PGS), Chinese
Creating file "C:\lol\chap.txt"...
[s13] Extracting subtitle track number 13...
[v02] Extracting video track number 2...
[a05] Extracting audio track number 5...
[a05] Extracting TrueHD stream...
[a05] Removing TrueHD dialog normalization...
[v02] Creating file "C:\lol\mov.vc1"...
[a05] Creating file "C:\lol\sound.thd"...
[s13] Creating file "C:\lol\eng.sup"...
Video track 2 contains 201466 frames.
Video track 3 contains 201465 frames.
Subtitle track 13 contains 1473 captions.
eac3to processing took 5 minutes, 11 seconds.
Done.
Thanks for the reply @tebasuna51. How do I proceed about applying the delay? Do I just do it via eac3to? Thank you.
gzuz is offline  
Old 26th February 2017, 04:23   #14155  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,914
eac3to can't apply delay to a thd.

When add the .thd in MkvToolNix GUI, select the track and put the Delay (125).
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 26th February 2017, 15:39   #14156  |  Link
gzuz
Registered User
 
Join Date: Mar 2016
Posts: 7
Quote:
Originally Posted by tebasuna51 View Post
eac3to can't apply delay to a thd.

When add the .thd in MkvToolNix GUI, select the track and put the Delay (125).
Thanks man. I actually thought I have to apply a negative delay. But I realized it's a positive delay when I muxed the files.

Thanks again for the help, it's appreciated!
gzuz is offline  
Old 6th March 2017, 10:42   #14157  |  Link
Weirdo
Registered User
 
Join Date: Aug 2005
Posts: 231
Is the -shutdown parameter confirmed as not working? It has never worked for me (Win 8/10, admin account).
__________________
Win 10 Pro x64
Weirdo is offline  
Old 13th March 2017, 15:07   #14158  |  Link
NanoBot
Registered User
 
Join Date: Sep 2003
Posts: 209
Hi,

i just learned that FLAC has recently been updated to version 1.3.2. Does anyone already has compiled a new libflac.dll ( to be used with eac3to ) of the new version ?
NanoBot is offline  
Old 14th March 2017, 09:10   #14159  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,779
Not yet on RareWares; asked in Hydrogenaud.io for it. The media-autobuild_suite unfortunately builds different DLLs.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline  
Old 15th March 2017, 20:10   #14160  |  Link
heerschop
Registered User
 
Join Date: Dec 2008
Posts: 23
Quote:
Originally Posted by LigH View Post
Not yet on RareWares; asked in Hydrogenaud.io for it.
Flac.dll 1.3.2 is available on RareWares.
http://www.rarewares.org/files/lossless/

flac_dll-1.3.2-git-20170314-icl.zip
flac_dll-1.3.2-git-20170314-x64-icl.zip
heerschop is offline  
Closed Thread

Tags
eac3to

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 19:54.


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