Log in

View Full Version : eac3to - audio conversion tool


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 [228] 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308

asarian
13th October 2011, 06:57
There are some differing opinions as to which versions decode properly.

Personally I use 1.1.0.0 for 5.1 and 6.1 DTS-MA, and I use 1.1.0.8 for 7.1 DTS-MA (except strange setup).

I'm planning to install Arcsoft Total Media Theatre 5.0.1.114 (because it can play back Blu-Ray from folder). Is there a way I can have eac3to keep using the old 1.1.0.0 decoder? (which I had put in the eac3to directory itself, and registered manually). Or will the newest decoder work too?

rc71
14th October 2011, 18:08
This file was a pain in the ass to get. So here is the dtsdecoderdll.dll 25/04/2008 04:50 v1.1.0.0. If there is a 10:50 am file then well... .s@#$@#$ 79oif@$#&(*@ #$

~link removed by moderator due to possible license violation~

nibus
14th October 2011, 22:23
Just came across a stream that eac3to lists as:

5: TrueHD/AC3, English, 5.1 channels, 48kHz, dialnorm: -27dB, 83ms

Does this mean it is delayed 83ms? So when I transcode I need to apply +83ms to the output?

asarian
18th October 2011, 19:14
Still having major trouble with TrueHD audio (see below). Libav can't do it, Nero (the often suggested alternative) says it can't do it either, and Sonic can't even be bothered to try (as per the documentation).

This concerns the Gantz Blu-ray (Japanese Audio). Is there anything else I can try?!


eac3to 00000.m2ts 2: temp.pcm
M2TS, 1 video track, 1 audio track, 2 subtitle tracks, 2:10:40, 24p /1.001
1: h264/AVC, 1080p24 /1.001 (16:9)
2: TrueHD/AC3, 5.1 channels, 48kHz
(embedded: AC3, 5.1 channels, 640kbps, 48kHz)
3: Subtitle (PGS)
4: Subtitle (PGS)
a02 Extracting audio track number 2...
a02 Extracting TrueHD stream...
a02 Decoding with libav/ffmpeg...
a02 Swapping endian...
a02 Remapping channels...
a02 libav Substream 0 parity check failed
a02 libav Substream 0 checksum failed
a02 libav Substream 0 length mismatch.
a02 The libav decoder reported error -1 while decoding.
Aborted at file position 1048576.


eac3to 00000.m2ts 2: temp.pcm -nero
M2TS, 1 video track, 1 audio track, 2 subtitle tracks, 2:10:40, 24p /1.001
1: h264/AVC, 1080p24 /1.001 (16:9)
2: TrueHD/AC3, 5.1 channels, 48kHz
(embedded: AC3, 5.1 channels, 640kbps, 48kHz)
3: Subtitle (PGS)
4: Subtitle (PGS)
Disabling DRC for Nero (E-)AC3 decoding...
a02 Extracting audio track number 2...
a02 Extracting TrueHD stream...
a02 Decoding with DirectShow (Nero Audio Decoder 2)...
a02 The DirectShow audio decoder didn't accept the input stream.
Aborted at file position 1048576.


eac3to 00000.m2ts 2: temp.pcm -sonic
M2TS, 1 video track, 1 audio track, 2 subtitle tracks, 2:10:40, 24p /1.001
1: h264/AVC, 1080p24 /1.001 (16:9)
2: TrueHD/AC3, 5.1 channels, 48kHz
(embedded: AC3, 5.1 channels, 640kbps, 48kHz)
3: Subtitle (PGS)
4: Subtitle (PGS)
a02 Extracting audio track number 2...
a02 Extracting TrueHD stream...
a02 The Sonic Audio Decoder doesn't decode TrueHD properly.
Aborted at file position 1048576.

asarian
18th October 2011, 21:54
try the -nero switch (nero is limited to 5.1 channels, but this is not a problem here)

As you can tell from my above post, that didn't work either.

Really seems an eac3to (libav) problem somehow, as nearly a quarter of all my TrueHD streams have eac3to abort somewhere (whereas they all appear to be pretty normal streams, that play with TMT 5, XBMC, etc., just fine). Never have this issue with DTS-MA.

Thunderbolt8
18th October 2011, 23:05
send a sample to madshi (try first if the same problem occurs with the sample)

asarian
18th October 2011, 23:50
send a sample to madshi (try first if the same problem occurs with the sample)

Ok, I sent him a PM about it and a link to this file:

10sec Gantz sample (http://www.mediafire.com/file/s1rxt8dtltaw6to/gantz_sample.m2ts)

(I didn't see an option for attachments on PM's)

Now I'll just wait. :)

b66pak
19th October 2011, 19:37
@asirian you can use this (demux the thd with eac3to and then decode it with the latest ffmpeg):

eac3to gantz_sample.m2ts gantz_sample_audio.thd

ffmpeg -i gantz_sample_audio.thd -acodec pcm_s24le gantz_sample_audio.thd.wav

get the latest ffmpeg from here (http://ffmpeg.zeranoe.com/builds/win32/static/)...
_

asarian
19th October 2011, 21:25
@asirian you can use this (demux the thd with eac3to and then decode it with the latest ffmpeg):

eac3to gantz_sample.m2ts gantz_sample_audio.thd

ffmpeg -i gantz_sample_audio.thd -acodec pcm_s24le gantz_sample_audio.thd.wav

get the latest ffmpeg from here (http://ffmpeg.zeranoe.com/builds/win32/static/)...
_

Thanks, that totally worked!! You're a brilliant man!

This will no doubt help me in many other TrueHD situations too!

:goodpost:

Thunderbolt8
19th October 2011, 22:54
seems like eac3to needs an ffmpeg update

Midzuki
20th October 2011, 04:06
madshi should set up an autobuilder :devil: for eac3to.zip, duly in sync with the latest ffmpeg of course :D

asarian
20th October 2011, 11:53
madshi should set up an autobuilder :devil: for eac3to.zip, duly in sync with the latest ffmpeg of course :D

Or maybe it's simply time for a new release, compiled against the latest libav/ffmpeg!? :devil: Seriously, I don't have the Windoze environment to compile C sources.

kypec
20th October 2011, 11:56
Or maybe it's simply time for a new release, compiled against the latest libav/ffmpeg!?
It most certainly is! :goodpost:

Kurtnoise
20th October 2011, 13:21
did you try to grab the dlls from the shared build and put them in the eac3to folder ?

mbcd
20th October 2011, 17:03
I thought that eac3to supports plugins, isnt it possible to build a plugin that fixes some problems as channelorder, thd, ... ?

Otherwise, for what could someone use those plugins-interface ?

Spc01
20th October 2011, 21:34
Looks like we're getting different results:

eac3to.exe test-chan.dtshd channel.wavs


http://www.mediafire.com/?q9x6ovpz726waju

channel.SL.wav -> "beep… back left"
channel.SR.wav -> "beep… back right"
channel.BL.wav -> "beep… side left"
channel.BR.wav -> "beep… side right"

I can confirm that, just tested it out on DTS-HD Master Audio 7.1 24bit, 48kHz.

S* = Back
B* = Side

mindbomb
21st October 2011, 04:45
which channel configurations does down2 work on?
5.1 and 7.1 seem to work, but between 2.0 and 5.1, does anything work?

tebasuna51
21st October 2011, 15:18
To 2.0 -> 5.1 read the Sticky: GUIDE LIST: Stereo-to-Surround Conversion Guides (http://forum.doom9.org/forumdisplay.php?s=&forumid=11)

kypec
21st October 2011, 16:00
To 2.0 -> 5.1 read the Sticky: GUIDE LIST: Stereo-to-Surround Conversion Guides (http://forum.doom9.org/forumdisplay.php?s=&forumid=11)
I think he asked about situation of down-mix to stereo from multi-channel sources with non-standard number of channels, such like 2.1 / 3.0 / 4.0 / 5.0.
At least that's how I understood the wording "between 2.0 and 5.1" of his post's context.:confused:

mindbomb
21st October 2011, 23:11
yea, kypec is right.
maybe i should have been more clear.

If you try to use down2 on 3 channel audio, it just doesnt work, is that right?

tebasuna51
22nd October 2011, 03:27
Sorry.
Only work with 5.1, to downmix 3, 4 or 5 channels to stereo use MeGUI.

Asmodian
29th October 2011, 04:47
Is it possible to output 32 bit audio to stdout?

For 24 bit I use:
eac3to.exe in.mp2 stdout.pcm -24

"eac3to.exe in.mp2 stdout.pcm -32" doesn't seem to give 32 bit audio (it isn't in the docs so no surprise) but is there a way?

ramicio
29th October 2011, 05:03
Use the -full switch to get 64-bit floating point. It's either 24-bit integer or 64-bit float, nothing in between. What is even going to accept 32 float as an input? What is the point? It offers the same precision as 24-bit integer if nothing goes over 0dB.

Asmodian
29th October 2011, 07:09
Thanks, it makes a lot more sense now.

It turns out I am just getting 24 bit from the eac3to, there are no more bits to get. (-full gives 24 bit)

I am piping to qaac, I think 24 bit is all that exist for this mp2 source but qaac could take 32bit float if it did exist.

So there is no point.
:thanks:

pandv2
30th October 2011, 22:59
Hello,

I think a found a little bug:

With this command line:

"C:\MasProgramas\eac3to\eac3to.exe" "C:\Temp\VideoSynch\Vsy_Segmento_Aud_000.ac3" "C:\Temp\VideoSynch\Vsy_Segmento_Aud_000_sil001.ac3" -silence -edit=0:00:00.544,1088ms

Eac3to shows a error:

Invalid edit format "edit=0:00:00.544,1088ms

And also with: -edit=0:00:00.544,544ms

but not with: -edit=0:00:00.544,543ms

If the silence duration to insert, is bigger than the insertion position, eac3to trows a error. So:

-edit=0:00:00.789,800 is a error
-edit=0:00:00.789,788 is not

I think is a easy fix (an outdated check in action, I think). Is the source code available?

Thunderbolt8
30th October 2011, 23:07
nope :p

Atlantis
31st October 2011, 03:57
Guys this is a long thread but please excuse me I couldn't read it all.

I have noticed that eac3to can not read a 32bit float wav file created by audition as input. If I convert the same file in audition to 24bit, eac3to can read it. Any ideas?

tebasuna51
31st October 2011, 11:22
I have noticed that eac3to can not read a 32bit float wav file created by audition as input.

I can't reproduce your problem.
Please put a sample (1 second is enough).

far.in.out
31st October 2011, 19:40
Hi. I'm doing
eac3to input.dtshd output.flac -down2 -mixlfe -down16
and getting this in log

Clipping detected, a 2nd pass will be necessary. <WARNING>
...
Applying -6,73dB gain...

So, should I worry about it?
Should I redo it using like -7dB to be safe?
Or is it fine after second pass?
Does it use the source dtshd for 2nd pass or just created flac?

nurbs
31st October 2011, 20:23
So, should I worry about it?
Should I redo it using like -7dB to be safe?
Or is it fine after second pass?
Does it use the source dtshd for 2nd pass or just created flac?
No, no, yes and temporary wav I guess.

Atlantis
1st November 2011, 06:06
Here is a 1 sec audio file 48khz 5.1 32bit float.

eac3to can't read it.

tebasuna51
1st November 2011, 11:18
Here is a 1 sec audio file 48khz 5.1 32bit float.

Your wav file have a wrong header:
File ........: D:\Internet\audio 32bit float.wav
Size ........: 1152068 bytes

---------------------------------------------- Header Info
ChunkID .....: RIFF
RiffLength ..: 1152060
Container ...: WAVE
SubchunkID ..: fmt (Length: 40)
AudioFormat .: 65534 (WAVE_FORMAT_EXTENSIBLE)
NumChannels .: 6
SampleRate ..: 48000
ByteRate ....: 1152000
BlockAlign ..: 24
BitsPerSample: 32
ValidBitsPS .: 0
MaskChannels : 63 (FL FR FC LF BL BR)
SubType .....: 3 (Float)
SubchunkID ..: data (Length: 1152000)
Offset data .: 68
Duration ....: 1 sec., (0h. 0m. 1s.)
------------------------------------------------- End Info

The field ValidBitsPerSample must be 32 instead 0.

You can hexedit the wav file and put at offset 38 the correct value 32 (hex 20) or fix the file with WavFix (http://forum.doom9.org/showthread.php?p=1520399#post1520399):

wavfix "audio 32bit float.wav" -m 0

Add the parameter -ignorelength if your wav file is greater than 4 GB.
After that eac3to can read the file.

Atlantis
1st November 2011, 12:43
What program did you use to see that information? I want to use it.

Also why the header is wrong? I used audition to get that. Also, if I output as 32bit float it doesn't work but if I output as 32bit integer, it works.

(using adobe audition to output. Works means eac3to can read the file)

dream88
1st November 2011, 14:03
Hi can someone please confirm for me what exactly the bug is with different versions of Arcsoft DTS Decoder, ?

Is it 1.1.0.5 or 1.1.0.0 for 6.1/6.0 audio and 1.1.0.8 for anything else ?
Some people claim that 1.1.0.0 is the best for 6.1/6.0 but others claim 1.1.0.5 is best because 1.1.0.0 lacks many bug fixes ?
I found the following pieces of information around doom9 forums but i'm still confused to which version to use to avoid any bug ?

- 1.1.0.0 can decode DTS(-HD) 6.1/6.0 but can't decode non-standard 7.1
- All versions above v1.1.0.0 do not accurately decode 6.1 DTS tracks with eac3to.
- 1.1.0.8 can't decode DTS(-HD) 6.1/6.0 but can decode non-standard 7.1
- Both decode DTS(-HD) 1.0 correctly, unlike 1.1.0.7.
lossy DTS
1) 1.1.0.0 and 1.1.0.1 always decode lossy DTS as 24 bit, and their decoding results differ from each other.
2) 1.1.0.5 and up decode in proper bitdepth.
3) Versions 1.1.0.5 and up decode lossy DTS identically.
4) 1.1.0.1 and 1.1.0.5 decode 24 bit lossy DTS identically.
5) Decoding of 16 bit lossy DTS was changed from 1.1.0.0 to 1.1.0.1 and from 1.1.0.1 to 1.1.0.5.
6) 1.1.0.7 and 1.1.0.8 decode 6.0 without back center channel.

The conclusion : for lossy DTS is 1.1.0.5. It decodes all configurations, in proper bitdepth, and decoding algorithm didn't change since this version (except 6.0 bug in .7 and .8).

Anakunda
1st November 2011, 20:56
HI,

eac3to question:

does the -down16 switch have impact on quality or samplerate/bit depth on DTS -> AAC conversion? (providing the DTS is 24b/48kHz/6ch)

ramicio
1st November 2011, 20:58
Thanks, it makes a lot more sense now.

It turns out I am just getting 24 bit from the eac3to, there are no more bits to get. (-full gives 24 bit)

I am piping to qaac, I think 24 bit is all that exist for this mp2 source but qaac could take 32bit float if it did exist.

So there is no point.
:thanks:

Oh yeah, you will only get 64 bits when you do any sort of processing.

tebasuna51
2nd November 2011, 00:02
Hi can someone please confirm for me what exactly the bug is with different versions of Arcsoft DTS Decoder, ?

- I don't found any bug using 1.1.0.0, also decode non-standard 7.1 without problems.

- lossy DTS don't have bitdepth, then you can't recover the original bitdepth source. The data in header only inform about the source bitdepth but this data is useless for 2 reasons:

1) Some encoders put always 24 bits in this field no mather the source was 16 or 24 bits.

2) The error recovering the lossy encode is greater than the precission difference betwen 16 and 24 bits, then it makes no sense decode to 16 or 24 bassed in source bitdeph, decode always to 24 bits and you obtain always the best approach.

tebasuna51
2nd November 2011, 18:31
What program did you use to see that information? I want to use it.

http://forum.doom9.org/showthread.php?p=1522330#post1522330

Also why the header is wrong?

I don't know. I don't support commercial soft, ask to the vendor.

Atlantis
2nd November 2011, 19:13
tebasuna51, what you said is not correct.

I did another test. You said that it was because of wrong header.

Well as I said, 32 float was not recognized and 32 integer was recognized by eac3to. So I passed a 32 integer to your tool LeeAudBi and the header is the same incorrect way as you say but it works.

audio 32bit integer.wav
ChunkID .....: RIFF
RiffLength ..: 1152060
Container ...: WAVE
SubchunkID ..: fmt (Length: 40)
AudioFormat .: 65534 (WAVE_FORMAT_EXTENSIBLE)
NumChannels .: 6
SampleRate ..: 48000
ByteRate ....: 1152000
BlockAlign ..: 24
BitsPerSample: 32
ValidBitsPS .: 0
MaskChannels : 63 (FL FR FC LF BL BR)
SubType .....: 1 (Integer)
SubchunkID ..: data (Length: 1152000)
Offset data .: 68
Duration ....: 1 sec., (0h. 0m. 1s.)

I attached the file here. Test it with eac3to and it is recognized so that header problem you mentioned is not the problem. There must be another problem within eac3to.

tebasuna51
3rd November 2011, 02:31
Maybe eac3to don't check this field with int samples, because it make the test to know the real bitdepth of the source, with float sample must know the alignement.

But, how do you explain than changing only this field with a hexeditor the float file is read without problems?

You can read about this field here: http://msdn.microsoft.com/en-us/windows/hardware/gg463006
Details about wValidBitsPerSample
The field wValidBitsPerSample is used to explicitly indicate how many bits of precision are present in the signal. Most of the time this value will be equal to wBitsPerSample...

Audacity fill this field correctly, I don't know for what Audition don't make the same.

Traps
4th November 2011, 15:52
Source is 24bit TrueHD track, i want to convert it to 16bit flac or DTS but i'm getting this error

command line: eac3to.exe" "E:\THD.thd" "E:\flac16.flac -down16"
------------------------------------------------------------------------------
TrueHD, 5.1 channels, 48kHz
This audio conversion is not supported. <ERROR>

Anyone knows what am i doing wrong?

ramicio
4th November 2011, 15:54
Try getting rid of the quotes. You don't need them when there are no spaces in file names or paths. The -down16 switch is part of the file name in your command.

Traps
4th November 2011, 15:55
Yeah, i figured it out like 2sec after i posted here, thanks anyway!

pandv2
6th November 2011, 17:27
If the silence duration to insert, is bigger than the insertion position, eac3to trows a error. So:

-edit=0:00:00.789,800 is a error
-edit=0:00:00.789,788 is not


If the source code is not available, can I hope this, and another bugs, get corrected in the future? Or Madish had left this project?.

Now I am using BeSplit to cut sections and eac3to to insert o delete (with delay) in the beginning. This works but BeSplit is not maintaned, and there are also some bugs.

And i post, also, a feature request: Extract a ac3 segment to a new file.

Boulder
7th November 2011, 19:44
How does normalization work when doing a multichannel to multichannel transcode? Is it even useful to apply or will it only mess the balance between the channels?

tebasuna51
7th November 2011, 22:29
-normalize preserve the balance between channels, all channels are amplified by the same value.

twazerty
8th November 2011, 19:19
In the professional world there is a problem regarding the HDV format with 4 audio channels. For example the Sony S270 which I have access to. This is a professional camera which is able to record a 4ch audio stream. When you want to import the footage of the camera to your computer you are unable to access the 4ch audio file inside the M2T file (MPEG-TS). And big names like Vegas, Avid, etc aren't able to see/extract the 4ch audio stream. Only the second stereo stream will be available. On the camera itself you are able to access all 4 audio channels. This is a problem that all camera's have that record in HDV with 4 channels and there isn't a solution from the manufactures. The only way is via SDI but it is very time consuming and HDD hungry (3GB/s).

Applications like MediaInfo and all video players can only access the second audio stream (or a backwards compatible stream but I am not sure of this). This is the mediainfo log:
General
ID : FF
Complete name : J:\HDVTest 4ch\00_0002_2010-11-07_214302.M2T
Format : MPEG-TS
File size : 138 MiB
Duration : 44s 160ms
Start time : UTC 2010-11-07 21:43:02
End time : UTC 2010-11-07 21:43:07
Overall bit rate : 26.2 Mbps
Maximum Overall bit rate : 33.0 Mbps
Encoded date : UTC 2010-11-07 21:43:02

Video
ID : 2064 (0x810)
Menu ID : 100 (0x64)
Format : MPEG Video
Format version : Version 2
Format profile : Main@High 1440
Format settings, BVOP : Yes
Format settings, Matrix : Default
Duration : 44s 320ms
Bit rate mode : Constant
Bit rate : 24.0 Mbps
Nominal bit rate : 25.0 Mbps
Width : 1 440 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Standard : Component
Resolution : 8 bits
Colorimetry : 4:2:0
Scan type : Interlaced
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.617
Stream size : 127 MiB (92%)

Audio
ID : 2068 (0x814)
Menu ID : 100 (0x64)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Duration : 44s 208ms
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Video delay : -232ms
Stream size : 2.02 MiB (1%)

But in fact this file contains a 4 channel audio stream. This is the output of eac3to v3.2.4:
eac3to v3.24
command line: "c:\Program Files (x86)\AVCHDCoder\Tools\eac3to\eac3to.exe" "J:\HDVTest 4ch\00_0002_2010-11-07_214302.M2T" -demux
------------------------------------------------------------------------------
TS, 1 video track, 2 audio tracks, 0:00:44, 50i
1: MPEG2, 1440x1080 50i (16:9)
2: E-AC3, unknown parameters
3: MP2, 2.0 channels, 384kbps, 48kHz, -264ms
Bitstream parsing for track 2 failed. <WARNING>
Demuxing this track may still produce correct results - or not. <WARNING>
[a02] Extracting audio track number 2...
[v01] Extracting video track number 1...
[a03] Extracting audio track number 3...
[v01] Creating file "00_0002_2010-11-07_214302 - 1 - MPEG2, 1440x1080 50i.m2v"...
[a03] Applying MPx delay...
[a03] Creating file "00_0002_2010-11-07_214302 - 3 - MP2, 2.0 channels, 384kbps, 48kHz.mp2"...
Video track 1 contains 1107 frames.
eac3to processing took 1 second.
Done.


In this case a second audio stream will pop up. But I don't think it is an E-AC3 audiostream when we take a look at the HDV specifications that can be found on wikipedia: HDV Specifications (http://en.wikipedia.org/wiki/HDV#Specifications). The most important part is this:
MPEG-1 Part 3 AL 2 Stereo (2-channel) at 384 kbit/s (192 kbit/s per channel);
optional MPEG-2 Part 3 AL 2 4-channel at 96 kbit/s per channel.

As you can see 4 channel audio is part of the HDV format. I am not sure if there are actually 2 audiostreams or only 1. There is no way I can check this because the camera itself only outputs the 4 ch and no 2 ch. But the computer will only play a 2 ch. But when you compare the MediaInfo audio information with the specs I expect that there are 2 audio stream just like eac3to detects. It would be very very nice if HDV support can be integrated into eac3to because many professional cameramen are looking for an solution.

Currently eac3to extracts the m2v and 2ch audio stream fine. Only the 4 channel stream isn't detected nor extracted. I uploaded 2 sample to my server for analysis:
http://tools.twanwintjes.nl/uploads/temp/00_0001_2010-11-07_153401.M2T (49 seconds / 152MB) - Right Click --> Save As
http://tools.twanwintjes.nl/uploads/temp/00_0002_2010-11-07_214302.M2T (44 seconds / 137MB) - Right Click --> Save As

In addition to the main problem the camera splits a recording into 4GB chunks. So sync issues are a problem according to the professionals.

Note: I do not own this professional camera. I professional camera guy I know came to me with this problem and he owns a camera. If you are willing to support HDV and you need more material like other resolutions/framerates/interlaced/progressive with only 2ch or combined with a 4ch audio track. We can deliver test footage. We are sure many people are looking for a solution. Companies like Sony do not offer a software solution, also this problem is still available on new camera's.

Additional info (http://www.dvinfo.net/forum/sony-hvr-z7-hvr-s270/259102-big-problem-use-s270-4-channel-audio-hdv-format.html)

Joniii
9th November 2011, 11:54
Why does eac3to and mkvextractgui2 output different file sizes?

h264 track demuxed from mkv:

eac3to 18 341 959 089
mkvextractgui2 18 341 843 800

Chouonsoku
13th November 2011, 05:18
I'm trying to convert a Dolby TrueHD 1.0 track to FLAC, and I keep getting the following error.

eac3to v3.24
command line: eac3to B:\BDMV\STREAM\00001.m2ts 4:japanese.flac
------------------------------------------------------------------------------
M2TS, 1 video track, 3 audio tracks, 2 subtitle tracks, 0:24:13, 24p /1.001
1: h264/AVC, 1080p24 /1.001 (16:9)
2: TrueHD/AC3, English, 5.1 channels, 48kHz, dialnorm: -25dB
(embedded: AC3, 5.1 channels, 448kbps, 48kHz, dialnorm: -25dB)
3: TrueHD/AC3, English, 2.0 channels, 48kHz, dialnorm: -25dB
(embedded: AC3, 2.0 channels, 192kbps, 48kHz, dialnorm: -25dB)
4: TrueHD/AC3, Japanese, 1.0 channels, 48kHz, dialnorm: -25dB
(embedded: AC3, 1.0 channels, 96kbps, 48kHz, dialnorm: -25dB)
5: Subtitle (PGS), English
6: Subtitle (PGS), English
[a04] Extracting audio track number 4...
[a04] Extracting TrueHD stream...
[a04] Removing TrueHD dialog normalization...
[a04] Decoding with libav/ffmpeg...
[a04] [libav] Substream min channel cannot be greater than max channel. <WARNING>
[a04] The libav decoder reported error -1 while decoding. <ERROR>
Aborted at file position 1048576. <ERROR>

I did some searching and found that this is supposedly caused by an outdated version of ffmpeg included with eac3to. So I grabbed the latest version and ran the command line:

ffmpeg -i japanese.thd -ac 1 -acodec pcm_s24le -f wav japanese.wav

And got the following error:

Input stream #0:0 frame changed from rate:48000 fmt:s32 ch:1 to rate:48000 fmt:s32 ch:2
Assertion ctx->channels == out->ch_count failed at /home/kyle/software/ffmpeg/source/ffmpeg-git/libswresample/audioconvert.c:66

This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.

So now I'm not sure what to do. I don't remember having this problem with any other TrueHD 1.0 tracks in the past.

tebasuna51
13th November 2011, 10:24
The message is clear: this track is a mix of 1.0 and 2.0
Try with:
ffmpeg -i japanese.thd -ac 2 -acodec pcm_s24le -f wav japanese.wav