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 15th December 2018, 09:44   #14741  |  Link
mkver
Registered User
 
Join Date: May 2016
Posts: 197
This means that either something is wrong with your source or that something is wrong with ffmpeg's decoder. The best place to continue would probably be ffmpeg's bugtracker.
What happens if you use the new truehd_core bitstream filter (designed to drop atmos extensions; usage: ffmpeg -i <inputfile> -vn -sn -c:a copy -bsf:a truehd_core -f <outputfile>)?
If the errors always happen at the same place, you could upload just the few seconds of the track for an issue. (Btw: Does this Bluray use seamess branching and is the error at a branchpoint?)
mkver is offline  
Old 15th December 2018, 11:05   #14742  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by mkver View Post
This means that either something is wrong with your source or that something is wrong with ffmpeg's decoder. The best place to continue would probably be ffmpeg's bugtracker.
What happens if you use the new truehd_core bitstream filter (designed to drop atmos extensions; usage: ffmpeg -i <inputfile> -vn -sn -c:a copy -bsf:a truehd_core -f <outputfile>)?

Thx for the tip! To what can I output the TrueHD stream, though? FFmpeg won't let me output it to .wav (probably because wav is 6 channels only, iirc). I will need a stream I can downmix with eac3to (-down6) again.
__________________
Gorgeous, delicious, deculture!
asarian is offline  
Old 15th December 2018, 11:50   #14743  |  Link
mkver
Registered User
 
Join Date: May 2016
Posts: 197
The reason that ffmpeg won't let you mux the truehd stream into wav is because wav is a container for uncompressed PCM data, not for truehd data. You can e.g. mux it into Matroska. Just use a file with a "mka" extension and ffmpeg will know that you want to mux into Matroska.

Also keep in mind that if you intend to open a ticket in ffmpeg's bugtracker, you need to provide the truehd track with the atmos extension (or at least a snippet of it that allows to reproduce the issue).
mkver is offline  
Old 15th December 2018, 12:02   #14744  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by asarian View Post
Same here
Same to what?

Quote:
eac3to.exe valerian.m2ts 2: c:\video\temp.pcm -down6
MKV, 1 video track, 2 audio tracks, 3 subtitle tracks, 2:17:25, 24p /1.001
1: h265/HEVC, 2160p24 /1.001 (16:9), 10 bits
2: TrueHD (Atmos), English, 7.1 channels, 48kHz, 2419ms
"TrueHD Atmos 7.1"
3: AC3 EX, English, 5.1 channels, 640kbps, 48kHz, 2419ms
"AC-3 5.1-EX"
...
[truehd @ 026336c0] Lossless check failed - expected 00, calculated 78.
Is a m2ts or a mkv?

Please don't use .pcm, use .w64 or .wav instead.

Some messages can be ignored.

Quote:
, but I can't extract the Atmos stream with tsMuxer first (as it doesn't recognize it).
tsMuxeR is a muxer, to extract use eac3to or ffmpeg or mkvextract if it is a mkv.

Quote:
Originally Posted by asarian View Post
FFmpeg won't let me output it to .wav (probably because wav is 6 channels only, iirc). I will need a stream I can downmix with eac3to (-down6) again.
wav can have more than 6 channels, but can't be greater than 4 GB (limit for strict wav format) use .w64

If: eac3to valerian.m2ts 2: c:\video\temp.w64

and: ffmpeg -i valerian.m2ts -vn -acodec pcm_s24le c:\video\temp.w64

produce the same messages and output you can ignore them or assume is a corrupt input.

After that you can downmix the w64 (recommended with MeGUI or BeHappy).
__________________
BeHappy, AviSynth audio transcoder.

Last edited by tebasuna51; 15th December 2018 at 12:09. Reason: typo
tebasuna51 is offline  
Old 15th December 2018, 15:40   #14745  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by tebasuna51 View Post

Is a m2ts or a mkv?
Good catch. Too used to .m2ts files. This test actually was on the mkverge .mkv version of the .m2ts (video and audio only), on my media server. You got me thinking, though, that maybe it got corrupted somehow. I just loaded up the disc again, but it makes no difference: about the same amount of errors.

Quote:
Please don't use .pcm, use .w64 or .wav instead.
What's wrong with .pcm?! I always convert every 7.1 source to .pcm (with -down6). .pcm is supposed to be lossless, right?

Quote:
If: eac3to valerian.m2ts 2: c:\video\temp.w64

and: ffmpeg -i valerian.m2ts -vn -acodec pcm_s24le c:\video\temp.w64

produce the same messages and output you can ignore them or assume is a corrupt input.

After that you can downmix the w64 (recommended with MeGUI or BeHappy).
Hmm, that's sad: the latest ffmpeg also produces the same errors. So, maybe I should file a small bug report with them; but, in all honesty, I can't hear any errors at all; so maybe I'll just forget about it.
__________________
Gorgeous, delicious, deculture!
asarian is offline  
Old 15th December 2018, 22:35   #14746  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
Raw PCM has no header. No information which sample rate, which bit depth, which number format, how many channels, which channel layout ... no details, only a byte stream of sample data. You will have to tell a reading application every attribute, or it won't be able to interpret the byte stream.

WAV has a header but is limited to 32 bit size fields (max. 4 GB); W64 expands this limit.

FLAC is losslessly compressed.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid

Last edited by LigH; 15th December 2018 at 22:38.
LigH is offline  
Old 16th December 2018, 02:36   #14747  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by LigH View Post
Raw PCM has no header. No information which sample rate, which bit depth, which number format, how many channels, which channel layout ... no details, only a byte stream of sample data. You will have to tell a reading application every attribute, or it won't be able to interpret the byte stream.

WAV has a header but is limited to 32 bit size fields (max. 4 GB); W64 expands this limit.

FLAC is losslessly compressed.
Thanks. Thing is, .mkv is just an intermediate stage for me: eventually everything gets muxed to an .m2ts container again. So, it kinda needs to stay LPCM (for which I then use the good old Pcm2Tsmu, to get tsMuxer to accept it).
__________________
Gorgeous, delicious, deculture!
asarian is offline  
Old 16th December 2018, 12:46   #14748  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by asarian View Post
...then use the good old Pcm2Tsmu, to get tsMuxer to accept it.
Thanks, I write Pcm2Tsmu for that, but last tsMuxeR versions accept already .w64 like pcm input greater 4 GB.

Pcm2Tsmu is old and obsolete now.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 16th December 2018, 13:09   #14749  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by tebasuna51 View Post
Thanks, I write Pcm2Tsmu for that, but last tsMuxeR versions accept already .w64 like pcm input greater 4 GB.

Pcm2Tsmu is old and obsolete now.
Hehe, didn't even realize you wrote Pcm2Tsmu. Thanks for that! It's been an instrumental tool!

And yeah, even a 5.1 LPCM stream is nearly 7G. So, good tip on using .w64 format.
__________________
Gorgeous, delicious, deculture!
asarian is offline  
Old 21st December 2018, 18:33   #14750  |  Link
Doom195051
Registered User
 
Join Date: Jul 2018
Posts: 1
I have a bunch of MKVs with FLAC audio (varying from FLAC 1.0, 2.0 and 7.1) that I want to convert to DTS-HD MA.

I thought i could attempt to do this with eac3to alongside the arcsoft, surcode or DTS-HD Master Suite software. I'm running Windows 10 FYI.

Has anyone had good experience with latest windows trying to get this done? I run eac3to (using the UsEac3to GUI) and select the functionality to convert Track #2: FLAC to DTS from within eac3to.

I always end up getting the error: "Pressing the Surcode "Encode" button didn't seem to work..." I tried making the file names 1 character long and on a very short file path (i.e. F:/Movies/a.mkv) but still get the same error, on either 1.0.21 or 1.0.29 Surcode version.

I thought...well how about I just convert the FLAC to wavs (I tried it on a mono FLAC giving me just one center .wav file) then run it through Surcode...well Surcode converts that center mono file into a five channel DTS track (which I can successfully mux with the video but I feel like this is wrong...).

So lastly, I wanted to try with the actual DTS-HD Master Suite software, which seems like the most viable. I tried converting the single center channel .wav file but the encode just seems frozen in my queue as pending...


So any idea what would be the best way to tackle my goal of converting FLAC 1.0/2.0/7.1 from an MKV into DTS-HD MA 1.0/2.0/7.1 (respectively) in an MKV?

I saw this which seemed to indicate people don't reccommend DTS-HD Master Suite...
https://forum.doom9.org/showthread.php?t=158611

Also Arcsoft 6 doesn't even work on Window 10 anymore. I used this work around from another post that, when I run eac3to test, it detects Arcsoft dtsdecoder dll to be working (idk if it actually is though...).
https://forum.doom9.org/showthread.php?t=154070
Doom195051 is offline  
Old 22nd December 2018, 04:16   #14751  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
1) ArcSoft is a decoder, not a encoder. And is not necesary anymore because the free libdcadec.dll can do the decode of DTS-MA.

2) Surcode is a DTS encoder than can run with eac3to but can't produce DTS-MA, only standard DTS 768 or 1536 Kb/s. Forget it to recode FLAC.

3) If you want DTS-MA you need DTS-HD Master Suite and you only need eac3to to decode the FLAC's to monowav's:

eac3to input.flac output.wavs

Or in UsEac3to selecting 'wavs' in Output format
After that you can use DTS-HD Master Suite with the monowavs input:

Stream type DTS-HD Master Audio
Channel Layout: from 1.0 to 7.1
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 31st December 2018, 01:24   #14752  |  Link
Masutin
Registered User
 
Join Date: Oct 2009
Posts: 42
Can I add something to "stdout.wav | LAME" to make it show progress? Otherwise any option of LAME for verbosity is ignored and no progress shows. E.g. with QAAC it shows fine.
Masutin is offline  
Old 18th January 2019, 17:09   #14753  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Ran into this problem: HEVC multi-part demuxing? Any chance HEVC demuxing will become a reality with eac3to?

Thanks.
__________________
Gorgeous, delicious, deculture!
asarian is offline  
Old 18th January 2019, 17:46   #14754  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,806
Can you just join them with simple
copy /b 800.m2ts+801.m2ts+802.m2ts+803.m2ts+804.m2ts combined.m2ts
Atak_Snajpera is offline  
Old 18th January 2019, 20:02   #14755  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by Atak_Snajpera View Post
Can you just join them with simple
copy /b 800.m2ts+801.m2ts+802.m2ts+803.m2ts+804.m2ts combined.m2ts
Never mind my stupidity. Turns out you CAN demux the HEVC stream, just not to .mkv yet.
__________________
Gorgeous, delicious, deculture!
asarian is offline  
Old 7th February 2019, 06:33   #14756  |  Link
JimmyBarnes
the Interrogator
 
JimmyBarnes's Avatar
 
Join Date: Oct 2001
Location: DownUnder
Posts: 664
Quote:
Originally Posted by SquallMX View Post
Yes, is a workaround that works fine, unfortunately you lose the 7.1 data.
Your workaround was to add -core to -demux when demuxing E-AC3 streams which caused eac3to to abort extraction due to "Applying (E-)AC3 delay failed" error.

The audio streams I wanted were not the problem E-AC3 ones, so I extracted just that stream => X.thd+ac3.

Then I ran eac3to [path] 1) -demux -core and let it extract all the streams. The X.thd+ac3 produced was binary identical to the one above.

As you suggested, I would have imagined using -core would lose something, but it doesn't seem to have here, do you have any explanation?
JimmyBarnes is offline  
Old 7th February 2019, 11:07   #14757  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by JimmyBarnes View Post
...As you suggested, I would have imagined using -core would lose something, but it doesn't seem to have here, do you have any explanation?
The -core eac3to parameter is intended to extract the core part (limited to 5.1) of a single audio track, before only with DTS-HD but now also EAC3 7.1.

A thd+ac3 is not a single audio track but 2 independent tracks interleaved.
To extract each track you can use:

eac3to X.thd+ac3 X.thd X.ac3

The -core parameter is ignored here.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 10th February 2019, 02:45   #14758  |  Link
Masutin
Registered User
 
Join Date: Oct 2009
Posts: 42
Can I remap a 4.1 audio to bring the second voice channel up front when playing in stereo? Software players can mix voice to both channels but my TV can't.
Masutin is offline  
Old 10th February 2019, 03:40   #14759  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Remap? Maybe you need downmix.

Try -downstereo

Put the log to know the input layer and formats.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 12th February 2019, 01:40   #14760  |  Link
Masutin
Registered User
 
Join Date: Oct 2009
Posts: 42
Correction: the audio is 3.1 - Front & Side L R. I decoded part of it and found the L voice channel (must be channel 0) silent. I did come across a 2.0 mix of this audio, it had voice in one channel. Downmixing as it is probably won't do. How do I go about mixing or remapping this? Other than decoding to WAVs and replacing the silent channel. Mono? I didn't keep the log and the source AC3 but if you think it can help I'll get it.

Last edited by Masutin; 12th February 2019 at 02:45. Reason: Correction
Masutin 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 17:40.


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