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 16th April 2018, 14:00   #14641  |  Link
pstn
Registered User
 
Join Date: Sep 2017
Posts: 12
Quote:
Originally Posted by r0lZ View Post
To grab the 2D movie, you have to demux the MPLS, and select the AVC video stream and the audio and subtitle streams you are interested in, and drop the MVC. If you want to demux directly the M2TS file(s), you have to locate the one that contains the AVC stream. It's easy with a good player. The M2TS files with the MVC stream cannot be played directly.

The command to demux is exactly identical to the command to demux a 2D BD, just omit the MVC stream. But personally, I would use tsMuxeR instead of eac3to to demux a BD. It has a good GUI, easy to use.

thanks buddy
pstn is offline  
Old 28th April 2018, 23:43   #14642  |  Link
Megalith
Registered User
 
Join Date: Mar 2011
Posts: 131
Anybody have issues with the audio being completely out of sync on Blu-ray titles that feature both a theatrical and extended cut? It seems as if the audio tracks between the two releases are getting mixed up...

Edit: Okay, so I looked at the log, and it isn't pretty:

[a04] Audio has a gap of 31ms at playtime 0:16:23. <WARNING>
[a04] Audio has a gap of 31ms at playtime 0:19:56. <WARNING>
[a04] Audio has a gap of 31ms at playtime 0:32:59. <WARNING>
[a04] Audio has a gap of 31ms at playtime 0:34:25. <WARNING>
[a04] Audio has a gap of 31ms at playtime 0:54:09. <WARNING>
[a04] Audio has a gap of 31ms at playtime 0:58:47. <WARNING>
[a04] Audio has a gap of 31ms at playtime 1:09:57. <WARNING>
[a04] Audio has a gap of 31ms at playtime 1:11:45. <WARNING>
[a04] Audio has a gap of 31ms at playtime 1:21:48. <WARNING>
[a04] Audio has a gap of 31ms at playtime 1:27:02. <WARNING>
[a04] Audio has a gap of 31ms at playtime 1:42:03. <WARNING>
[a04] Audio has a gap of 31ms at playtime 1:52:59. <WARNING>
[a04] Audio has a gap of 31ms at playtime 2:05:13. <WARNING>
[a04] Audio has a gap of 31ms at playtime 2:06:03. <WARNING>
[a04] Audio has a gap of 31ms at playtime 2:10:04. <WARNING>
[a04] Audio has a gap of 31ms at playtime 2:15:49. <WARNING>
[a04] Audio has a gap of 31ms at playtime 2:23:46. <WARNING>
[a04] Audio has a gap of 31ms at playtime 2:25:37. <WARNING>
[a04] Audio has a gap of 31ms at playtime 2:31:14. <WARNING>
[a04] Audio has a gap of 31ms at playtime 2:34:07. <WARNING>
[a04] Audio has a gap of 31ms at playtime 2:44:08. <WARNING>
[a10] Audio has a gap of 20ms at playtime 0:16:23. <WARNING>
[a10] Audio has a gap of 10ms at playtime 0:19:56. <WARNING>
[a10] Audio has a gap of 10ms at playtime 0:32:59. <WARNING>
[a10] Audio has a gap of 31ms at playtime 0:34:25. <WARNING>
[a10] Audio has a gap of 20ms at playtime 0:54:09. <WARNING>
[a10] Audio has a gap of 20ms at playtime 0:58:47. <WARNING>
[a10] Audio has a gap of 10ms at playtime 1:09:57. <WARNING>
[a10] Audio has a gap of 20ms at playtime 1:11:45. <WARNING>
[a10] Audio has a gap of 31ms at playtime 1:21:48. <WARNING>
[a10] Audio has a gap of 31ms at playtime 1:27:02. <WARNING>
[a10] Audio has a gap of 10ms at playtime 1:42:03. <WARNING>
[a10] Audio has a gap of 10ms at playtime 1:52:59. <WARNING>
[a10] Audio has a gap of 20ms at playtime 2:05:13. <WARNING>
[a10] Audio has a gap of 31ms at playtime 2:06:03. <WARNING>
[a10] Audio has a gap of 31ms at playtime 2:10:04. <WARNING>
[a10] Audio has a gap of 31ms at playtime 2:15:49. <WARNING>
[a10] Audio has a gap of 20ms at playtime 2:23:46. <WARNING>
[a10] Audio has a gap of 31ms at playtime 2:25:37. <WARNING>
[a10] Audio has a gap of 31ms at playtime 2:31:14. <WARNING>
[a10] Audio has a gap of 31ms at playtime 2:34:07. <WARNING>
[a10] Audio has a gap of 10ms at playtime 2:44:08. <WARNING>
[a11] Audio has a gap of 52ms at playtime 0:16:23. <WARNING>
[a11] Audio has a gap of 10ms at playtime 0:19:56. <WARNING>
[a11] Audio has a gap of 42ms at playtime 0:32:59. <WARNING>
[a11] Audio has a gap of 31ms at playtime 0:34:25. <WARNING>
[a11] Audio has a gap of 52ms at playtime 0:54:09. <WARNING>
[a11] Audio has a gap of 20ms at playtime 0:58:47. <WARNING>
[a11] Audio has a gap of 42ms at playtime 1:09:57. <WARNING>
[a11] Audio has a gap of 52ms at playtime 1:11:45. <WARNING>
[a11] Audio has a gap of 31ms at playtime 1:21:48. <WARNING>
[a11] Audio has a gap of 31ms at playtime 1:27:02. <WARNING>
[a11] Audio has a gap of 42ms at playtime 1:42:03. <WARNING>
[a11] Audio has a gap of 42ms at playtime 1:52:59. <WARNING>
[a11] Audio has a gap of 20ms at playtime 2:05:13. <WARNING>
[a11] Audio has a gap of 31ms at playtime 2:06:03. <WARNING>
[a11] Audio has a gap of 31ms at playtime 2:10:04. <WARNING>
[a11] Audio has a gap of 31ms at playtime 2:15:49. <WARNING>
[a11] Audio has a gap of 52ms at playtime 2:23:46. <WARNING>
[a11] Audio has a gap of 31ms at playtime 2:25:37. <WARNING>
[a11] Audio has a gap of 31ms at playtime 2:31:14. <WARNING>
[a11] Audio has a gap of 31ms at playtime 2:34:07. <WARNING>
[a11] Audio has a gap of 42ms at playtime 2:44:08. <WARNING>

Does this mean that the disc/release is bad? I understand that eac3to tries to fix these errors, but apparently it isn't working.

Last edited by Megalith; 28th April 2018 at 23:49.
Megalith is offline  
Old 29th April 2018, 00:19   #14643  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
@Megalith

Please put the rest of the full log.

eac3to must recover the gaps, but maybe there are other problem.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 29th April 2018, 01:36   #14644  |  Link
Megalith
Registered User
 
Join Date: Mar 2011
Posts: 131
M2TS, 2 video tracks, 8 audio tracks, 20 subtitle tracks, 2:50:56, 11.988p
1: Chapters, 28 chapters
2: h265/HEVC, 2160p24 /1.001 (16:9), 10 bits
3: h265/HEVC, 1080p24 /1.001 (16:9), 10 bits - Dolby Vision Enhancement Layer
4: DTS Master Audio, English, 7.1 channels, 24 bits, 48kHz
(core: DTS, 5.1 channels, 1509kbps, 48kHz)
5: DTS, English, 2.0 channels, 255kbps, 48kHz
6: DTS, French, 5.1 channels, 768kbps, 48kHz
7: DTS, Russian, 5.1 channels, 768kbps, 48kHz
8: DTS, Russian, 5.1 channels, 768kbps, 48kHz
9: DTS, Czech, 5.1 channels, 768kbps, 48kHz
10: AC3 Surround, English, 2.0 channels, 192kbps, 48kHz, dialnorm: -27dB
11: AC3 Surround, English, 2.0 channels, 192kbps, 48kHz, dialnorm: -27dB
12: Subtitle (PGS), English
13: Subtitle (PGS), French
14: Subtitle (PGS), Dutch
15: Subtitle (PGS), Danish
16: Subtitle (PGS), Finnish
17: Subtitle (PGS), Norwegian
18: Subtitle (PGS), Swedish
19: Subtitle (PGS), Czech
20: Subtitle (PGS), Modern Greek
21: Subtitle (PGS), English
22: Subtitle (PGS), French
23: Subtitle (PGS), Russian
24: Subtitle (PGS), Modern Greek
25: Subtitle (PGS), English
26: Subtitle (PGS), French
27: Subtitle (PGS), Russian
28: Subtitle (PGS), Modern Greek
29: Subtitle (PGS), French
30: Subtitle (PGS), Russian
31: Subtitle (PGS), Czech
Creating file "G:\00 Mux\Gladiator\Chapters_1.txt"...
[v02] Extracting video track number 2...
[a10] Extracting audio track number 10...
[s21] Extracting subtitle track number 21...
[a10] Removing AC3 dialog normalization...
[a11] Extracting audio track number 11...
[s12] Extracting subtitle track number 12...
[s25] Extracting subtitle track number 25...
[a04] Extracting audio track number 4...
[a11] Removing AC3 dialog normalization...
[v02] Creating file "G:\00 Mux\Gladiator\Audio_2_Undetermined.h265"...
[a04] Creating file "G:\00 Mux\Gladiator\Audio_4_English.DTS"...
[a10] Creating file "G:\00 Mux\Gladiator\Audio_10_English.AC3"...
[a11] Creating file "G:\00 Mux\Gladiator\Audio_11_English.AC3"...
[s21] Creating file "G:\00 Mux\Gladiator\Subtitles_21_English.sup"...
[s25] Creating file "G:\00 Mux\Gladiator\Subtitles_25_English.sup"...
[s12] Creating file "G:\00 Mux\Gladiator\Subtitles_12_English.sup"...
[a11] Skipping identical AC3 frames (seamless branching)...
[a04] Audio has a gap of 31ms at playtime 0:16:23. <WARNING>
[a04] Audio has a gap of 31ms at playtime 0:19:56. <WARNING>
[a04] Audio has a gap of 31ms at playtime 0:32:59. <WARNING>
[a04] Audio has a gap of 31ms at playtime 0:34:25. <WARNING>
[a04] Audio has a gap of 31ms at playtime 0:54:09. <WARNING>
[a04] Audio has a gap of 31ms at playtime 0:58:47. <WARNING>
[a04] Audio has a gap of 31ms at playtime 1:09:57. <WARNING>
[a04] Audio has a gap of 31ms at playtime 1:11:45. <WARNING>
[a04] Audio has a gap of 31ms at playtime 1:21:48. <WARNING>
[a04] Audio has a gap of 31ms at playtime 1:27:02. <WARNING>
[a04] Audio has a gap of 31ms at playtime 1:42:03. <WARNING>
[a04] Audio has a gap of 31ms at playtime 1:52:59. <WARNING>
[a04] Audio has a gap of 31ms at playtime 2:05:13. <WARNING>
[a04] Audio has a gap of 31ms at playtime 2:06:03. <WARNING>
[a04] Audio has a gap of 31ms at playtime 2:10:04. <WARNING>
[a04] Audio has a gap of 31ms at playtime 2:15:49. <WARNING>
[a04] Audio has a gap of 31ms at playtime 2:23:46. <WARNING>
[a04] Audio has a gap of 31ms at playtime 2:25:37. <WARNING>
[a04] Audio has a gap of 31ms at playtime 2:31:14. <WARNING>
[a04] Audio has a gap of 31ms at playtime 2:34:07. <WARNING>
[a04] Audio has a gap of 31ms at playtime 2:44:08. <WARNING>
[a10] Audio has a gap of 20ms at playtime 0:16:23. <WARNING>
[a10] Audio has a gap of 10ms at playtime 0:19:56. <WARNING>
[a10] Audio has a gap of 10ms at playtime 0:32:59. <WARNING>
[a10] Audio has a gap of 31ms at playtime 0:34:25. <WARNING>
[a10] Audio has a gap of 20ms at playtime 0:54:09. <WARNING>
[a10] Audio has a gap of 20ms at playtime 0:58:47. <WARNING>
[a10] Audio has a gap of 10ms at playtime 1:09:57. <WARNING>
[a10] Audio has a gap of 20ms at playtime 1:11:45. <WARNING>
[a10] Audio has a gap of 31ms at playtime 1:21:48. <WARNING>
[a10] Audio has a gap of 31ms at playtime 1:27:02. <WARNING>
[a10] Audio has a gap of 10ms at playtime 1:42:03. <WARNING>
[a10] Audio has a gap of 10ms at playtime 1:52:59. <WARNING>
[a10] Audio has a gap of 20ms at playtime 2:05:13. <WARNING>
[a10] Audio has a gap of 31ms at playtime 2:06:03. <WARNING>
[a10] Audio has a gap of 31ms at playtime 2:10:04. <WARNING>
[a10] Audio has a gap of 31ms at playtime 2:15:49. <WARNING>
[a10] Audio has a gap of 20ms at playtime 2:23:46. <WARNING>
[a10] Audio has a gap of 31ms at playtime 2:25:37. <WARNING>
[a10] Audio has a gap of 31ms at playtime 2:31:14. <WARNING>
[a10] Audio has a gap of 31ms at playtime 2:34:07. <WARNING>
[a10] Audio has a gap of 10ms at playtime 2:44:08. <WARNING>
[a11] Audio has a gap of 52ms at playtime 0:16:23. <WARNING>
[a11] Audio has a gap of 10ms at playtime 0:19:56. <WARNING>
[a11] Audio has a gap of 42ms at playtime 0:32:59. <WARNING>
[a11] Audio has a gap of 31ms at playtime 0:34:25. <WARNING>
[a11] Audio has a gap of 52ms at playtime 0:54:09. <WARNING>
[a11] Audio has a gap of 20ms at playtime 0:58:47. <WARNING>
[a11] Audio has a gap of 42ms at playtime 1:09:57. <WARNING>
[a11] Audio has a gap of 52ms at playtime 1:11:45. <WARNING>
[a11] Audio has a gap of 31ms at playtime 1:21:48. <WARNING>
[a11] Audio has a gap of 31ms at playtime 1:27:02. <WARNING>
[a11] Audio has a gap of 42ms at playtime 1:42:03. <WARNING>
[a11] Audio has a gap of 42ms at playtime 1:52:59. <WARNING>
[a11] Audio has a gap of 20ms at playtime 2:05:13. <WARNING>
[a11] Audio has a gap of 31ms at playtime 2:06:03. <WARNING>
[a11] Audio has a gap of 31ms at playtime 2:10:04. <WARNING>
[a11] Audio has a gap of 31ms at playtime 2:15:49. <WARNING>
[a11] Audio has a gap of 52ms at playtime 2:23:46. <WARNING>
[a11] Audio has a gap of 31ms at playtime 2:25:37. <WARNING>
[a11] Audio has a gap of 31ms at playtime 2:31:14. <WARNING>
[a11] Audio has a gap of 31ms at playtime 2:34:07. <WARNING>
[a11] Audio has a gap of 42ms at playtime 2:44:08. <WARNING>
[a04] Starting 2nd pass...
[a04] Realizing DTS gaps...
[a04] Creating file "G:\00 Mux\Gladiator\Audio_4_English.DTS"...
[a10] Starting 2nd pass...
[a10] Realizing (E-)AC3 gaps...
[a10] Creating file "G:\00 Mux\Gladiator\Audio_10_English.AC3"...
[a11] Starting 2nd pass...
[a11] Realizing (E-)AC3 gaps...
[a11] Creating file "G:\00 Mux\Gladiator\Audio_11_English.AC3"...
Video track 2 contains 245891 frames.
Video track 3 contains 245891 frames.
Subtitle track 12 contains 1453 captions.
Subtitle track 21 contains 2463 captions.
Subtitle track 25 contains 2842 captions.
eac3to processing took 35 minutes, 4 seconds.
Done.
Megalith is offline  
Old 29th April 2018, 04:17   #14645  |  Link
Megalith
Registered User
 
Join Date: Mar 2011
Posts: 131
It turns out that the sync issue isn't there when I use MakeMKV instead of Clown_BD and MKVMerge. Apparently, the problem stems from demuxing the playlist file first instead of muxing directly to MKV. I have no idea why that is.
Megalith is offline  
Old 29th April 2018, 09:33   #14646  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
I don't know if your eac3to input is a .mpls or a .m2ts.

Also I don't know the eac3to version, Clown_BD is a old GUI for eac3to, you need latest eac3to version to manage h265/HEVC BD's.
You can see how manage Clown_BD the video:
[v02] Creating file "G:\00 Mux\Gladiator\Audio_2_Undetermined.h265"...

BTW, if MakeMKV work fine problem solved.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 30th April 2018, 00:57   #14647  |  Link
Megalith
Registered User
 
Join Date: Mar 2011
Posts: 131
Yes, but I am still curious about how I would get a proper file using eac3to, as it is my preferred tool.

The file is an .m2ts, and I am using the latest version of eac3to. I have also ruled out mkvmerge being the issue.

I guess the solution is to force eac3to not to adjust the audio, but I don't know if that is possible.
Megalith is offline  
Old 30th April 2018, 08:08   #14648  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Only one m2ts directly from BD with theatrical and extended cut?

BTW you can stop the second pass with the parameter -no2ndpass, and see if work without adjust the audio.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 30th April 2018, 19:29   #14649  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,370
Hi Megalith

Muxing Multi-Edition BDs with mkvmerge don't work really well. The issue are the identical frames and maybe the audio-gaps also.

For such BDs I use eac3to to demux the audios. Like tebasuna51 wrote:
You could test a demux with the parameter "-no2ndpass".

My chapterEditor is special designed to preserve both(or more) editions of the movie in one mkv and eac3to is used to fix such issues.
hubblec4 is offline  
Old 30th April 2018, 20:50   #14650  |  Link
Megalith
Registered User
 
Join Date: Mar 2011
Posts: 131
The BD features both a theatrical and extended cut, but I am only attempting to make an MKV of the extended version. I will try the -no2ndpass parameter, assuming I can figure out how to work eac3to from the command line. (I have only ever used a GUI for eac3to.)

I made a mistake when I said I was working with an .m2ts file earlier; the input is actually an .mpls playlist file. Interestingly, I was able to drag this directly into mkvmerge to create a problem-free file, which would imply that the -no2ndpass parameter should work.
Megalith is offline  
Old 1st May 2018, 01:28   #14651  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,370
Yes mkvmerge can handle mpls playlist files and audio almost always in synch but your BD has identical frames and that shift the chapter points a little bit (not always but often) without separate demuxing the audios.
hubblec4 is offline  
Old 2nd May 2018, 00:49   #14652  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,370
Hi madshi

I know you are very busy, but could you fix this E-AC3 7.1 channel issue please?
hubblec4 is offline  
Old 4th May 2018, 17:08   #14653  |  Link
rhaz
Registered User
 
Join Date: Mar 2010
Posts: 115
Does anyone have any examples how to use -edit -loop/silence?

I can't figure out how this works and there is no examples on google.

All it says on wiki is:
Code:
-edit=0:00:00.000,0ms - any audio format loops or removes audio data at the specified runtime
-silence/-loop - forces usage of silence (or looping) for audio edits
I need to add 950ms of loop/silence at -edit=0:57:58.000,0ms
rhaz is offline  
Old 4th May 2018, 23:09   #14654  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
From the changelog.txt:

* for gaps, edits & repairs > 1000ms eac3to now inserts silence by default
* for gaps, edits & repairs < 1000ms eac3to now loops audio by default
* option "-silence" forces eac3to to insert silence instead of looping audio
* option "-loop" forces eac3to to loop audio instead of inserting silence

If you want add 950 ms of silence:

-edit=0:57:58.000,950ms -silence

If you want repeat 950 ms, like is the default (<1000ms) is enough:

-edit=0:57:58.000,950ms
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 8th May 2018, 09:52   #14655  |  Link
mini-moose
Registered User
 
Join Date: Oct 2007
Posts: 385
Quote:
Originally Posted by Megalith View Post
Anybody have issues with the audio being completely out of sync on Blu-ray titles that feature both a theatrical and extended cut? It seems as if the audio tracks between the two releases are getting mixed up...
You are having trouble with a UHD disc not a normal blu-ray.
It's been discussed here earlier on that eac3to can't create properly syncd audios from seamlessly branched UHD discs. I think it someone suggested that has to do with the ffmpeg lib it's using, and that using nero7 switch makes it better (but you probably need to have that nero installed).

Did you have more success with -no2ndpass ?

Last edited by mini-moose; 8th May 2018 at 09:54.
mini-moose is offline  
Old 9th May 2018, 17:34   #14656  |  Link
iSeries
Registered User
 
Join Date: Jan 2009
Posts: 625
Hi, any known issues updating libflac.dll to the latest version?
iSeries is offline  
Old 22nd May 2018, 13:05   #14657  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,743
Hi,
I encoded a 24 bit wav into ac3 256 kbps with eac3to and discovered that a short silence (27 ms) was added at the end
That's problematic because I have to append another sample after and I hear a gap.
I see the short silence in an audio editor (after converting back to wav).
Is there a solution with eac3to or should I use another encoder ?
Thanks.
Music Fan is offline  
Old 22nd May 2018, 13:30   #14658  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
Like many other codecs AC3 hs fixed-length frames and encoder delay. One AC3 frame is 1536 samples long so at 48 kHz you have a frame-length of 32 ms. That will be the same with every AC3 encoder. Either work in WAV format incl. the append operation and encode after or at least try to find a better (e.g. silent) spot where you can append better.
sneaker_ger is offline  
Old 22nd May 2018, 13:40   #14659  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,743
Mmh, thanks for the explanation but that's what I didn't want to read
It's strange because I cut an ac3 file in 2 parts (with mkvmerge), I modified the first (a few seconds), re-encoded it in ac3 and the silence appeared at the end.
Normally, mkvmerge can't cut in the middle of an AC3 frame, thus the new ac3 file should be as the first (a multiple of 1536 samples).
I will verify if I can add silence at the beginning (which would not be problematic in this case) to get a size being a multiple of 1536 samples.
Music Fan is offline  
Old 22nd May 2018, 13:42   #14660  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
With AC3 we usually have 5ms encoder delay. It would fit your 27ms because 32ms-5ms = 27ms. So maybe remove 5ms in the beginning.

eac3to input.wav output.ac3 -5ms
sneaker_ger 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 16:46.


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