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

Mark_A_W
23rd September 2010, 13:53
No, not a constant delay.

The audio varies from scene to scene, which must have been different m2ts file chunks. It's like the overlap correction is incorrect.

It used to work fine, but I haven't been able to figure which version it went wrong.

Mark_A_W
23rd September 2010, 13:58
I get a correct result if I use MakeMKV tp make a MKV, then use eac3to to convert convert the audio from that to flac (then mux with mkvmerge).

Inspector.Gadget
23rd September 2010, 14:46
Mark_A_W: Are you getting the message seen in mr. duck's post immediately above?

DJ_Phatic
23rd September 2010, 21:06
I would like to start using eac3to again but I find that when I install Haali, it decides to take over my computer even though i untick everything when installing.

I don't Haali to be used for playback of mkv and ts/m2ts. Any suggestions how I can install haali without it taking priority? Filemerit doesn't seem to make a difference.

SamuriHL
23rd September 2010, 21:08
I would like to start using eac3to again but I find that when I install Haali, it decides to take over my computer even though i untick everything when installing.

I don't Haali to be used for playback of mkv and ts/m2ts. Any suggestions how I can install haali without it taking priority? Filemerit doesn't seem to make a difference.

I use batch files to unregister all the dlls/ax files for both 32 and 64 bit environments. Then I just register the files needed for mkv when I need it in the 32 bit environment.

Midzuki
23rd September 2010, 22:54
I would like to start using eac3to again but I find that when I install Haali, it decides to take over my computer even though i untick everything when installing

I don't Haali to be used for playback of mkv and ts/m2ts. Any suggestions how I can install haali without it taking priority? Filemerit doesn't seem to make a difference.

It looks like the "dictator complex" of Haali has been fixed in version 1.10.262.12 (2010/Aug/14). Except for the "generic" (Matroska) splitter, all its other components remain happily set at merit=0x00200000.

As for the playback of transport streams, I highly recommend the ArcSoft splitter and decoders. :)

Mark_A_W
23rd September 2010, 22:57
Mark_A_W: Are you getting the message seen in mr. duck's post immediately above?

Yes.
And lots of discontinuity errors. Then Video overlap errors.


But it then runs the second pass, which I thought fixed that.


Do I need to manually run a 3rd pass? (I'll have to talk to MikeEby about including that automatically in his Gui, if that is the case).


Thanks

Mark

sub24ox7
23rd September 2010, 23:38
yea I have done a few 2 in one encodes lately last was Anchoman: The Legend Of Ron Burgundy which had an authoring error where there was two of the same dreamwork clip intro in both of the .mpls files for the two runtimes. Anyway the disc uses branching obviously and when demuxing the video and audio and after encoding the video and adding the audio and muxing with mkvmerge there are no audio gaps via that method. I have noticed
that playback with mpc-hc of blu-ray discs with branching via the mpls file the audio is getting out of sync everytime a new m2ts file is played in the mpls.

mr.duck
23rd September 2010, 23:46
Do I need to manually run a 3rd pass? (I'll have to talk to MikeEby about including that automatically in his Gui, if that is the case).

I've already tried another pass with eac3to and the results are less than perfect.

Something else I have found out, if I simply demux the file with another program like TSmuxer, and then play the output files (which is badly out of sync at this point) but then manually adjust the audio sync in MPC HC to the exact number reported by eac3to when it scans the file (-650ms in my example file), then I get better results than if eac3to did the muxing to mkv which is supposed to take care of this offset! Even after all these multiple passes.

eac3to is nearly there, but I think I worked out what the problem is. eac3to needs to insert missing frames in the audio or video to maintain the correct timecodes to keep it in sync. For me it happens when the source file is not perfect.

SLKabaker
24th September 2010, 05:46
@Midzuki

Thank you for the link. I appreciate the help. I will try these options out.

hoju3508
24th September 2010, 06:06
BDInfo shows these "Angles" at the beginning of the movie.



DISC INFO:

Disc Title: MEET_THE_ROBINSONS
Disc Size: 41,463,082,132 bytes
Protection: AACS
BD-Java: Yes
BDInfo: 0.5.6

PLAYLIST REPORT:

Name: 00035.MPLS
Length: 1:34:30 (h:m:s)
Size: 26,194,931,712 bytes
Total Bitrate: 36.96 Mbps

Angle 1 Length: 0:08:39 (h:m:s) / 1:34:30 (h:m:s)
Angle 1 Size: 2,380,879,872 bytes / 26,189,082,624 bytes
Angle 1 Total Bitrate: 36.63 Mbps / 36.95 Mbps

Angle 2 Length: 0:08:39 (h:m:s) / 1:34:30 (h:m:s)
Angle 2 Size: 2,382,815,232 bytes / 26,191,017,984 bytes
Angle 2 Total Bitrate: 36.66 Mbps / 36.95 Mbps

All Angles Length: 1:51:50 (h:m:s)
All Angles Size: 30,958,626,816 bytes
All Angles Bitrate: 36.91 Mbps

VIDEO:

Codec Bitrate Description
----- ------- -----------
MPEG-4 AVC Video 24057 kbps 1080p / 23.976 fps / 16:9 / High Profile 4.1
MPEG-4 AVC Video (1) 2176 (23726) kbps 1080p / 23.976 fps / 16:9 / High Profile 4.1
MPEG-4 AVC Video (2) 2177 (23745) kbps 1080p / 23.976 fps / 16:9 / High Profile 4.1

AUDIO:

Codec Language Bitrate Description
----- -------- ------- -----------
LPCM Audio English 4608 kbps 5.1 / 48 kHz / 4608 kbps / 16-bit
DTS Audio Dutch 1509 kbps 5.1 / 48 kHz / 1509 kbps / 24-bit / DN -4dB
DTS Audio French 1509 kbps 5.1 / 48 kHz / 1509 kbps / 24-bit / DN -4dB
Dolby Digital Audio English 640 kbps 5.1 / 48 kHz / 640 kbps / DN -4dB
Dolby Digital Audio Dutch 640 kbps 5.1 / 48 kHz / 640 kbps / DN -4dB
Dolby Digital Audio Dutch 640 kbps 5.1 / 48 kHz / 640 kbps / DN -4dB
Dolby Digital Audio French 640 kbps 5.1 / 48 kHz / 640 kbps / DN -4dB
Dolby Digital Audio English 192 kbps 2.0 / 48 kHz / 192 kbps / DN -4dB / Dolby Surround

SUBTITLES:

Codec Language Bitrate Description
----- -------- ------- -----------
Presentation Graphics English 37.935 kbps
Presentation Graphics English 41.886 kbps
Presentation Graphics English 0.086 kbps
Presentation Graphics Dutch 25.859 kbps
Presentation Graphics Dutch 49.223 kbps
Presentation Graphics Dutch 0.146 kbps
Presentation Graphics French 29.440 kbps
Presentation Graphics French 59.777 kbps
Presentation Graphics French 1.373 kbps

FILES:

Name Time In Length Size Total Bitrate
---- ------- ------ ---- -------------
00120.M2TS 0:00:00.000 0:00:49.883 225,810,432 36,214
00000.M2TS 0:00:49.883 0:00:56.765 264,382,464 37,260
00034.M2TS (1) 0:00:49.883 0:00:56.765 261,402,624 36,840
00317.M2TS (2) 0:00:49.883 0:00:56.765 261,414,912 36,842
00001.M2TS 0:01:46.648 0:06:24.258 1,782,933,504 37,119
00002.M2TS 0:08:10.907 0:00:35.076 162,091,008 36,968
00036.M2TS (1) 0:08:10.907 0:00:35.076 162,109,440 36,973
00318.M2TS (2) 0:08:10.907 0:00:35.076 162,109,440 36,973
00003.M2TS 0:08:45.983 0:02:30.066 694,622,208 37,030
00004.M2TS 0:11:16.050 0:00:30.030 139,524,096 37,169
00102.M2TS (1) 0:11:16.050 0:00:30.030 139,499,520 37,163
00319.M2TS (2) 0:11:16.050 0:00:30.030 139,505,664 37,164
00005.M2TS 0:11:46.080 0:14:22.987 4,076,199,936 37,787
00006.M2TS 0:26:09.067 0:00:27.277 126,222,336 37,019
00046.M2TS (1) 0:26:09.067 0:00:27.277 126,160,896 37,001
00320.M2TS (2) 0:26:09.067 0:00:27.277 126,259,200 37,030
00309.M2TS 0:26:36.344 0:00:28.028 129,921,024 37,083
00306.M2TS 0:27:04.372 0:00:56.306 261,163,008 37,106
00307.M2TS (1) 0:27:04.372 0:00:56.306 261,163,008 37,106
00321.M2TS (2) 0:27:04.372 0:00:56.306 261,322,752 37,129
00009.M2TS 0:28:00.678 0:01:25.376 395,784,192 37,086
00010.M2TS 0:29:26.055 0:00:43.668 202,156,032 37,035
00054.M2TS (1) 0:29:26.055 0:00:43.668 202,100,736 37,024
00055.M2TS (2) 0:29:26.055 0:00:43.668 202,192,896 37,041
00011.M2TS 0:30:09.724 0:08:27.340 2,389,186,560 37,674
00012.M2TS 0:38:37.064 0:00:20.729 95,852,544 36,993
00058.M2TS (1) 0:38:37.064 0:00:20.729 95,877,120 37,002
00059.M2TS (2) 0:38:37.064 0:00:20.729 95,784,960 36,966
00013.M2TS 0:38:57.793 0:03:02.140 844,523,520 37,093
00014.M2TS 0:41:59.933 0:00:56.181 260,536,320 37,099
00062.M2TS (1) 0:41:59.933 0:00:56.181 260,560,896 37,103
00063.M2TS (2) 0:41:59.933 0:00:56.181 260,640,768 37,114
00015.M2TS 0:42:56.115 0:09:09.882 2,628,986,880 38,248
00016.M2TS 0:52:05.997 0:00:23.815 109,897,728 36,916
00066.M2TS (1) 0:52:05.997 0:00:23.815 109,928,448 36,927
00067.M2TS (2) 0:52:05.997 0:00:23.815 109,928,448 36,927
00017.M2TS 0:52:29.813 0:03:46.184 1,043,951,616 36,924
00018.M2TS 0:56:15.997 0:00:20.520 95,102,976 37,076
00070.M2TS (1) 0:56:15.997 0:00:20.520 94,955,520 37,019
00071.M2TS (2) 0:56:15.997 0:00:20.520 94,955,520 37,019
00019.M2TS 0:56:36.517 0:05:38.379 1,576,636,416 37,275
00020.M2TS 1:02:14.897 0:00:21.146 98,248,704 37,169
00104.M2TS (1) 1:02:14.897 0:00:21.146 98,260,992 37,174
00105.M2TS (2) 1:02:14.897 0:00:21.146 98,242,560 37,167
00021.M2TS 1:02:36.043 0:03:47.060 1,105,901,568 38,964
00022.M2TS 1:06:23.103 0:00:18.852 87,263,232 37,031
00078.M2TS (1) 1:06:23.103 0:00:18.852 87,250,944 37,025
00079.M2TS (2) 1:06:23.103 0:00:18.852 87,281,664 37,038
00023.M2TS 1:06:41.956 0:06:06.074 2,046,320,640 44,719
00024.M2TS 1:12:48.030 0:00:20.603 100,663,296 39,085
00082.M2TS (1) 1:12:48.030 0:00:20.603 100,700,160 39,099
00083.M2TS (2) 1:12:48.030 0:00:20.603 100,663,296 39,085
00025.M2TS 1:13:08.634 0:01:58.576 547,350,528 36,928
00026.M2TS 1:15:07.210 0:00:21.187 97,579,008 36,843
00086.M2TS (1) 1:15:07.210 0:00:21.187 97,634,304 36,864
00087.M2TS (2) 1:15:07.210 0:00:21.187 97,640,448 36,867
00027.M2TS 1:15:28.398 0:04:37.151 1,269,331,968 36,639
00028.M2TS 1:20:05.550 0:00:20.186 93,007,872 36,859
00090.M2TS (1) 1:20:05.550 0:00:20.186 92,971,008 36,844
00091.M2TS (2) 1:20:05.550 0:00:20.186 93,001,728 36,856
00029.M2TS 1:20:25.737 0:02:30.066 695,531,520 37,079
00030.M2TS 1:22:55.803 0:00:19.686 90,765,312 36,885
00094.M2TS (1) 1:22:55.803 0:00:19.686 90,746,880 36,877
00095.M2TS (2) 1:22:55.803 0:00:19.686 90,734,592 36,872
00106.M2TS 1:23:15.490 0:02:00.578 556,707,840 36,936
00107.M2TS 1:25:16.068 0:02:05.458 579,508,224 36,953
00032.M2TS 1:27:21.527 0:00:27.944 102,273,024 29,279
00098.M2TS (1) 1:27:21.527 0:00:27.944 99,557,376 28,501
00099.M2TS (2) 1:27:21.527 0:00:27.944 101,136,384 28,953
00033.M2TS 1:27:49.472 0:06:41.192 1,218,994,176 24,307


After remuxing the movie with Clown_BD, the fps doesn't look right and BDInfo wasn't able to scan it.

eac3to v3.24
command line: "C:\Tools\Clown_BD_v0.76\eac3to\eac3to.exe" "F:" 1) -progressnumbers -LOG="C:\Clown_BD_WORK\Robinsons\LOGS\eac3to_PASS2_LOG.LOG"
------------------------------------------------------------------------------
M2TS, 1 video track, 8 audio tracks, 9 subtitle tracks, 1:34:29, 79.657p
1: Chapters, 20 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: RAW/PCM, English, 5.1 channels, 16 bits, 48kHz
4: AC3, English, 5.1 channels, 640kbps, 48kHz, dialnorm: -27dB
5: DTS, French, 5.1 channels, 24 bits, 1509kbps, 48kHz, dialnorm: -4dB
6: AC3, French, 5.1 channels, 640kbps, 48kHz, dialnorm: -27dB
7: DTS, Dutch, 5.1 channels, 24 bits, 1509kbps, 48kHz, dialnorm: -4dB
8: AC3, Dutch, 5.1 channels, 640kbps, 48kHz, dialnorm: -27dB
9: AC3, Dutch, 5.1 channels, 640kbps, 48kHz, dialnorm: -27dB
10: AC3 Surround, English, 2.0 channels, 192kbps, 48kHz, dialnorm: -27dB
11: Subtitle (PGS), English
12: Subtitle (PGS), English
13: Subtitle (PGS), French
14: Subtitle (PGS), Dutch
15: Subtitle (PGS), French
16: Subtitle (PGS), Dutch
17: Subtitle (PGS), English
18: Subtitle (PGS), French
19: Subtitle (PGS), Dutch


Any ideas?

Thunderbolt8
24th September 2010, 11:32
if the movie is in sync afterwards, dont care whats written there.

if not, try to add the .m2ts files (1+2+3...) manually instead of using the playlist.

hoju3508
24th September 2010, 14:55
Yes, it's in sync but TMT3 thinks it's a 13 hr movie for some reason. It's kind of odd.

if not, try to add the .m2ts files (1+2+3...) manually instead of using the playlist.

I might give this a try. Thanks.

Dogway
24th September 2010, 20:36
Hello, my source audio file is 25fps ac3 with 2 front channels and 2 rear channels. As for now Im using this code:
eac3to "input.ac3" "output.aac" -quality=0.30 -changeTo24.000 -down2 -phaseShift -mixlfe -resampleTo44100 -25.000
I want to enlength the audio to fit into the 24fps film, and downmixing all channels to Stereo 2. Does -phaseShift fix the pitch problem when changing audio lenght? and second, with this code I still have the 4 channels, how can I downmix them to 2?

tebasuna51
25th September 2010, 01:17
Hello, my source audio file is 25fps ac3 with 2 front channels and 2 rear channels.

I want to enlength the audio to fit into the 24fps film, and downmixing all channels to Stereo 2. Does -phaseShift fix the pitch problem when changing audio lenght?
Nope. BTW, don't use -phaseShift never with ac3 source.
And -mixlfe do nothing because don't exist LFE channel in the source
and second, with this code I still have the 4 channels, how can I downmix them to 2?
The -down2 parameter only work with 5.1 source.

You can use an .avs file like this:
a = NicAc3Source("D:\path\input.ac3")

# 4 Channels Quadro L,R,SL,SR, downmix to simple stereo
# flr = GetChannel(a, 1, 2)
# blr = GetChannel(a, 3, 4)
# MixAudio(flr, blr, 0.5, 0.5)

# 4 Channels Quadro L,R,SL,SR, downmix to DPL II
flr = GetChannel(a, 1, 2)
bl = GetChannel(a, 3)
br = GetChannel(a, 4)
sl = MixAudio(bl, br, 0.3714, 0.2144)
sr = MixAudio(bl, br, -0.2144, -0.3714)
blr = MergeChannels(sl, sr)
MixAudio(flr, blr, 0.4142, 1.0)

# [DSP: TimeStretch - 25 -> 24] pitch preserved
TimeStretch(tempo=96)

# [DSP: Resample SSRC - 44100 Hz]
SSRC(44100)

# [DSP: Normalize to 100%]
Normalize()
and encode with NeroAacEnc to .m4a with MeGUI, BeHappy or Wavi.

Dogway
25th September 2010, 03:45
Just WOW! it worked perfect. I didnt know I could load an avs into the audio input of MeGUI. Aside solving my issue, I just learned a little more, I hope this enlighting post awakes an interest on me on the audio part of the digital encoding.gracias:D

BTW what bitrate do you recommend me for medium quality towards good in m4a/AAC? something like 128,160 of mp3.

Also, in your script you are downmixing, normalizing,etc but in Megui the audio encoder also does its stuff in the Config options. Do I need to uncheck, keep originals everything from the options?

tebasuna51
25th September 2010, 10:26
...
BTW what bitrate do you recommend me for medium quality towards good in m4a/AAC? something like 128,160 of mp3.
To transcode from lossy sources (AC3,DTS,...) I always recommend at least -quality=0.35 (AAC-LC), with 0.30 you obtain AAC-HE, and is not always compatible with some players.
Also, in your script you are downmixing, normalizing,etc but in Megui the audio encoder also does its stuff in the Config options. Do I need to uncheck, keep originals everything from the options?
A little offtopic but ...
Yeep, you need uncheck all, or don't put Resample/Normalize in avs and use the Config options.
(These two functions are equivalent to eac3to, resample with SSRC lib).

The predefined downmix with MeGUI/BeHappy work only with 5.1 sources, like with eac3to. Then you need include the special downmix avs method for sources with 3,4 or 5 channels.

The change audio duration (for different fps video) in MeGUI only work for 23.976 <-> 25 using SSRC method without preserving pitch (like eac3to, but eac3to have more options).
To preserve pitch you need use the AviSynth function TimeStretch(tempo) included in BeHappy.

deathlord
26th September 2010, 21:52
I have just found something weird on "Fringe Season 2" BD. On disc three, the playlist for episode 14 "Jacksonville" is not listed by eac3to. It is relatively obvious that this must be 00072.mpls. Running eac3to on this file shows the right length (about 40 min), but instead of showing 00027.m2ts it shows 00027.m2ts+00027.m2ts and consequently demuxes files of double length.
With this length, eac3to should actually list this playlist aswell, but maybe there is an error in the playlist?
In any event, I just thought I would report this, perhaps somebody can make sense of it. Of course the problem can be solved easily by avoiding playlists for this episode and using the .m2ts file directly.

cavediver
26th September 2010, 23:18
I have just found something weird on "Fringe Season 2" BD. On disc three, the playlist for episode 14 "Jacksonville" is not listed by eac3to. It is relatively obvious that this must be 00072.mpls. Running eac3to on this file shows the right length (about 40 min), but instead of showing 00027.m2ts it shows 00027.m2ts+00027.m2ts and consequently demuxes files of double length.
With this length, eac3to should actually list this playlist aswell, but maybe there is an error in the playlist?
In any event, I just thought I would report this, perhaps somebody can make sense of it. Of course the problem can be solved easily by avoiding playlists for this episode and using the .m2ts file directly.

BDInfo shows the same. Also, 00075.mpls shows the same double file for 00023.m2ts. I think it's an error in the mpls files.

setarip_old
27th September 2010, 00:05
@deathlord, @cavediver

Hi!

Does the "Backup>>Playlist" sub-folder contain .MPLS files IDENTICAL to those of the primary "Playlist" sub-folder?

Mark_A_W
27th September 2010, 04:07
Is there anything that can be done to reduce audio sync issues with eac3to? It usually happens when I get a message like this...

v01 The MKV file was created without making use of the gap/overlap information.
v01 Please check whether audio is in sync. If it is in sync everything is fine.
v01 Otherwise ask eac3to to repeat the muxing. It will then automatically make
v01 use of the detailed gap/overlap information.

If I don't repeat the muxing then sometimes the audio can be really badly out of sync. It is not predictable how much. If I repeat the muxing as it says, it successfully makes the new MKV file without this error message. But then the audio goes out of sync by a small but very noticeable amount.

So repeating the muxing does do something but maybe eac3to needs extra help by having the file cleaned up by another program that can take care of the gaps etc before passing it on to eac3to? Any other ideas how I can stop the audio going out of sync?


Anyone having success (or failure..) with seamless branching titles?

Somewhere along the way they stop working for me - major audio sync issues, changing from scene to scene.

It's not clear if the automatic second pass is supposed to correct this, or if we need to make a manual third pass (and possibly manually compensate for an audio delay).


Umm..a little guidance? Please.



Here is an edited log (sorry for the long post..)


eac3to v3.24

[v02] [0:07:08] The source file seems to be damaged (sync byte missing). <WARNING>
[s31] [0:07:05] The source file seems to be damaged (sync byte missing). <WARNING>
[s13] [0:06:34] The source file seems to be damaged (sync byte missing). <WARNING>
[a04] [0:07:07] The source file seems to be damaged (sync byte missing). <WARNING>
[s31] Creating file "F:\MKV temp files\Moofie - 31 English Subtitle.sup"...
[s31] [0:53:20] The source file seems to be damaged (discontinuity). <WARNING>
[a04] [0:53:21] The source file seems to be damaged (discontinuity). <WARNING>
[v02] [0:53:20] The source file seems to be damaged (discontinuity). <WARNING>
[s13] [0:52:47] The source file seems to be damaged (discontinuity). <WARNING>
[v02] [0:57:31] The source file seems to be damaged (discontinuity). <WARNING>
[a04] [0:57:31] The source file seems to be damaged (discontinuity). <WARNING>
[s31] [0:53:21] The source file seems to be damaged (discontinuity). <WARNING>
[s13] [0:56:55] The source file seems to be damaged (discontinuity). <WARNING>
[s31] [1:03:24] The source file seems to be damaged (discontinuity). <WARNING>
[a04] [1:03:52] The source file seems to be damaged (discontinuity). <WARNING>
[v02] [1:03:52] The source file seems to be damaged (discontinuity). <WARNING>
[s13] [1:02:51] The source file seems to be damaged (discontinuity). <WARNING>
[v02] [1:23:10] The source file seems to be damaged (discontinuity). <WARNING>
[a04] [1:23:10] The source file seems to be damaged (discontinuity). <WARNING>
[s13] [1:22:27] The source file seems to be damaged (discontinuity). <WARNING>
[s31] [1:03:52] The source file seems to be damaged (discontinuity). <WARNING>
[s31] [1:25:53] The source file seems to be damaged (discontinuity). <WARNING>
[v02] [1:25:55] The source file seems to be damaged (discontinuity). <WARNING>
[a04] [1:25:55] The source file seems to be damaged (discontinuity). <WARNING>
[s13] [1:25:19] The source file seems to be damaged (discontinuity). <WARNING>
[v02] [1:30:06] The source file seems to be damaged (discontinuity). <WARNING>
[a04] [1:30:06] The source file seems to be damaged (discontinuity). <WARNING>
[s31] [1:25:56] The source file seems to be damaged (discontinuity). <WARNING>
[s13] [1:28:43] The source file seems to be damaged (discontinuity). <WARNING>
[s31] [1:33:10] The source file seems to be damaged (discontinuity). <WARNING>
[v02] [1:33:24] The source file seems to be damaged (discontinuity). <WARNING>
[a04] [1:33:24] The source file seems to be damaged (discontinuity). <WARNING>
[s13] [1:32:29] The source file seems to be damaged (discontinuity). <WARNING>
[v02] [1:35:41] The source file seems to be damaged (discontinuity). <WARNING>
[a04] [1:35:41] The source file seems to be damaged (discontinuity). <WARNING>
[s13] [1:34:26] The source file seems to be damaged (discontinuity). <WARNING>
[s31] [1:33:25] The source file seems to be damaged (discontinuity). <WARNING>
[v02] Video overlaps for 20 frames at playtime 0:53:21. <WARNING>
[v02] Video overlaps for 7 frames at playtime 0:57:30. <WARNING>
[v02] Video overlaps for 14 frames at playtime 0:57:31. <WARNING>
[v02] Video overlaps for 21 frames at playtime 0:57:32. <WARNING>
[v02] Video overlaps for 7 frames at playtime 1:03:52. <WARNING>
[v02] Video overlaps for 14 frames at playtime 1:03:52. <WARNING>
[v02] Video overlaps for 43 frames at playtime 1:03:52. <WARNING>
[v02] Video overlaps for 7 frames at playtime 1:23:10. <WARNING>
[v02] Video overlaps for 14 frames at playtime 1:23:11. <WARNING>
[v02] Video overlaps for 175 frames at playtime 1:23:11. <WARNING>
[v02] Video overlaps for 7 frames at playtime 1:25:53. <WARNING>
[v02] Video overlaps for 14 frames at playtime 1:25:57. <WARNING>
[v02] Video overlaps for 7 frames at playtime 1:25:57. <WARNING>
[v02] Video overlaps for 7 frames at playtime 1:30:07. <WARNING>
[v02] Video overlaps for 7 frames at playtime 1:30:08. <WARNING>
[v02] Video overlaps for 28 frames at playtime 1:30:08. <WARNING>
[v02] Video overlaps for 7 frames at playtime 1:33:20. <WARNING>
[v02] Video overlaps for 15 frames at playtime 1:33:27. <WARNING>
[v02] Video overlaps for 12 frames at playtime 1:33:27. <WARNING>
[v02] Video overlaps for 7 frames at playtime 1:35:43. <WARNING>
[v02] Video overlaps for 14 frames at playtime 1:35:44. <WARNING>
[v02] Video overlaps for 2 frames at playtime 1:35:44. <WARNING>
[v02] Video overlaps for 7 frames at playtime 1:37:46. <WARNING>
[v02] The MKV file was created without making use of the gap/overlap information. <WARNING>
[v02] Please check whether audio is in sync. If it is in sync everything is fine. <WARNING>
[v02] Otherwise ask eac3to to repeat the muxing. It will then automatically make <WARNING>
[v02] use of the detailed gap/overlap information. <WARNING>
[a04] The original audio track has a constant bit depth of 24 bits.
[a04] Audio overlaps for 12ms at playtime 0:17:27. <WARNING>
[a04] Audio overlaps for 6ms at playtime 0:49:19. <WARNING>
[a04] Audio overlaps for 247ms at playtime 0:53:20. <WARNING>
[a04] Audio overlaps for 258ms at playtime 0:57:31. <WARNING>
[a04] Audio overlaps for 382ms at playtime 1:03:51. <WARNING>
[a04] Audio overlaps for 1161ms at playtime 1:23:09. <WARNING>
[a04] Audio overlaps for 173ms at playtime 1:25:55. <WARNING>
[a04] Audio overlaps for 261ms at playtime 1:30:06. <WARNING>
[a04] Audio overlaps for 204ms at playtime 1:33:24. <WARNING>
[a04] Audio overlaps for 143ms at playtime 1:35:41. <WARNING>
[a04] Starting 2nd pass...
[a04] Decoding FLAC...
[a04] Realizing RAW/PCM gaps...
[a04] Encoding FLAC with libFlac...
[a04] Creating file "F:\MKV temp files\Moofie - 4 DTS Master.flac"...
[a04] The processed audio track has a constant bit depth of 24 bits.
Added fps value (24 /1.001) to MKV header.

hoju3508
27th September 2010, 05:02
eac3to v3.24

[v02] [0:07:08] The source file seems to be damaged (sync byte missing). <WARNING>


I've gotten this before due to a bad rip (bad source).

Mark_A_W
27th September 2010, 05:14
I've gotten this before due to a bad rip (bad source).


I don't think that's it.

Every seamless-branching title has this issue.


They all play fine in TMT, and if I process with MakeMKV, they work fine.

madshi
27th September 2010, 07:37
Just a quick answer: "The source file seems to be damaged" is *NOT* supposed to appear for seamless branching titles. I've never in my whole life seen it on my PC with any seamless branching title. Try ripping to harddisk with AnyDVD HD first and then run eac3to on the harddisk folder.

Jeff Flowerday
27th September 2010, 14:50
Bad Source: I had the same problem recently with my Cars Blu-Ray. I waited for a new AnyDVD HD, just installed the release from a few days ago, and the problem went away.

deathlord
30th September 2010, 20:46
@deathlord, @cavediver

Hi!

Does the "Backup>>Playlist" sub-folder contain .MPLS files IDENTICAL to those of the primary "Playlist" sub-folder?

They are not identical,
00072.mpls in the Playlist folder has md5
46612f7c8c248b74dde7c57ccad25a67

00072.mpls in the Backup\Playlist folder has md5
e9d5b291218c5409228547b9ebfcb0d2

However, the playlists are identical as far as eac3to is concerned:

eac3to Fringe_Season_2\FRINGE_SEASON_2_DISC_3\BDMV\PLAYLIST\00072.mpls
1) 00072.mpls, 00027.m2ts+00027.m2ts, 0:43:58
- Chapters, 9 chapters
- VC-1, 1080p24 /1.001 (16:9)
- AC3, English, multi-channel, 48kHz
- AC3, Portuguese, stereo, 48kHz


eac3to Fringe_Season_2\FRINGE_SEASON_2_DISC_3\BDMV\BACKUP\PLAYLIST\00072.
mpls
1) 00072.mpls, 00027.m2ts+00027.m2ts, 0:43:58
- Chapters, 9 chapters
- VC-1, 1080p24 /1.001 (16:9)
- AC3, English, multi-channel, 48kHz
- AC3, Portuguese, stereo, 48kHz

BDInfo shows the same. Also, 00075.mpls shows the same double file for 00023.m2ts. I think it's an error in the mpls files.

For my 00075.mpls it does not show a double file, at least not on disc 3.

sfcav
1st October 2010, 21:38
Problem with ac3 conversion

Hi All:

I have a 25 fps PAL ac3 file I'm trying to slowdown to 23.976 fps so I can burn an AVCHD disc and play in my Bluray player. I do this regularly and have never had a problem. This file, although it plays fine in Media Player Classic, eac3to conversion hasn't worked.

When I looked at it more closely, it's characteristics differ depending on what I use to examine it:

MediaInfo for the mkv file (tsMuxeR does NOT recognize the audio track)
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Codec ID : A_AC3
Duration : 1h 27mn
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Surround: L R, LFE
Sampling rate : 48.0 KHz
Stream size : 242 MiB (11%)

MediaInfo for the extracted audio track (using mkvextract)
Format : AC-3
Format/Info : Audio Coding 3
Duration : 1h 27mn
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Channel positions : L R
Sampling rate : 48.0 KHz
Stream size : 121 MiB (100%)

And eac3to sees the same extracted audio track as:
AC3, 5.1 channels, 0:44:00, 384 kbps, 48kHz, dialnorm: -22dB

Any ideas on what's happening here (or how to fix it)??

sfcav

tebasuna51
2nd October 2010, 00:26
Problem with ac3 conversion
...
Channel(s) : 6 channels
...
Channel(s) : 2 channels

Any ideas on what's happening here (or how to fix it)??
Maybe you have an AC3 with 2 kind of frames (a TV capture?, movie and commercials).

Try run:

SplitAc3 audio.ac3

and put the log file created.

[EDIT] SplitAc3.exe and SplitAc3m.exe included in AC3Util.7z here (https://forum.doom9.org/showthread.php?p=1485920#post1485920)

sfcav
2nd October 2010, 01:16
Maybe you have an AC3 with 2 kind of frames (a TV capture?, movie and commercials).

Try run:

SplitAc3 audio.ac3

and put the log file created.

Thanks tebasuna51!

Here is the output:

FileSize : 126680064 bytes
---------- First valid Header
Time eq. : 2639168 ms.
SamplCod : 0 (0:48, 1:44.1, 2:32 KHz.)
BitRate : 384 Kb/s
ChanMode : 7 (1:1/0, 2:2/0, 3:3/0, 4:2/1, 5:3/1, 6:2/2, 7:3/2)
FrameSize: 1536 bytes
---------- Process ( 25.000000 fps is used for Trim)
Time: 0 ms. Written: 1 frames 5.1 ( 32 ms.) Trim(0, 0)
Time: 32 ms. Written: 164946 frames 2.0 ( 5278272 ms.)
---------- End of File
Total time: 5278304 ms. at EOF
T. written: 1 frames 5.1.
T. written: 164946 frames 2.0.
___________________________________________--

It yielded two ac3 files, one of which fits what I expected (1hr 27 min) and looks the same with both MediaInfo and eac3to!

Thanks : )

hubblec4
2nd October 2010, 13:44
neroaacencoder work not more correctly. have anyone an idee whats the problem is?

eac3to v3.24
command line: eac3to.exe "00003 - 3 - DTS Master Audio, English, 5.1 channels, 24 bits, 48kHz.dtsma" "eng.mp4" -288
------------------------------------------------------------------------------
DTS Master Audio, 5.1 channels, 24 bits, 48kHz
(core: DTS, 5.1 channels, 24 bits, 1509kbps, 48kHz)
Decoding with ArcSoft DTS Decoder...
Encoding AAC <288kbps> with NeroAacEnc...
The original audio track has a constant bit depth of 24 bits.
The Nero AAC encoder seems to be stuck... <ERROR>
[NeroAacEnc] Processed 0 seconds...
[NeroAacEnc] Processed 1 seconds...
[NeroAacEnc] Processed 2 seconds...
[NeroAacEnc] Processed 3 seconds...
[NeroAacEnc] Processed 4 seconds...
[NeroAacEnc] Processed 5 seconds...
[NeroAacEnc] Processed 6 seconds...
[NeroAacEnc] Processed 7 seconds...
[NeroAacEnc] Processed 8 seconds...
[NeroAacEnc] Processed 9 seconds...
[NeroAacEnc] Processed 10 seconds...
[NeroAacEnc] Processed 11 seconds...
.........
[NeroAacEnc] Processed 2848 seconds...
[NeroAacEnc] Processed 2849 seco
Aborted at file position 1506659076. <ERROR>


after abort the file is deleted by eac3to. when i cancel the neroaac-process i keep the mp4 and its playable. sounds good.

hubblec4
2nd October 2010, 14:53
i have testet the same file with eac3to 3.22 and it works fine.


the same problem happened with ac3 files but with 3.22 all fine.

i have winxp32bit sp3. arcsoftdecoder 1.1.0.0

SoleBastard
2nd October 2010, 20:53
Hi Madshi,
Thanks again for your great program!

As eac3to doesn't support merging FLAC files (yet) I tried doing it using Foobar2000 and flac.exe 1.2.1. However, when the merged file reaches 2.00GB the encoding stops with an error. I asked about this in the Foobar2000 forum (see this thread (http://www.hydrogenaudio.org/forums/index.php?showtopic=84014)) and it seems to be a specific limitation of the Windows FLAC build. However you manage to create FLAC files with eac3to in Windows that are >2GB just fine. How is that possible?

TinTime
2nd October 2010, 21:47
You could always convert to a .w64 file with foobar and then convert that to FLAC with eac3to. Not completely ideal but it's a workaround.

SoleBastard
2nd October 2010, 22:06
Yep, I figured that out and doing the conversion at the moment ;)

So yeah, this work-around is okay for me because I don't need to do these kind of merges that often. I was just curious how Madshi was able to implement encoding >2GB flac files :)

TinTime
2nd October 2010, 22:57
Yep, I figured that out and doing the conversion at the moment ;)

Sorry, I see now that I replied to something you didn't ask and ignored what you did ask :)

Anyway, from your link it looks like an i/o limitation in flac.exe, so that's why eac3to is ok - it handles i/o itself and uses libflac to encode.

deathlord
3rd October 2010, 20:40
Often there's a "play all" playlist. It usually lists the episodes in the right order.

This is a very helpful hint, thanks a lot!
I have found it to work on Terminator: The Sarah Connor Chronicles and Dexter.

Groucho2004
4th October 2010, 17:37
Would it be possible to add an option to normalize to a certain level?
As far as I know, eac3to only normalizes to 0 dB. I always like to leave a little headroom for further conversions so that would be nice.

Possibly something like "-normalize -2dB".

SoleBastard
4th October 2010, 19:24
Anyway, from your link it looks like an i/o limitation in flac.exe, so that's why eac3to is ok - it handles i/o itself and uses libflac to encode.

Ah right, that makes sense. :thanks:

A kind HA.org user modified the flac.exe to work with large input files and I find it to work perfectly with my FLACs! See the thread I linked to earlier.

deathlord
4th October 2010, 19:59
Would it be possible to add an option to normalize to a certain level?
As far as I know, eac3to only normalizes to 0 dB. I always like to leave a little headroom for further conversions so that would be nice.

Possibly something like "-normalize -2dB".

You can certainly do "-2dB" (see first post). I don't know what happens if eac3to has to normalize, too. You can try it out or you can simply do two passes.

b66pak
4th October 2010, 20:26
"-normalize -2dB" this don't work (the -2dB part)

you must do:
eac3to audio.xxx normalized_audio.wav -normalize
eac3to normalized_audio.wav final-2dB_audio.wav -2dB
_

shh
4th October 2010, 21:22
Is there any way to prevent the massive file fragmentation in conjunction with eac3to?

I understand, that this is an issue of the (sometimes) unknown size of handled streams, but the count of segments of some of eac3to's files is just insane. :eek:

Suggestions:
- reserving file space for separate streams what can safely cover the size of a (sub)stream, later crop filesize to the real size of the stream.
- command line option: "just reserve +100MB per stream"
- ...?

Groucho2004
4th October 2010, 21:28
this don't work (the -2dB part)

you must do:
eac3to audio.xxx normalized_audio.wav -normalize
eac3to normalized_audio.wav final-2dB_audio.wav -2dB
_

Sigh.

Yes, that's what I've been doing so far. However, I was asking if this feature could added so I don't have to do 2 passes (actually 3 passes, because the "normalize" function already needs 2 passes).

LeXXuz
5th October 2010, 16:19
I'm getting this error message when encoding an audio stream:
eac3to v3.24
command line: eac3to eng.ac3 eng_new.ac3 -384 -normalize
------------------------------------------------------------------------------
AC3, 5.0 channels, 1:33:59, 384kbps, 48kHz
The Nero decoder doesn't seem to work, will use libav instead.
Decoding with libav/ffmpeg...
Remapping channels...
Writing WAV...
Creating file "eng_25p.ac3.pass1.wav"...
Caution: The WAV file is bigger than 4GB. <WARNING>
Some WAV readers might not be able to handle this file correctly. <WARNING>
Starting 2nd pass...
Reading WAV...
The AC3 encoder received a non-supported data format (float, 5, 64, -). <ERROR>
Aborted at file position 262144. <ERROR>

Creating the wav file works, but as soon as I start the ac3 encoder it aborts with a similar error message:
eac3to v3.24
command line: eac3to eng_new.wav eng_new.ac3 -384
------------------------------------------------------------------------------
WAV, 5.0 channels, 1:33:59, 24 bits, 5760kbps, 48kHz
Reading WAV...
The AC3 encoder received a non-supported data format (pcm, 5, 24, -). <ERROR>
Aborted at file position 262144. <ERROR>

Source is from an HDTV recording.

Snowknight26
5th October 2010, 20:59
Search the thread for the 2nd to last line's error. It's been answered many times.

Think Aften.

icon
6th October 2010, 16:36
Does anyone have a .bat/.reg file that would allow me to right click on a .mkv file and have it call a .bat file to automatically convert dts to ac3? I don't want to use a gui.

If not can anyone help me with creating a bat file that I run to convert dts to ac3?

Thanks.

rack04
6th October 2010, 16:43
Does anyone have a .bat/.reg file that would allow me to right click on a .mkv file and have it call a .bat file to automatically convert dts to ac3? I don't want to use a gui.

If not can anyone help me with creating a bat file that I run to convert dts to ac3?

Thanks.

Why not just use the cmd? At bat file wouldn't work for all instances since the track number of the dts is a variable. Well you could use mediainfo cmd to determine the track number for the dts and use that in the bat file but that would be more work than using eac3to cmd.

eac3to input.mkv track: output.ac3

If you must use a bat file here is a quick and dirty. It only works with mkv, single audio track, and doesn't allow for additional options. Hence the reason why using the cmd is a better approach.

@SET MediaInfo_PATH=C:\Program Files\MediaInfo\CLI\MediaInfo.exe
@SET eac3to_PATH=C:\Program Files\eac3to\eac3to.exe
@SET Working_Directory=C:\Personal\Videos

@Echo off
Echo.
Echo.
Echo\*************** Input ****************
Echo.
Echo.
set /p INPUT_VIDEO="Path to Source: "
Echo.
Echo.
Echo\******************************************
Echo.

Echo General;%%FileName%%>"%Working_Directory%\temporary-generalfilename.txt"
"%MediaInfo_PATH%" --Inform=file://"%Working_Directory%\temporary-generalfilename.txt" "%INPUT_VIDEO%">"%Working_Directory%\temporary-analyzegeneralfilename.txt"
Echo General;%%FolderName%%>"%Working_Directory%\temporary-generalfoldername.txt"
"%MediaInfo_PATH%" --Inform=file://"%Working_Directory%\temporary-generalfoldername.txt" "%INPUT_VIDEO%">"%Working_Directory%\temporary-analyzegeneralfoldername.txt"
Echo General;%%FileExtension%%>"%Working_Directory%\temporary-generalfileextension.txt"
"%MediaInfo_PATH%" --Inform=file://"%Working_Directory%\temporary-generalfileextension.txt" "%INPUT_VIDEO%">"%Working_Directory%\temporary-analyzegeneralfileextension.txt"
type "%Working_Directory%\temporary-analyzegeneralfilename.txt">"%Working_Directory%\temporary-analyzegeneralfilename.tmp"
type "%Working_Directory%\temporary-analyzegeneralfoldername.txt">"%Working_Directory%\temporary-analyzegeneralfoldername.tmp"
type "%Working_Directory%\temporary-analyzegeneralfileextension.txt">"%Working_Directory%\temporary-analyzegeneralfileextension.tmp"
set /p SOURCE_FILENAME=<"%Working_Directory%\temporary-analyzegeneralfilename.tmp"
set /p SOURCE_FOLDER=<"%Working_Directory%\temporary-analyzegeneralfoldername.tmp"
set /p SOURCE_EXTENSION=<"%Working_Directory%\temporary-analyzegeneralfileextension.tmp"

DEL "%Working_Directory%\temporary-generalfilename.txt"
DEL "%Working_Directory%\temporary-analyzegeneralfilename.txt"
DEL "%Working_Directory%\temporary-analyzegeneralfilename.tmp"
DEL "%Working_Directory%\temporary-generalfoldername.txt"
DEL "%Working_Directory%\temporary-analyzegeneralfoldername.txt"
DEL "%Working_Directory%\temporary-analyzegeneralfoldername.tmp"
DEL "%Working_Directory%\temporary-generalfileextension.txt"
DEL "%Working_Directory%\temporary-analyzegeneralfileextension.txt"
DEL "%Working_Directory%\temporary-analyzegeneralfileextension.tmp"

if "%SOURCE_EXTENSION%" EQU "mkv" goto process

Echo.
Echo.Source file is not MKV !
Echo.
Echo.
goto end

:process
Echo Audio;%%ID%%>"%SOURCE_FOLDER%\%SOURCE_FILENAME%-audid.txt"
"%MediaInfo_PATH%" --Inform=file://"%SOURCE_FOLDER%\%SOURCE_FILENAME%-audid.txt" "%INPUT_VIDEO%">"%SOURCE_FOLDER%\%SOURCE_FILENAME%-analyzeaudid.txt"
type "%SOURCE_FOLDER%\%SOURCE_FILENAME%-analyzeaudid.txt">"%SOURCE_FOLDER%\%SOURCE_FILENAME%-analyzeaudid.tmp"
set /p ID=<"%SOURCE_FOLDER%\%SOURCE_FILENAME%-analyzeaudid.tmp"

DEL "%SOURCE_FOLDER%\%SOURCE_FILENAME%-audid.txt"
DEL "%SOURCE_FOLDER%\%SOURCE_FILENAME%-analyzeaudid.txt"
DEL "%SOURCE_FOLDER%\%SOURCE_FILENAME%-analyzeaudid.tmp"

@Echo on
"%eac3to_PATH%" "%INPUT_VIDEO%" %ID%: "%SOURCE_FOLDER%\%SOURCE_FILENAME%.ac3" >"%SOURCE_FOLDER%\%SOURCE_FILENAME%-eac3to.txt"
@Echo off

DEL "%SOURCE_FOLDER%\%SOURCE_FILENAME%-eac3to.txt"
DEL "%SOURCE_FOLDER%\%SOURCE_FILENAME% - Log.txt"

Echo.
Echo.
Echo.Finished !
Echo.
Echo.
:end
Pause

icon
6th October 2010, 18:01
Thanks for the reply. I should have mentioned that my mkv files only have (1) dts track and I don't use any options. I use cmd: eac3to input.mkv input.ac3
I'll take a look at the script you posted to see if I can make sense of it. Thanks again.

Ideally, I wanted to right click on a mkv file from the context menu, pass that file to a bat script to automagically create the ac3 output. I do a lot of ripping and converting. This cmd part is getting a little old. Just must be getting lazy.


Edit: I agree, that if I have to type the source input in everytime, then it doesn't make much since to use a bat file. I was hoping I could run it and it would locate all the 'mkv files I have and spit out ac3 files with the same input name and the mkv. Maybe I am asking for too much. I can't believe no one else has a need for this though.

If only I could use wildcards: eac3to *.mkv *.ac3
something like that

rack04
6th October 2010, 18:25
Thanks for the reply. I should have mentioned that my mkv files only have (1) dts track and I don't use any options. I use cmd: eac3to input.mkv input.ac3
I'll take a look at the script you posted to see if I can make sense of it. Thanks again.

Ideally, I wanted to right click on a mkv file from the context menu, pass that file to a bat script to automagically create the ac3 output. I do a lot of ripping and converting. This cmd part is getting a little old. Just must be getting lazy.


Edit: I agree, that if I have to type the source input in everytime, then it doesn't make much since to use a bat file. I was hoping I could run it and it would locate all the 'mkv files I have and spit out ac3 files with the same input name and the mkv. Maybe I am asking for too much. I can't believe no one else has a need for this though.

If only I could use wildcards: eac3to *.mkv *.ac3
something like that

I think the reason most people don't need something like that is because if they needed ac3 then they would have converted the audio to ac3 before muxing to mkv. Not after the fact.

icon
6th October 2010, 18:53
I see. I use handbrake to do a lot of my encodings. It keeps the dts but does not convert to ac3. It seems that I need to run my encodes through mkmerge anyhow for proper playback on my video boxes. I did find an old script in this thread from Snowkight26, that I was able to modify for my needs. Thanks again for the help.

icon
7th October 2010, 00:23
Assuming there is only 1 video and 1 DTS track:


for /f "delims=;" %%a in ('dir *.mkv /b /s') do {
eac3to %%a 1: %%a.video.mkv 2: %%a.ac3
mkvmerge -o %%a.DTS.mkv --language 1:eng --default-track 1:yes -d 1 -A -S %%a.video.mkv -a 0 -D -S %%a.ac3 --track-order 0:1,1:0
del %%a.video.mkv
del %%a.ac3
}
pause


Something like that at least.

I modified this script to just convert dts from a mkv to ac3. I had to use quotes and change { } to ( ). Now I am trying to figure out how the mkvmerge portion of the script works. I seem to be having a problem with it. Can anyone help me out. It's a very powerful script at least for my needs.