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

Reply
 
Thread Tools Search this Thread Display Modes
Old 26th March 2018, 09:37   #14621  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,177
Quote:
Originally Posted by BonumMonstrum View Post
how to ONLY demux subtitles....
You can demux the subtitles exactly like any other stream.

Example: demux English subtitles from a BD playlist.

First, issue this command to inspect the content of the playlist (assuming angle 1):
Code:
path\to\eac3to.exe V:\BDMV\PLAYLIST\00200.mpls 1)
You will see something like this:
Code:
M2TS, 2 video tracks, 6 audio tracks, 4 subtitle tracks, 0:07:13, 24p /1.001
1: Chapters, 3 chapters
2: h264/AVC  (left eye), 1080p24 /1.001 (16:9)
3: h264/MVC (right eye), 1080p24 /1.001 (16:9)
4: DTS Master Audio, English, 7.1 channels, 24 bits, 48kHz
   (core: DTS, 5.1 channels, 1509kbps, 48kHz)
5: DTS Hi-Res, English, 5.1 channels, 2046kbps, 48kHz
   (core: DTS, 5.1 channels, 1509kbps, 48kHz)
6: AC3 Surround, English, 2.0 channels, 320kbps, 48kHz, -24ms
7: AC3 Surround, English, 2.0 channels, 320kbps, 48kHz, -24ms
8: AC3, French, 5.1 channels, 640kbps, 48kHz, -24ms
9: AC3, Spanish, 5.1 channels, 640kbps, 48kHz, -24ms
10: Subtitle (PGS), English
11: Subtitle (PGS), English
12: Subtitle (PGS), French
13: Subtitle (PGS), Spanish
Now, demux the subtitle streams 10 and 11:
Code:
path\to\eac3to.exe V:\BDMV\PLAYLIST\00200.mpls 1) 10: english1.sup 11: english2.sup
Works perfectly for a BD. I suppose that the same method works with any input file.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV

Last edited by r0lZ; 27th March 2018 at 10:32. Reason: Added "1)" to specify angle 1 in the eac3to command examples
r0lZ is offline   Reply With Quote
Old 26th March 2018, 09:38   #14622  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Hollola, Finland
Posts: 4,362
Quote:
Originally Posted by LigH View Post
Well, the main purpose of eac3to is processing audio streams. To demultiplex subtitles only, you may find tools better specialized in this task. It would help to know your source format (DVD Video, Blu-ray?) to suggest accordingly.
And as the subtitles are muxed into the corresponding files (m2ts, VOB, mkv etc.), eac3to needs to process the whole stream anyway so extracting only the subs is not much faster than extracting audio and subs.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 26th March 2018, 13:35   #14623  |  Link
BonumMonstrum
Registered User
 
Join Date: Mar 2018
Posts: 2
Quote:
Originally Posted by r0lZ View Post
You can demux the subtitles exactly like any other stream.

Example: demux English subtitles from a BD playlist.

First, issue this command to inspect the content of the playlist:
Code:
path\to\eac3to.exe V:\BDMV\PLAYLIST\00200.mpls 1
You will see something like this:
Code:
M2TS, 2 video tracks, 6 audio tracks, 4 subtitle tracks, 0:07:13, 24p /1.001
1: Chapters, 3 chapters
2: h264/AVC  (left eye), 1080p24 /1.001 (16:9)
3: h264/MVC (right eye), 1080p24 /1.001 (16:9)
4: DTS Master Audio, English, 7.1 channels, 24 bits, 48kHz
   (core: DTS, 5.1 channels, 1509kbps, 48kHz)
5: DTS Hi-Res, English, 5.1 channels, 2046kbps, 48kHz
   (core: DTS, 5.1 channels, 1509kbps, 48kHz)
6: AC3 Surround, English, 2.0 channels, 320kbps, 48kHz, -24ms
7: AC3 Surround, English, 2.0 channels, 320kbps, 48kHz, -24ms
8: AC3, French, 5.1 channels, 640kbps, 48kHz, -24ms
9: AC3, Spanish, 5.1 channels, 640kbps, 48kHz, -24ms
10: Subtitle (PGS), English
11: Subtitle (PGS), English
12: Subtitle (PGS), French
13: Subtitle (PGS), Spanish
Track 4 is used for destination file "1".
This audio conversion is not supported.
Now, demux the subtitle streams 10 and 11:
Code:
path\to\eac3to.exe V:\BDMV\PLAYLIST\00200.mpls 10: english1.sup 11: english2.sup
Works perfectly for a BD. I suppose that the same method works with any input file.
Thanks a lot, it works, but not perfectly for my goal: My problem was, that I couldn't get the subtitles from some sources due to some audio streams that wasn't supported - and I always only wanted the subtitles. BUT I also would like to know whether there are forced subtitles or not. Normally eac3to creates a file like

"00125 - 7 - Subtitle (PGS), English, 1080 captions" or "1080 captions, 3 Forced captions"

So the automatic naming of eac3to for files would be nice now

At least I can get the subtitles now, thanks a lot for your help!!!!
BonumMonstrum is offline   Reply With Quote
Old 26th March 2018, 14:18   #14624  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 9,239
Quote:
Originally Posted by richardpl View Post
Have you found actual EAC3 7.1 which are not test streams?

Maybe if you report such streams, there is higher chance of it being supported in FFmpeg.
There is several Blu-ray discs which use this channel setup. If you need more samples, let me know.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 27th March 2018, 07:37   #14625  |  Link
FrasierCrane
Registered User
 
Join Date: Mar 2018
Posts: 1
Issue with E-AC3 tracks?

Hi!

Whenever I try to demux a BluRay (m2ts files) containing an E-AC3 (7.1) audio track, eac3to fails. It can not even extract the core and it just aborts. See the log:

eac3to v3.34
command line: "F:\Clown_BD\eac3to\eac3to.exe" "V:" 1) 6: "T:\Clown_BD\Audio_6_German.AC3" -progressnumbers -LOG="T:\Clown_BD\LOGS\eac3to_PASS3_LOG.LOG"
------------------------------------------------------------------------------
M2TS, 1 video track, 6 audio tracks, 7 subtitle tracks, 1:45:00, 72p /1.001
1: Chapters, 28 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: DTS Master Audio, English, 7.1 channels, 24 bits, 48kHz, dialnorm: -3dB
(core: DTS, 5.1 channels, 1509kbps, 48kHz, dialnorm: -3dB)
4: DTS Hi-Res, English, 5.1 channels, 2046kbps, 48kHz, dialnorm: -3dB
(core: DTS, 5.1 channels, 1509kbps, 48kHz, dialnorm: -3dB)
5: AC3, English, 2.0 channels, 320kbps, 48kHz, dialnorm: -28dB
6: E-AC3, German, 7.1 channels, 896kbps, 48kHz, dialnorm: -27dB
(core: AC3, 5.1 channels, 512kbps, 48kHz, dialnorm: -27dB)
7: E-AC3, Italian, 7.1 channels, 896kbps, 48kHz, dialnorm: -27dB
(core: AC3, 5.1 channels, 512kbps, 48kHz, dialnorm: -27dB)
8: AC3, English, 2.0 channels, 320kbps, 48kHz, dialnorm: -27dB
9: Subtitle (PGS), English
10: Subtitle (PGS), German
11: Subtitle (PGS), Italian
12: Subtitle (PGS), English
13: Subtitle (PGS), German
14: Subtitle (PGS), Italian
15: Subtitle (PGS), English
[v02] The video bitstream framerate field doesn't seem to match the timestamps. <WARNING>
[a06] Extracting audio track number 6...
[a06] Removing AC3 dialog normalization...
[a06] Extracting E-AC3 core...
[a06] Decoding with libav/ffmpeg...
[a06] The libav decoder reported error -22 while decoding. <ERROR>
Aborted at file position 1048576. <ERROR>


What is the problem and how do I fix it? When demuxxing the other tracks, they are mostly damaged as well (especially the subtitle tracks) - this only happens when there is such an E-AC3 track present in the m2ts file.

Cheers!
FrasierCrane is offline   Reply With Quote
Old 27th March 2018, 10:17   #14626  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 5,340
The issue is already reported to madshi.

The eac3 7.1 tracks reported by eac3to like:

Quote:
6: E-AC3, German, 7.1 channels, XXXkbps, 48kHz, dialnorm: -27dB
(core: AC3, 5.1 channels, YYYkbps, 48kHz, dialnorm: -27dB)
Fails when try to extract to EAC3 with:

Quote:
eac3to "INPUT" 1) 6: output.eac3
...
[a06] Extracting audio track number 6...
[a06] Removing AC3 dialog normalization...
[a06] Applying (E-)AC3 delay failed. <ERROR>
Aborted at file position ... <ERROR>
Also fails when try to recode to AC3 (seems than can't extract the core):

Quote:
eac3to "INPUT" 1) 6: output.ac3
...
[a06] Extracting audio track number 6...
[a06] Removing AC3 dialog normalization...
[a06] Extracting E-AC3 core...
[a06] Decoding with libav/ffmpeg...
[a06] The libav decoder reported error -22 while decoding. <ERROR>
Aborted at file position ... <ERROR>
The unique workaround than work is recode the core to AC3 with a explicit -core parameter:

Quote:
eac3to "INPUT" 1) 6: output.ac3 -core
...
[a06] Extracting audio track number 6...
[a06] Extracting E-AC3 core...
[a06] Removing AC3 dialog normalization...
[a06] Decoding with libav/ffmpeg...
[a06] Remapping channels...
[a06] Encoding AC3 <640kbps> with libAften...
[a06] Creating file "output.ac3"...
Video track 1 contains X frames.
eac3to processing took Z seconds.
Done.
__________________
BeHappy, AviSynth audio transcoder, in Doom9 forums. NicAudio, BassAudio, audio decoders.
tebasuna51 is offline   Reply With Quote
Old 27th March 2018, 10:24   #14627  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,306
So it is one of the usual "notorious" Blu-ray E-AC3 streams with 5.1 AC3 core + 2 differential E-AC3 channels as substream?
__________________

German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is online now   Reply With Quote
Old 27th March 2018, 10:27   #14628  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,177
Quote:
Originally Posted by BonumMonstrum View Post
BUT I also would like to know whether there are forced subtitles or not. Normally eac3to creates a file like

"00125 - 7 - Subtitle (PGS), English, 1080 captions" or "1080 captions, 3 Forced captions"

So the automatic naming of eac3to for files would be nice now
I'm not sure I understand. eac3to (and all M2TS demuxers) cannot know if there are forced subtitles without analysing the content of the M2TS file, because that information is not stored in a header or in the MPLS file. So, you have to launch the analysis anyway, then inspect the output and manually give proper file names for the demuxed tracks. I suppose that a good GUI should be able to automate that, but with a GUI, you will have to select manually the streams you want to demux. So, unless you write yourself a tool to do exactly what you want, there will always be things to do manually.

BTW, I forgot to specify that if your M2TS is multi-angle, you have to specify the angle to demux with this (assuming angle 1):
Code:
path\to\eac3to.exe V:\BDMV\PLAYLIST\00200.mpls 1) 10: english1.sup 11: english2.sup
(I have edited my previous post accordingly.)
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV

Last edited by r0lZ; 27th March 2018 at 10:33.
r0lZ is offline   Reply With Quote
Old 27th March 2018, 16:43   #14629  |  Link
mbcd
Registered User
 
Join Date: Dec 2008
Location: Germany
Posts: 121
This is right, if you have a single forced subtitle at the end of the stream / film, you can not recognize it at beginning of the stream, so you have parse the whole stream to find it. If you dont have some addition file which contains a listing of all streams, you have to decode the complete stream.
mbcd is offline   Reply With Quote
Old 28th March 2018, 21:23   #14630  |  Link
Smithy
Registered User
 
Join Date: Apr 2015
Location: Germany
Posts: 20
Quote:
Originally Posted by LigH View Post
So it is one of the usual "notorious" Blu-ray E-AC3 streams with 5.1 AC3 core + 2 differential E-AC3 channels as substream?
The NEW DD+ @ BD have 4 (EAC3) Surround Ch's that replace the 2 Surrounds of the 5.1 AC3 Core Track when 7.1 DD+ is playing !
__________________
Nvidia GTX960 4GB AMP, 1. 27' FHD Benq / 2. 65' UHD HDR Sony XE93, madVR 0.92.12, LAV 0.71.0-17, MPC-HC 1.7.15

Last edited by Smithy; 28th March 2018 at 22:05.
Smithy is offline   Reply With Quote
Old 29th March 2018, 09:18   #14631  |  Link
SeeMoreDigital
Life looks better in HD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 11,264
After a stalled start with HD-DVD there's no doubt that Dolby Digital Plus is back and expanding it's feature-set, especially as more streaming services embrace object-based (Atmos) audio.

With Atmos in mind... Have any of you guys downloaded Dolby's 7.1.4 and 9.1.6 (DD+ with Atmos) samples, that were muxed into 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 29th March 2018, 09:22   #14632  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 9,239
Quote:
Originally Posted by Smithy View Post
The NEW DD+ @ BD have 4 (EAC3) Surround Ch's that replace the 2 Surrounds of the 5.1 AC3 Core Track when 7.1 DD+ is playing !
This is not exactly "new", this setup has been allowed on Blu-ray since forever, it was just rarely used. Still is somewhat rare, but it occurs sometimes.

All that said, FFmpeg should be able to handle this very soon. The patch is basically ready for inclusion. It should come to FFmpeg based players and tools then eventually.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders

Last edited by nevcairiel; 29th March 2018 at 09:40.
nevcairiel is offline   Reply With Quote
Old 29th March 2018, 10:05   #14633  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 5,340
Quote:
Originally Posted by nevcairiel View Post
...FFmpeg should be able to handle this very soon.
Nice to know.

BTW, I suggest a parameter to extract/decode only the 5.1 part for users of 5.1 audio equipment (like me) without need downmix.
__________________
BeHappy, AviSynth audio transcoder, in Doom9 forums. NicAudio, BassAudio, audio decoders.
tebasuna51 is offline   Reply With Quote
Old 29th March 2018, 10:18   #14634  |  Link
richardpl
Registered User
 
Join Date: Jan 2012
Posts: 60
Yes, there is already eac3_core bitstream filter in git master.
richardpl is offline   Reply With Quote
Old 29th March 2018, 14:26   #14635  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,306
Only loosely related: After more than a year, the ffmpeg trac ticket #3595 is active again ... its title got renamed.
__________________

German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is online now   Reply With Quote
Old 29th March 2018, 15:24   #14636  |  Link
richardpl
Registered User
 
Join Date: Jan 2012
Posts: 60
And everybody donated single penny.
richardpl is offline   Reply With Quote
Old 29th March 2018, 20:21   #14637  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,306
If I knew it would certainly accelerate something, I would even donate more.
__________________

German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is online now   Reply With Quote
Old 14th April 2018, 05:37   #14638  |  Link
pstn
Registered User
 
Join Date: Sep 2017
Posts: 12
does anyone know which command to use to demux a 3d bluray but isolate the 2d part?
pstn is offline   Reply With Quote
Old 14th April 2018, 08:31   #14639  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Hollola, Finland
Posts: 4,362
Quote:
Originally Posted by pstn View Post
does anyone know which command to use to demux a 3d bluray but isolate the 2d part?
Isn't the video for both eyes as its own track? IIRC the left eye stream is the "main" one to demux.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 14th April 2018, 08:47   #14640  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,306
This is true when the one eye's content is encoded as AVC video stream, and the other eye's content as MVC substream.
__________________

German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is online now   Reply With Quote
Reply

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 07:27.


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