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

Inspector.Gadget
21st November 2010, 18:48
Well, I guess the thing to do is put together a test suite and run it against all known versions of the Arcsoft decoder. Unfortunately, I don't have a Blu-ray collection large enough to do that.

Known versions of the Arcsoft decoder: 1.1.0.0, 1.1.0.7, 1.1.0.8, ???

DTS Variants: "Regular" DTS in up to 5.1 channels, DTS-ES (Matrix and Discrete) in up to 6.1 channels, DTS 96/24 in up to 5.1 channels, DTS-HD HR in up to 8 channels, DTS-HD MA in up to 8 channels, ???

Uxorious
21st November 2010, 18:53
Well, I guess the thing to do is put together a test suite and run it against all known versions of the Arcsoft decoder.

Or preferably, ask madshi to fix eac3to to work with the new versions.

If my suspicion from looking at the produced WAV file is correct, the new ArcSoft decoder is outputting a record with 8 channels per sample - but of course only 7 of them have correct content.
When eac3to converts it, it treats it as a 7-channel stream, thus cycling data and padding through all the channels ...

dansrfe
21st November 2010, 19:10
^that could very well be a possibility, but seeing how madshi has left this and his madVR thread in the dark, I don't know if there will ever be a next version to eac3to.

robpdotcom
21st November 2010, 19:56
Instructions in zip:

ArcSoft HD Decoder pack eac3to v1.1.0.0 (http://www.sendspace.com/file/ief0t0)

Latest version: ArcSoft HD Decoder pack eac3to v1.1.0.8 (http://www.sendspace.com/file/unwnh5)

Note: All versions above v1.1.0.0 do not accurately decode 6.1 DTS tracks with eac3to.

First, thanks for the easy decoder installation. Every other method I've seen was much more complicated.

Second, when using v1.1.0.8, I only get 6 channel WAV's from a DTS-ES 6.1 track.:confused:

Third, how do I go from v1.1.0.8 to v1.1.0.0? I tried just replacing the files, but I get an error "MSVCP71.dll" is missing. Anyone mind helping?

Uxorious
21st November 2010, 20:30
How do I go from v1.1.0.8 to v1.1.0.0? I tried just replacing the files, but I get an error "MSVCP71.dll" is missing. Anyone mind helping?

I'm running Windows7 64-bit and needed that file too.
Just google for the filename ... there are a couple zip files out there with the file.

Uxorious
21st November 2010, 20:37
ArcSoft HD Decoder pack eac3to v1.1.0.0 (http://www.sendspace.com/file/ief0t0)


The files I found are slightly newer and still work (but probably have no differences).
All your Mag* files report v1.0.0.148, but there's also a set of 1.0.0.156 out there.
As mentioned earlier, Google for TMT3 codec pack, and you will find it.

As somebody else mentioned, the 1.1.0.0 version needs MSVCP71.DLL whereas the new version doesn't.

Also, I don't think DtsDec.dll is used at all....

b66pak
21st November 2010, 20:37
Just google for the filename ... there are a couple zip files out there with the file.

or better get the real deal (and not some virus) form ms: Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) (http://www.microsoft.com/downloads/en/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en)
_

Uxorious
21st November 2010, 20:47
or better get the real deal (and not some virus) form ms: Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) (http://www.microsoft.com/downloads/en/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en)
_

True. I think it's from the 2005 redistributable though.

dansrfe
21st November 2010, 22:40
yea it uses 2005 redistributable.

robpdotcom
22nd November 2010, 00:04
I'm running Windows7 64-bit and needed that file too.
Just google for the filename ... there are a couple zip files out there with the file.

Thanks, that helped.

Still wondering though, are you guys getting 7 channel WAV's from DTS-ES Matrix? Or from DTS-ES Discrete? I'm not sure I've ever actually seen a 6.1 Discrete DTS-ES stream.

Uxorious
22nd November 2010, 00:34
Still wondering though, are you guys getting 7 channel WAV's from DTS-ES Matrix? Or from DTS-ES Discrete? I'm not sure I've ever actually seen a 6.1 Discrete DTS-ES stream.

I assume it's discrete since otherwise it would just show as 5.1 ... right?

So far I have seen DTS 6.1 content on 2 BluRay's:
Lord of War
Disturbia

robpdotcom
22nd November 2010, 01:09
I assume it's discrete since otherwise it would just show as 5.1 ... right?

Probably so. I was trying with matrixed content, which shows as DTS-ES 5.1 in eac3to. Too bad the Arcsoft decoder can't pull the matrixed back channel out to create 6.1 WAV's.

So far I have seen DTS 6.1 content on 2 BluRay's:
Lord of War
Disturbia


I'm seeing more 6.1 and 7.1 DTS-HD MA recently: Alice in Wonderland; 6.1 Matrix, and Toy Story 3; 7.1 Discrete, come to mind. But all of the 6.1 and 7.1 DTS-HD discs I've seen, whether it was matrix or discrete, has a DTS-ES 6.1 Matrix core.

dansrfe
23rd November 2010, 02:05
So audio overlaps are still not being fixed in the second pass. This is depressing.

asarian
23rd November 2010, 02:48
So, dumb question maybe, but how can I tell which version of the ArcSoft decoder I have?

Inspector.Gadget
23rd November 2010, 02:50
asarian: Open a command prompt in the folder where eac3to resides and run eac3to -test and wait a second as the output is printed to the console.

asarian
23rd November 2010, 03:04
asarian: Open a command prompt in the folder where eac3to resides and run eac3to -test and wait a second as the output is printed to the console.

Thanks. :)

Hmm, seems I have 1.1.0.7. So, do I need to downgrade if I want 7.1 DTS-MA (correctly) converted to 5.1 LPCM?

Uxorious
23rd November 2010, 03:31
Hmm, seems I have 1.1.0.7. So, do I need to downgrade if I want 7.1 DTS-MA (correctly) converted to 5.1 LPCM?

No. The only problem mode is 6.1

sreemv
23rd November 2010, 04:02
Could someone help me with the following error - i demuxed the dts track from dvd using eac3to but converting to 24fps appears to be a challenge.

N:\RipBot264v1.16.3\Tools\eac3to>eac3to dvd-demuxed.dts eac3to-24fps.dts -29.970 -changeTo24.000 -r8brain
DTS, 5.1 channels, 2:06:02, 24 bits, 1510kbps, 48kHz
Decoding with ArcSoft DTS Decoder...
Changing FPS from 29.970 to 24.000...
Reducing depth from 64 to 32 bits...
Writing WAVs...
Creating file "eac3to-24fps.R.wav"...
Creating file "eac3to-24fps.LFE.wav"...
Creating file "eac3to-24fps.L.wav"...
Creating file "eac3to-24fps.C.wav"...
Creating file "eac3to-24fps.SR.wav"...
Creating file "eac3to-24fps.SL.wav"...
Clipping detected, a 2nd pass will be necessary.
The ArcSoft DTS Decoder reported an error while decoding.
Aborted at file position 290717696.

N:\RipBot264v1.16.3\Tools\eac3to>

Thanks in advance.

asarian
23rd November 2010, 04:02
No. The only problem mode is 6.1

Thanks. I downgraded to 1.1.0.0 anyway, to be safe (I just have the pertinent .ax stuff installed; not the entire bloatware). If I read the reports in this thread properly, there's nothing 1.1.0.7 can do that 1.1.0.0 won't do as well.

tebasuna51
23rd November 2010, 04:41
Could someone help me with the following error - i demuxed the dts track from dvd using eac3to but converting to 24fps appears to be a challenge.
...
Maybe the DTS is corrupt, try Delaycut to fix it or other method to extract.
Try also with -libav

BTW, your parameters are incorrect, to convert a DTS from DVD NTSC you need:
eac3to dvd-demuxed.dts eac3to-24fps.dts -23.976 -changeTo24.000

sreemv
23rd November 2010, 04:48
Maybe the DTS is corrupt, try Delaycut to fix it or other method to extract.
Try also with -libav

BTW, your parameters are incorrect, to convert a DTS from DVD NTSC you need:
eac3to dvd-demuxed.dts eac3to-24fps.dts -23.976 -changeTo24.000

Thanks for the quick reply - you bring up my other dilemma. How do I find the source frame rate for sure? I got the 29.970 from doing "mediainfo" on the source VOBs. Please correct me if I am wrong. Thanks!

Inspector.Gadget
23rd November 2010, 06:06
i demuxed the dts track from dvd using eac3to but converting to 24fps appears to be a challenge

To add on to what was already said, if your target format is in fact 24000/1001 fps (~23.976fps commonly called 24p) and not 24000/1000 fps (24.000fps, perhaps instead should be called the "real" 24p), you may be doing yourself no favors.

Is your source an NTSC DVD (apparently so, given VOB files and 30000/1001 fps or ~29.97fps video) and your target either a file with inverse telecined (to ~23.976fps) video or a Blu-ray disc? If so, no audio framerate conversion is necessary!

In short, only do the contemplated operation (and flag the input as 23.976fps!) if you're sure that you need 24.000fps video.

sreemv
23rd November 2010, 06:33
To add on to what was already said, if your target format is in fact 24000/1001 fps (~23.976fps commonly called 24p) and not 24000/1000 fps (24.000fps, perhaps instead should be called the "real" 24p), you may be doing yourself no favors.

Is your source an NTSC DVD (apparently so, given VOB files and 30000/1001 fps or ~29.97fps video) and your target either a file with inverse telecined (to ~23.976fps) video or a Blu-ray disc? If so, no audio framerate conversion is necessary!

In short, only do the contemplated operation (and flag the input as 23.976fps!) if you're sure that you need 24.000fps video.

Sorry, not sure I understand everything you said - sounds too technical for me :)

Let me summarize what I am attempting to do in layman's [my] terms - I demuxed dts audio track from a dvd [supposedly NTSC] and now attempting to re-mux it with a mkv created from BluRay source.

When I muxed the dvd demuxed DTS to the mkv, I experienced gradual audio async - so more 'google' suggested I need to correct for the framerate diff?


If you have any advice helping me accomplish this task, I would highly appreciate it.

robpdotcom
23rd November 2010, 08:05
Is your source an NTSC DVD (apparently so, given VOB files and 30000/1001 fps or ~29.97fps video) and your target either a file with inverse telecined (to ~23.976fps) video or a Blu-ray disc? If so, no audio framerate conversion is necessary!

I didn't know it was possible to inverse telecine with eac3to. Is the result a progressive, 23.976fps file? And, would you mind giving me an example command line?

tebasuna51
23rd November 2010, 11:59
Let me summarize what I am attempting to do in layman's [my] terms - I demuxed dts audio track from a dvd [supposedly NTSC] and now attempting to re-mux it with a mkv created from BluRay source.

When I muxed the dvd demuxed DTS to the mkv, I experienced gradual audio async - so more 'google' suggested I need to correct for the framerate diff?
1) You can recode dts to ac3 (recommended). If you want recode to dts you need Surcode DVD (commercial) installed.
Check if you have Surcode with:
eac3to -test

2) Check with MediaInfo/eac3to if your mkv is exactly 24 fps and not 24000/1001 or 23.976

3) If your dts source is 768 Kb/s maybe you can add a explicit bitrate instead the default:
-448 to recode to ac3
-768 to recode to dts

4-1) If your DVD is PAL (check in the cover) you need:
eac3to input.dts output.ac3 -25.000 -changeTo24.000

4-2) If your DVD is NTSC you need:
eac3to input.dts output.ac3 -23.976 -changeTo24.000

You need correct the audio duration, forget the video fps.

Thunderbolt8
23rd November 2010, 15:42
^that could very well be a possibility, but seeing how madshi has left this and his madVR thread in the dark, I don't know if there will ever be a next version to eac3to.I guess its just a temporary thing. already happened I think twice before that there was a rather long break in between development. maybe he just needs some time off then and when. but so far, he has always come back.

Inspector.Gadget
23rd November 2010, 16:27
I didn't know it was possible to inverse telecine with eac3to. Is the result a progressive, 23.976fps file? And, would you mind giving me an example command line?

I don't believe you can do that except with soft-telecined VC-1 content, where eac3to discards the pulldown flags. I was thinking about the usual Avisynth route for the video, which the OP indicated is coming from an NTSC DVD.

Inspector.Gadget
23rd November 2010, 16:33
tempting to do in layman's [my] terms - I demuxed dts audio track from a dvd [supposedly NTSC] and now attempting to re-mux it with a mkv created from BluRay source.

When I muxed the dvd demuxed DTS to the mkv, I experienced gradual audio async - so more 'google' suggested I need to correct for the framerate diff?

If you experience gradual audio desync, then you are probably correct - that could reflect the effects of combining audio synced to a 23.976fps master with video that plays back at 24.000fps. Both 23.976fps and 24.000fps are legal for Blu-rays. However, there is a way to solve your desync problem without re-encoding. Simply flag the framerate of your video stream as 23.976fps in MKVMergeGUI when muxing your final file and if the DVD and the Blu-ray were made from the same master and have the same number of frames the audio sync should be perfect.

Caveat: If your DTS file had a delay value on the DVD, you will need to add that delay to the final Matroska file, again using MKVMergeGUI, to get the correct sync. Otherwise, your final file will have some small amount of constant desync as if you were watching the DVD without the correct audio delay added to the disc.

robpdotcom
23rd November 2010, 18:10
I don't believe you can do that except with soft-telecined VC-1 content, where eac3to discards the pulldown flags. I was thinking about the usual Avisynth route for the video, which the OP indicated is coming from an NTSC DVD.

:thanks: Thanks for the info.

sreemv
23rd November 2010, 21:44
1) You can recode dts to ac3 (recommended). If you want recode to dts you need Surcode DVD (commercial) installed.
Check if you have Surcode with:
eac3to -test


eac3to -test clearly shows surcode and it works by itself as well as I have used it at various times in the past.

N:\RipBot264v1.16.3\Tools\eac3to>eac3to -test
eac3to (v3.24) is up to date
Nero Audio Decoder (Nero 6 or older) doesn't seem to be installed
http://www.nero.com/eng/store-blu-ray.html
CAUTION: You need Nero 7. Nero 8 won't work with eac3to.
ArcSoft DTS Decoder (1.1.0.0) works fine
Sonic Audio Decoder (3.24.0.0) doesn't seem to be installed
Haali Matroska Muxer (2010-05-19) is installed
There's a new version (2010-11-21) available
http://haali.net/mkv
Nero AAC Encoder could not be located
http://www.nero.com/eng/nero-aac-codec.html
Copy NeroAacEnc.exe to the eac3to or to the Windows folder.
Surcode DTS Encoder (1.0.29.0) is installed
MkvToolnix (3.4.0.0, release version) is installed
There's a new release version (4.4.0.0) available
http://www.bunkus.org/videotools/mkvtoolnix
There's a new beta version (4.4.0.0, 2010-11-15) available
http://www.bunkus.org/videotools/mkvtoolnix/win32/pre

N:\RipBot264v1.16.3\Tools\eac3to>

But surcode with eac3to keeps failing and I am unable to decipher the reason:
N:\RipBot264v1.16.3\Tools\eac3to>eac3to "eac3to-demux.dts" N:\24fps.dts -23.976 -changeTo24.000 -libav
DTS, 5.1 channels, 2:06:02, 24 bits, 1510kbps, 48kHz
Decoding with libav/ffmpeg...
Changing FPS from 23.976 to 24.000...
Reducing depth from 64 to 32 bits...
Writing WAVs...
Creating file "N:\24fps.LFE.wav"...
Creating file "N:\24fps.SR.wav"...
Creating file "N:\24fps.SL.wav"...
Creating file "N:\24fps.C.wav"...
Creating file "N:\24fps.R.wav"...
Creating file "N:\24fps.L.wav"...
Clipping detected, a 2nd pass will be necessary.
libav ERROR: block code look-up failed
libav L
libav a
libav s
libav t
................................................
...............................................[truncated]
libav Didn't get subframe DSYNC
libav ERROR: block code look-up failed

[truncated]


libav Didn't get subframe DSYNC
Starting 2nd pass...
Decoding with libav/ffmpeg...
Changing FPS from 23.976 to 24.000...
Reducing depth from 64 to 32 bits...
Writing WAVs...
Applying -12.53dB gain...
Creating file "N:\24fps.R.wav"...
Creating file "N:\24fps.C.wav"...
Creating file "N:\24fps.SL.wav"...
Creating file "N:\24fps.L.wav"...
Creating file "N:\24fps.SR.wav"...
Creating file "N:\24fps.LFE.wav"...
libav ERROR: block code look-up failed
libav L
libav a
libav s
libav t
libav m

[truncated]


libav Didn't get subframe DSYNC
Encoding DTS <1536kbps> with Surcode...
Found Surcode DTS Encoder version 1.0.29.0.
Pressing the Surcode "Encode" button didn't seem to work...
Closing Surcode...

N:\RipBot264v1.16.3\Tools\eac3to>

I checked the FAQ and amde sure there were no long path/names and yet surcode part keeps failing. As I mentioned above, surcode by itself works fine.

Is there a way to save the frame converted "wavs" and use the "surcode" independently? eac3to keeps deleting them after the above failure.


BTW, -libav has more success than the default - so, thanks for that!




2) Check with MediaInfo/eac3to if your mkv is exactly 24 fps and not 24000/1001 or 23.976


N:\RipBot264v1.16.3\Tools\eac3to>eac3to "original.mkv"
MKV, 1 video track, 1 subtitle track, 2:11:21, 24p /1.001
1: h264/AVC, 1920x818 24p /1.001 (960:409)
2: Subtitle (SRT)

N:\RipBot264v1.16.3\Tools\eac3to>


3) If your dts source is 768 Kb/s maybe you can add a explicit bitrate instead the default:
-448 to recode to ac3
-768 to recode to dts


N:\RipBot264v1.16.3\Tools\eac3to>eac3to "eac3to-demux.dts"
DTS, 5.1 channels, 2:06:02, 24 bits, 1510kbps, 48kHz

N:\RipBot264v1.16.3\Tools\eac3to>


4-1) If your DVD is PAL (check in the cover) you need:
eac3to input.dts output.ac3 -25.000 -changeTo24.000

4-2) If your DVD is NTSC you need:
eac3to input.dts output.ac3 -23.976 -changeTo24.000

You need correct the audio duration, forget the video fps.

N:\RipBot264v1.16.3\Tools\eac3to>eac3to "F:\Original\VIDEO_TS\VTS_01_1.VOB"
VOB, 1 video track, 2 audio tracks, 1 subtitle track, 0:01:53
1: MPEG2, 480i60 /1.001 (16:9)
2: AC3, 5.1 channels, 448kbps, 48kHz
3: DTS, 5.1 channels, 24 bits, 1510kbps, 48kHz
4: Subtitle (DVD)

N:\RipBot264v1.16.3\Tools\eac3to>

Thanks again for all the help!

tebasuna51
24th November 2010, 01:13
...
libav ERROR: block code look-up failed
...
Applying -12.53dB gain...
...

Your extracted dts seems damaged.
Try fix it with DelayCut (http://madshi.net/delaycut.rar).
Put here the log if there are errors.

Encoding DTS <1536kbps> with Surcode...
Found Surcode DTS Encoder version 1.0.29.0.
Pressing the Surcode "Encode" button didn't seem to work...
Closing Surcode...

Is there a way to save the frame converted "wavs" and use the "surcode" independently? eac3to keeps deleting them after the above failure.

Yes, use:
eac3to input.dts output.wavs -23.976 -changeTo24.000

eac3to "original.mkv"
MKV, 1 video track, 1 subtitle track, 2:11:21, 24p /1.001
1: h264/AVC, 1920x818 24p /1.001 (960:409)
2: Subtitle (SRT)
Your mkv is 23.976, in theory you don't need change the audio duration.

sreemv
24th November 2010, 07:54
Your extracted dts seems damaged.
Try fix it with DelayCut (http://madshi.net/delaycut.rar).
Put here the log if there are errors.


I dont see any option in "delaycut" [v1.2.12.] for verifying/fixing - the "crc errors" section is grayed out once I load the "dts" as the "input file" - I must be missing something?


Yes, use:
eac3to input.dts output.wavs -23.976 -changeTo24.000


Doh! I should have guessed that - very similar to what I was doing with LPCM-to-DTS - thanks :)


Your mkv is 23.976, in theory you don't need change the audio duration.

Hmmm....this is frustrating - at the beginning of the movie, audio appears lagging and then few minutes in the audio goes ahead without me changing anything...*scratch-head*

Thanks again for all your help!

sreemv
24th November 2010, 08:00
Your extracted dts seems damaged.
Try fix it with DelayCut (http://madshi.net/delaycut.rar).
Put here the log if there are errors.

Doh! Looks like delaycut appears to by default run a fixer algorithm? Didnt see any errors:

====== INPUT FILE INFO ========================
File is dts
Bitrate (kbit/s) 1536
Act rate (kbit/s) 1509.750
File size (bytes) 1427019726
Channels mode C+L+R+SL+SR
Sampling Frec 48000
Low Frec Effects LFE: Present
Duration 02:06:01.621
Frame length (ms) 10.666667
Frames/second 93.750000
Num of frames 708902
Bytes per Frame 2013.0000
Size % Framesize 0
CRC present: NO
=============================================
====== TARGET FILE INFO ======================
Start Frame 0
End Frame 708901
Num of Frames 708902
Duration 02:06:01.621
NotFixedDelay 0.0000
=============================================
====== PROCESSING LOG ======================
Number of written frames = 708902
Number of Errors= 0

acki
24th November 2010, 11:12
Quick question. If you want to convert audio from a 25fps sample to a 23.976 sample... does it make any difference if you use:


-slowdown convert 25.000 and 24.000 content to 23.976 fps


or either


-23.976/... define source fps to be "23.976", "24.000", "25.000", ...
-changeTo24.000 change source fps to "23.976", "24.000", "25.000", ...


Being in this last case -25.000 -changeTo23.976 ?

Which one should be more apropriate ?

:thanks:

tebasuna51
24th November 2010, 12:21
...
Hmmm....this is frustrating - at the beginning of the movie, audio appears lagging and then few minutes in the audio goes ahead without me changing anything...*scratch-head*
You have:
MKV, 1 video track, 1 subtitle track, 2:11:21, 24p /1.001
DTS, 5.1 channels, 2:06:02, 24 bits, 1510kbps, 48kHz

If you are sure than mkv and dvd movie is the same version (can be normal, extended, director's cut, ...), with same title credits also, the duration suggest you need a a more strong conversion like 25 -> 23.976 :

MKV: 7881 seconds
DTS: 7562 seconds
7562 x 25 / (24/1.001) = 7884

tebasuna51
24th November 2010, 12:25
...
-slowdown convert 25.000 and 24.000 content to 23.976 fps
...
Being in this last case -25.000 -changeTo23.976 ?

Absolutely equivalent.

acki
24th November 2010, 14:52
Absolutely equivalent.

OK, Gracias ;) Thanks for the info.:thanks:

sreemv
25th November 2010, 01:42
You have:
MKV, 1 video track, 1 subtitle track, 2:11:21, 24p /1.001
DTS, 5.1 channels, 2:06:02, 24 bits, 1510kbps, 48kHz

If you are sure than mkv and dvd movie is the same version (can be normal, extended, director's cut, ...), with same title credits also, the duration suggest you need a a more strong conversion like 25 -> 23.976 :

MKV: 7881 seconds
DTS: 7562 seconds
7562 x 25 / (24/1.001) = 7884

Absolutely positvely same movie - no special director cut or extended - just that they are sloppy during credits at the beginnig and end of the movies, there is no audio for few seconds.

Can you suggest a way to find the exact timecodes for where the audio starts and end on the dvd?

sreemv
25th November 2010, 03:35
I may have found the root of my problem - notice below different vob files appear to have different audio lags? Also - whats the duration printed at the end of the first line for each vob? what does that represent - please help! THANKS for all the expert advice!

N:\RipBot264v1.16.3\Tools\eac3to>eac3to N:\Original\VIDEO_TS\VTS_01_1.VOB
VOB, 1 video track, 1 audio track, 0:02:55
1: MPEG2, 480i60 /1.001 (16:9)
2: DTS, 5.1 channels, 24 bits, 1510kbps, 48kHz

N:\RipBot264v1.16.3\Tools\eac3to>eac3to N:\Original\VIDEO_TS\VTS_01_2.VOB
MPG, 1 video track, 1 audio track, 0:00:33
1: MPEG2, 480i60 /1.001 (16:9)
2: DTS, 5.1 channels, 24 bits, 1510kbps, 48kHz, -343ms

N:\RipBot264v1.16.3\Tools\eac3to>eac3to N:\Original\VIDEO_TS\VTS_01_3.VOB
MPG, 1 video track, 1 audio track, 0:01:55
1: MPEG2, 480i60 /1.001 (16:9)
2: DTS, 5.1 channels, 24 bits, 1510kbps, 48kHz, -376ms

N:\RipBot264v1.16.3\Tools\eac3to>eac3to N:\Original\VIDEO_TS\VTS_01_4.VOB
MPG, 1 video track, 1 audio track, 13:14:56
1: MPEG2, 480i60 /1.001 (16:9)
2: DTS, 5.1 channels, 24 bits, 1510kbps, 48kHz, -378ms

N:\RipBot264v1.16.3\Tools\eac3to>eac3to N:\Original\VIDEO_TS\VTS_01_5.VOB
MPG, 1 video track, 1 audio track, 13:13:51
1: MPEG2, 480i60 /1.001 (16:9)
2: DTS, 5.1 channels, 24 bits, 1510kbps, 48kHz, -482ms

N:\RipBot264v1.16.3\Tools\eac3to>eac3to N:\Original\VIDEO_TS\VTS_01_6.VOB
MPG, 1 video track, 1 audio track, 0:07:43
1: MPEG2, 480i60 /1.001 (16:9)
2: DTS, 5.1 channels, 24 bits, 1510kbps, 48kHz, -327ms

N:\RipBot264v1.16.3\Tools\eac3to>eac3to N:\Original\VIDEO_TS\VTS_01_7.VOB
MPG, 1 video track, 1 audio track, 13:13:10
1: MPEG2, 480i60 /1.001 (16:9)
2: DTS, 5.1 channels, 24 bits, 1510kbps, 48kHz, -236ms

N:\RipBot264v1.16.3\Tools\eac3to>

Do I need to account for different delays for different vobs? Or am I barking up the wrong tree?

tebasuna51
25th November 2010, 03:41
Use:
eac3to N:\Original\VIDEO_TS\VTS_01_1.VOB+...+N:\Original\VIDEO_TS\VTS_01_7.VOB

Inspector.Gadget
25th November 2010, 03:58
If things are still out of sync: Try demuxing the entire title with DGIndex to see if eac3to gives you the same output (e.g., load the VOBs 1-7 in order into DGIndex, make sure "demux all streams" is selected for audio, and run it. It'll print a delay value to the file name of the outputted DTS file.

There is another potential problem with audio from a DVD:

So far as I know, neither DGIndex nor eac3to can automatically correct a series of VOBs that either contains more than one title (a trailer at the beginning, etc.) or a blank cell in VOB 1 which consists of a few seconds of black screen and no audio. Either one will wreck delay values for the whole movie. The thing to do if you have a video-only cell near the beginning is to set DGIndex's first marker to the first frame of actual content (first frame that isn't totally black) and demux from there; that will correct the audio delay so it starts where that frame does, except for limitations built into the audio codec which may leave you with a remaining value of some milliseconds (again printed to the file name of the output audio).

The way to handle a multi-title VOB set is to run PGCDemux against a complete decrypted copy of the original DVD and make sure it runs in the PGC and Title domain (two select boxes). Your output will be only the movie, and you can pass that to DGIndex or eac3to without further problems.

tebasuna51
25th November 2010, 11:49
...
There is another potential problem with audio from a DVD:

So far as I know, neither DGIndex nor eac3to can automatically correct a series of VOBs that either contains more than one title (a trailer at the beginning, etc.)
I agree. Of course you need extract from DVD only the Title for main movie with DVDDecrypter or PGCDemux or other tool.

or a blank cell in VOB 1 which consists of a few seconds of black screen and no audio...
About this problem I always have a doubt.
The workaround explained for DGIndex is clear: the delay printed in audio extracted file is related to the .d2v video index created.
But I'm not sure how eac3to manage this problem.

Anyway you can't know if you need a different initial delay to match BD video and must be verified always.

But the problem with delays between VOB files (overlap) is managed correctly (I think) by both tools.

alex_t
26th November 2010, 12:39
Hi everybody and madshi.

First, BIG THANKS madshi for this software !

I would like to report here a bug (I think it is but I'm not sure). Revision is 3.24.

I wanted to convert a Blu-ray 23.976 in 25.000 FPS. The command was as below:

eact3to blu-ray_directory 1) 2: k:\movie.mkv 3: k:\audio.flac 13: k:\subtitle.sup -speedup

Conversion for audio was : DTS HD MA to FLAC with dts arcsoft decoder

During the 1st pass, clipping has been detected by eac3to and a 2nd pass has been done.

During the 1st pass: a message said 'convert 23.976 to 25.000'

But at the end of 2nd pass, a message said 'fps at 23.976 has been added in MKV header' (something like this)

Result was that the FPS remained at 23.976. I use MPC HC as player.

I would like to change 23.976 FPS into 25.000 FPS with eac3to. May be I did not use the good -option (I used -speedup)

What is the difference between -speedup and -changeTo25.000 ?

Thanks

Regards
(sorry for my english)

nurbs
26th November 2010, 15:21
I haven't used speedup myself, but normally you have to put the options next to the track you want to use them on, e.g.
eac3to blu-ray_directory 1) 2: k:\movie.mkv -speedup 3: k:\audio.flac -speedup 13: k:\subtitle.sup -speedup (I don't know if this actually works for subtitles)

May I ask why you want to convert the framerate?
It's usually more trouble than it's worth and converting from 23.976 to 25 is almost never necessary.

TinTime
26th November 2010, 16:17
But the problem with delays between VOB files (overlap) is managed correctly (I think) by both tools.

I've had occasional problems with eac3to and DVDs ("A Good Year" was one) so I always use DGIndex for demuxing DVDs.

Inspector.Gadget
26th November 2010, 18:11
Hi everybody and madshi.

First, BIG THANKS madshi for this software !

I would like to report here a bug (I think it is but I'm not sure). Revision is 3.24.

...

You have to do audio and video speed-up separately, because eac3to doesn't speed up video or subtitles. One way to accomplish this is to use eac3to as usual for audio speed-up.

For video, you have two methods: If you're re-encoding anyway, just add AssumeFPS(25, 1, false) to your Avisynth script. If you're not going to re-encode, mux your final MKV (original video + sped-up audio) with MKVMergeGUI, and make sure to set the video framerate to be 25.

For subtitles, you can OCR Blu-ray SUP to SRT with Suprip and then convert the framerate of the output SRT from 23.976 to 25.00fps using Subrip.

tebasuna51
26th November 2010, 20:53
You have to do audio and video speed-up separately, because eac3to doesn't speed up video ...

For video,... mux your final MKV (original video + sped-up audio) with MKVMergeGUI, and make sure to set the video framerate to be 25.
This work also:
eac3to blu-ray_directory 1) 2: k:\movie.mkv -speedup 3: k:\audio.flac -speedup

The movie.mkv is already 25 fps

Mtz
29th November 2010, 06:02
I know 3 modes for PAL > NTSC (25>23.976) audio conversion (slowdown) used in 2 programs. Can you recommend some audio conversion for AC3 > AC3?

1. eac3to > slowdown (or another setting?)

2. behappy > Timestretch with which options of these:
- Rate, tempo, and no pitch correction
- Pitch changed preserving tempo
- Tempo changed, pitch correction

3. behappy > Resample SSRC - Slowdown 25 -> 23.976
?

enjoy,
Mtz

sreemv
29th November 2010, 09:04
The way to handle a multi-title VOB set is to run PGCDemux against a complete decrypted copy of the original DVD and make sure it runs in the PGC and Title domain (two select boxes). Your output will be only the movie, and you can pass that to DGIndex or eac3to without further problems.

I did exactly what you suggested - used PGCDemux [by PGC and Titles domain] and got a clean DTS - tried it as is [23.976] and a sped up version [24fps] - still no sync. scratching head.

But, shouldnt I be setting the source to "29.970" for NTSC? Thats what it shows in mediainfo as frame reate for the video.

On an another note, any advice on how I might compare 2 audio [ac3, DTS] tracks side-by-side with timecodes?

tebasuna51
29th November 2010, 12:56
I know 3 modes for PAL > NTSC (25>23.976) audio conversion (slowdown) used in 2 programs. Can you recommend some audio conversion for AC3 > AC3?

A conversion implies 3 steps:

a) Decode audio:

a.1) eac3to can use Nero 7 decoder (certified but there are some issues reported about cancel DialNorm) or sonic (applies DRC always, not recommended) or free decoder libav.

a.2) BeHappy can use NicAudio or DirectShow decoder. I can't know your DirectShow decoder and how is configured.

After my test I prefer NicAudio but maybe is conditioned by parental love.

There are also other commercial certified Dolby Digital audio decoders, take care with DN and DRC.

b) Tempo conversion.

b.1) eac3to can use SSRC routines, by default, but also r8brain.

b.2) BeHappy can use SSRC routines or SoundTouch (TimeStretch).

SSRC, r8brain and TimeStretch-rate change the tempo and the pitch. If your audio is from a PAL-DVD maybe the original pitch is recovered, then for this source SSRC is recommended (maybe the SSRC routines in eac3to are more updated than included in AviSynth).

For other sources with correct pitch (PAL cameras for instance) maybe you want preserve the pitch and use TimeStrech-tempo.

There are also many Audio Editors (Audacity, Audition, SoundForge, ...) that can do the job with many options.
Maybe Prosoniq TimeFactory is a good option between the commercial soft.

c) Encode audio:
Both, eac3to and BeHappy, use Aften to encode AC3. The only difference can be the versión used. Maybe the best quality using Aften is with the parameters:
-b 640 -readtoeof 1 -exps 32 -s 1
You can use the last Aften.exe version with BeHappy and with eac3to with something like:

eac3to input stdout.wav -slowdown | Aften -b 640 -readtoeof 1 -exps 32 -s 1 - output.ac3

Of course you can use any commercial certified Dolby Digital audio encoder.

Make your choice.