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 10th February 2013, 00:35   #12121  |  Link
frencher
French Love
 
Join Date: Oct 2008
Location: France
Posts: 456
Quote:
Originally Posted by tebasuna51 View Post
@frencher
About your question: "I wanted to know if others have had the same problem as me for demuxing 3D Bluray PGS subtitles tracks (.sup)"
Seems the answer is "Nope", at least not for me.

Please put the log file, if show any <ERROR> or <WARNING>, or more info about your problem.
One example from original PANASONIC - AVATAR 3D
My cmd line with eac3to 3.27 is:
Code:
"F:\Temp\eac3to.exe" "P:\BDMV\PLAYLIST\00854.mpls" -demux
Works without errors with tsMuxeR GUI 1.10.6

My log:
Code:
eac3to v3.27
command line: "F:\Temp\eac3to.exe"  "P:\BDMV\PLAYLIST\00854.mpls" -demux
------------------------------------------------------------------------------
M2TS, 2 video tracks, 4 audio tracks, 7 subtitle tracks, 2:41:42, 24p /1.001
1: Chapters, 53 chapters
2: h264/AVC  (left eye), 1080p24 /1.001 (16:9)
3: h264/AVC (right eye), 1080p24 /1.001 (16:9)
4: DTS Master Audio, English, 5.1 channels, 24 bits, 48kHz, -9ms
   (core: DTS, 5.1 channels, 24 bits, 1509kbps, 48kHz)
5: AC3, French, 5.1 channels, 384kbps, 48kHz, dialnorm: -27dB, -9ms
6: AC3, German, 5.1 channels, 384kbps, 48kHz, -9ms
7: AC3, Italian, 5.1 channels, 384kbps, 48kHz, -9ms
8: Subtitle (PGS), English
9: Subtitle (PGS), French
10: Subtitle (PGS), German
11: Subtitle (PGS), Italian
12: Subtitle (PGS), Dutch
13: Subtitle (PGS), Turkish
14: Subtitle (PGS), English
Creating file "00001 - Chapters.txt"...
[s14] Extracting subtitle track number 14...
[a07] Extracting audio track number 7...
[a04] Extracting audio track number 4...
[s13] Extracting subtitle track number 13...
[s10] Extracting subtitle track number 10...
[s08] Extracting subtitle track number 8...
[a05] Extracting audio track number 5...
[a06] Extracting audio track number 6...
[s11] Extracting subtitle track number 11...
[v02] Extracting video track number 2...
[s12] Extracting subtitle track number 12...
[s09] Extracting subtitle track number 9...
[v03] Extracting video track number 3...
[v03] Creating file "00001 - 3 - h264 (right eye), 1080p24.h264"...
[a06] A remaining delay of -9ms could not be fixed.
[a04] Applying DTS delay...
[a05] Removing AC3 dialog normalization...
[a04] A remaining delay of +1ms could not be fixed.
[a07] A remaining delay of -9ms could not be fixed.
[a05] A remaining delay of -9ms could not be fixed.
[v02] Creating file "00001 - 2 - h264 (left eye), 1080p24.h264"...
[a04] Creating file "00001 - 4 - DTS Master Audio, English, 5.1 channels, 24 bits, 48kHz.dtsma"...
[a06] Creating file "00001 - 6 - AC3, German, 5.1 channels, 384kbps, 48kHz.ac3"...
[a07] Creating file "00001 - 7 - AC3, Italian, 5.1 channels, 384kbps, 48kHz.ac3"...
[a05] Creating file "00001 - 5 - AC3, French, 5.1 channels, 384kbps, 48kHz.ac3"...
[s08] Creating file "00001 - 8 - Subtitle (PGS), English.sup"...
[s09] Creating file "00001 - 9 - Subtitle (PGS), French.sup"...
[s14] Creating file "00001 - 14 - Subtitle (PGS), English.sup"...
[s08] [0:00:02] The source file seems to be damaged (discontinuity).  <WARNING>
[s09] [0:00:02] The source file seems to be damaged (discontinuity).  <WARNING>
[s13] Creating file "00001 - 13 - Subtitle (PGS), Turkish.sup"...
[s10] Creating file "00001 - 10 - Subtitle (PGS), German.sup"...
[s11] Creating file "00001 - 11 - Subtitle (PGS), Italian.sup"...
[s12] Creating file "00001 - 12 - Subtitle (PGS), Dutch.sup"...
[s08] [2:33:19] The source file seems to be damaged (discontinuity).  <WARNING>
[s09] [2:41:01] The source file seems to be damaged (discontinuity).  <WARNING>
[s09] [2:41:03] The source file seems to be damaged (discontinuity).  <WARNING>
[s09] [2:41:11] The source file seems to be damaged (discontinuity).  <WARNING>
[s08] [2:41:11] The source file seems to be damaged (discontinuity).  <WARNING>
Video track 2 contains 232607 frames.
Video track 3 contains 232607 frames.
Subtitle track 8 contains 1524 normal and 83 forced captions.
Subtitle track 9 contains 1337 normal and 82 forced captions.
Subtitle track 10 contains 1379 normal and 86 forced captions.
Subtitle track 11 contains 1385 normal and 86 forced captions.
Subtitle track 12 contains 1465 captions.
Subtitle track 13 contains 1469 captions.
Subtitle track 14 contains 136 captions.
eac3to processing took 14 minutes, 54 seconds.
Done.
__________________
2013-11-29 MVC Player Free v0.0.2.6 BD & 3D BD's Player, Demuxer v0.0.0.8b, Recoder. Tutorial
Demo for MVC Player Free: Trailer 3D

3DBD's Free - v0.0.0.0005.exe Old

Programing free for all.

Last edited by frencher; 10th February 2013 at 00:41.
frencher is offline  
Old 10th February 2013, 10:29   #12122  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
@frencher
Well, maybe there are corrupt data or other problem with this BD.
I can help you with this, use tsMuxeR if work fine.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 10th February 2013, 15:22   #12123  |  Link
frencher
French Love
 
Join Date: Oct 2008
Location: France
Posts: 456
Here is a screenshot of the subtitle in question is the subtitle 3D is perhaps that eac3to to create the error.

The link to download the subtitles (PGS) .sup => HERE

__________________
2013-11-29 MVC Player Free v0.0.2.6 BD & 3D BD's Player, Demuxer v0.0.0.8b, Recoder. Tutorial
Demo for MVC Player Free: Trailer 3D

3DBD's Free - v0.0.0.0005.exe Old

Programing free for all.
frencher is offline  
Old 12th February 2013, 04:32   #12124  |  Link
Overdrive80
Anime addict
 
Overdrive80's Avatar
 
Join Date: Feb 2009
Location: Spain
Posts: 673
Hi, one question. If I use "-edit=0:01:30.054,1000ms" for insert delay on ac3 file, eac3to doesnt transcoding, do it?

In short, my question is whether decodes and encodes to insert the delay, with the consequent loss of quality
__________________
Intel i7-6700K + Noctua NH-D15 + Z170A XPower G. Titanium + Kingston HyperX Savage DDR4 2x8GB + Radeon RX580 8GB DDR5 + ADATA SX8200 Pro 1 TB + Antec EDG750 80 Plus Gold Mod + Corsair 780T Graphite

Last edited by Overdrive80; 12th February 2013 at 04:39.
Overdrive80 is offline  
Old 12th February 2013, 12:01   #12125  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
With a 48 KHz AC3 only insert 31 ac3 frames (31 x 32 ms = 992 ms), the default for 1000ms is add silence frames, if you want copy the precedent frames instead (loop) use the parameter -loop.

v3.0 (changelog)
* 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
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 12th February 2013, 15:02   #12126  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by frencher View Post
Here is a screenshot of the subtitle in question is the subtitle 3D is perhaps that eac3to to create the error.

The link to download the subtitles (PGS) .sup => HERE
Without problems with Subtitle Edit 3.2.7 and "00001 - 8 - Subtitle (PGS), English, 1524 normal captions, 83 forced captions.sup" and your image (more dificult when special font in native dialogs).

Seems a OCR issue, not related with eac3to.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 12th February 2013, 17:23   #12127  |  Link
robertcollier4
Registered User
 
Join Date: Nov 2012
Posts: 30
I recommend adding the -log="filename.log" switch to the eac3to help output as well in an effort to document all working switches.
robertcollier4 is offline  
Old 12th February 2013, 18:04   #12128  |  Link
Overdrive80
Anime addict
 
Overdrive80's Avatar
 
Join Date: Feb 2009
Location: Spain
Posts: 673
Quote:
Originally Posted by tebasuna51 View Post
With a 48 KHz AC3 only insert 31 ac3 frames (31 x 32 ms = 992 ms), the default for 1000ms is add silence frames, if you want copy the precedent frames instead (loop) use the parameter -loop.

v3.0 (changelog)
* 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
Ok, thanks.
__________________
Intel i7-6700K + Noctua NH-D15 + Z170A XPower G. Titanium + Kingston HyperX Savage DDR4 2x8GB + Radeon RX580 8GB DDR5 + ADATA SX8200 Pro 1 TB + Antec EDG750 80 Plus Gold Mod + Corsair 780T Graphite
Overdrive80 is offline  
Old 12th February 2013, 20:47   #12129  |  Link
frencher
French Love
 
Join Date: Oct 2008
Location: France
Posts: 456
Quote:
Originally Posted by tebasuna51 View Post
Without problems with Subtitle Edit 3.2.7 and "00001 - 8 - Subtitle (PGS), English, 1524 normal captions, 83 forced captions.sup" and your image (more dificult when special font in native dialogs).

Seems a OCR issue, not related with eac3to.
Code:
eac3to v3.27
command line: "F:\Temp\eac3to.exe"  "P:\BDMV\PLAYLIST\00854.mpls" -demux
I did not say there was a problem with the subtitles but when démuxing and if too much error in "eac3to v3.27" stops.
It is true that I use a translator because I am French and I have trouble with English so that my application does not mean the same thing if google translator mistranslated.
The best will be to test the BD ISO or Original 3DBD PANASONIC AVATAR.
__________________
2013-11-29 MVC Player Free v0.0.2.6 BD & 3D BD's Player, Demuxer v0.0.0.8b, Recoder. Tutorial
Demo for MVC Player Free: Trailer 3D

3DBD's Free - v0.0.0.0005.exe Old

Programing free for all.

Last edited by frencher; 14th February 2013 at 12:42.
frencher is offline  
Old 14th February 2013, 12:02   #12130  |  Link
m00c0w
Registered User
 
Join Date: Feb 2013
Posts: 2
I'm having a problem with downmixing DTS 5.1 to Stereo AC3. Every time I downmix I get a negative audio gain which makes the resulting audio too low when I remux it with the original video file.

Here are the different syntaxes that I've tried:

Code:
"G:\Apps\AV Tools\eac3to\eac3to.exe" track2_eng.dts output.ac3 -down2 -192
"G:\Apps\AV Tools\eac3to\eac3to.exe" track2_eng.dts output.ac3 -down2 -192 -normalize
"G:\Apps\AV Tools\eac3to\eac3to.exe" track2_eng.dts output.ac3 -down2 -192 +0dB
The same file is produced for each of the above command lines and the result is always the same:

Code:
DTS, 5.1 channels, 1:58:53, 24 bits, 1509kbps, 48kHz
Decoding with ArcSoft DTS Decoder...
Downmixing multi channel audio to stereo...
Encoding AC3 <192kbps> with libAften...
Creating file "output.ac3"...
Clipping detected, a 2nd pass will be necessary.  <WARNING>
Starting 2nd pass...
Decoding with ArcSoft DTS Decoder...
Downmixing multi channel audio to stereo...
Encoding AC3 <192kbps> with libAften...
Applying -3.22dB gain...
Creating file "output.ac3"...
eac3to processing took 54 minutes, 32 seconds.
Done.
What am I doing wrong?

Many thanks.
m00c0w is offline  
Old 14th February 2013, 12:20   #12131  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,340
eac3to tells you that there was clipping in the audio, and to avoid that clipping, it has to apply a negative gain (reduce volume so it doesn't clip anymore). Downmixing always has this risk.
Nothing is wrong, this is how its supposed to behave
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline  
Old 14th February 2013, 12:40   #12132  |  Link
m00c0w
Registered User
 
Join Date: Feb 2013
Posts: 2
Ah I see Is there no other way to avoid clipping other than reducing the volume of the whole audio? When I play the DTS 5.1 audio through my stereo speaker system on my PC the audio volume is fine, but after downmixing it's a lot lower. What does my PC do differently to process the 5.1 audio through stereo output?
m00c0w is offline  
Old 14th February 2013, 16:31   #12133  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by m00c0w View Post
Ah I see Is there no other way to avoid clipping other than reducing the volume of the whole audio?
Nope, is the correct way.

Quote:
When I play the DTS 5.1 audio through my stereo speaker system on my PC the audio volume is fine, but after downmixing it's a lot lower. What does my PC do differently to process the 5.1 audio through stereo output?
A lot?
We don't know what your PC does, but something wrong.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 14th February 2013, 17:05   #12134  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,751
Depends on the downmixing strategy.

The pessimistic strategy is: Downmix 6 channels with 1/6 of each volume to ensure there is no clipping. Disadvantage: Probably too quiet.

The optimistic strategy is: Downmix 6 channels with 1/sqrt(6) of each volume and trust the probability. Disadvantage: Clipping is possible.

The elaborate strategy is: Downmix 6 channels in the second pass with the factor gathered in a statistical first pass (2-pass normalization). Disadvantage: Takes more time, not real-time.

The dynamic strategy is: Downmix 6 channels and keep changing the factor with a brief look-ahead (Automatic Gain Control). Disadvantage: Pumping volume.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is online now  
Old 15th February 2013, 02:39   #12135  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,406
eac3to uses the "optimistic" strategy but switches to the "elaborate" strategy when clipping is detected, as in this case.

Last edited by Asmodian; 15th February 2013 at 05:36.
Asmodian is offline  
Old 15th February 2013, 12:48   #12136  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by Asmodian View Post
eac3to uses the "optimistic" strategy but switches to the "elaborate" strategy when clipping is detected, as in this case.
Yes, and the "optimistic" strategy is here: http://forum.doom9.org/showthread.php?p=1600695#post1600695
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 16th February 2013, 00:44   #12137  |  Link
Sparktank
47.952fps@71.928Hz
 
Sparktank's Avatar
 
Join Date: Mar 2011
Posts: 940
I've been getting a lot of quieter sources too when downmixing.
I use the simple stereo downmix because I have just my laptop speakers plus my TV. (My receiver/amplifier just had it's volume dial fall off )
Quite a few movies have such a huge difference between the dialog (which seems to be "creative" and "artistic" if they whisper) and loud action sfx.
I also notice that the music seems to be in the same volume levels as the sfx. Dialog is just a lost art in movies.

Often I'll get -7db for normalization. And quite often, clipping is always detected so a second pass is necessary.
I really don't want clipping so I allow the second pass normalization.
However, the overall drop in volume makes it quieter for playback. I really have to crank the volume on the TV set to hear everything.

I've found some helpful techniques using SoX's compand function in this thread...
http://forum.doom9.org/showthread.php?p=1589644#post1589644

It works great, for the most part.
I don't use the wavbooster app as it converts the sample rate to 44.1kHz. I don't want that. Ever.

I'm still experimenting, as each movie has different mastering applied so no single setting will fit all movies.

----
The Quesion:

Should I downmix with eac3to using -downstereo (in WAV) then use SoX to do the compand?
Or can SoX compand a 6ch WAV and then use eac3to to downmix?

What's the logical approach to downmixing to simple stereo and companding?
It almost seems weird to downmix to simple stereo with negative normalization applied (to avoid clipping) and then raise it again.
Wouldn't some of the data be lost or altered when normalized to quieter decibels, in effect creating odd audio gains during the compand?

Or am I overthinking this?
I want to downmix and compand with the least "logical" steps to alter the data as much as possible.
I have the space to do everything in WAV before converting to the final AC3 product. (Or if I get better at remembering the stdout/stdin)
I don't mind the processing time either.
__________________
Win10 (x64) build 19041
NVIDIA GeForce GTX 1060 3GB (GP106) 3071MB/GDDR5 | (r435_95-4)
NTSC | DVD: R1 | BD: A
AMD Ryzen 5 2600 @3.4GHz (6c/12th, I'm on AVX2 now!)
Sparktank is offline  
Old 16th February 2013, 01:06   #12138  |  Link
robertcollier4
Registered User
 
Join Date: Nov 2012
Posts: 30
Quote:
Originally Posted by Asmodian View Post
eac3to uses the "optimistic" strategy but switches to the "elaborate" strategy when clipping is detected, as in this case.
Quote:
Originally Posted by tebasuna51 View Post
Yes, and the "optimistic" strategy is here: http://forum.doom9.org/showthread.php?p=1600695#post1600695
This is only for -down2 right? What is the strategy for -downDpl used by eac3to? Is there any eac3to command line switch to have eac3to always use the 2-pass "elaborate" downmixing strategy by default?

Also, does using Nero 7 with -nero switch if available improve the quality of a downmix by using a different downmixing DPLII algorithm? I was under the impression that if Nero 7 AC3 decoder is used for downmixing then it might be using a higher quality commercial proprietary Dolby DPLII algorithm - is this true?

Last edited by robertcollier4; 16th February 2013 at 01:16.
robertcollier4 is offline  
Old 16th February 2013, 02:38   #12139  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,406
The link provided by tebasuna51 actually shows the downmix from all multichannel audio formats with both -down2 and -downDpl.

I believe the result from the "elaborate" method can be forced by using -normalize.
Asmodian is offline  
Old 16th February 2013, 08:25   #12140  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
The latest eac3to version always uses the "elaborate" method, for all downmixing variants.
madshi 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 09:39.


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