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

rica
4th September 2008, 01:25
The only part of converting an HD-DVD to Bluray that I can't figure out is how to convert the subtitle data (.sup) that eac3to produces to something that tsmuxer will take. Can anyone help me on this one?

Thanks

Even it is out of the thread:

http://forum.doom9.org/showthread.php?p=1177618#post1177618



_ _ _ _ __

stottle
4th September 2008, 01:44
Even it is out of the thread:

http://forum.doom9.org/showthread.php?p=1177618#post1177618
_ _ _ _ __
I saw that, but I thought .srt was an OCR'd version of the .sup bitmaps. If so, then converting to .srt and then having tsmuxer convert to pgs means converting to text via ocr and then converting the text back to bitmap for pgs, in some other font. I was hoping there was a way to convert the .sup bitmaps to pgs directly, so that the intended font wouldn't change. This also mitigates the need to double check the OCR results for errors.

BTW, I tried the export function in supread (png format), which tsmuxer accepted, but subtitles didn't show up in the output (TMT said they were there however).

rica
4th September 2008, 01:49
I think you didn't read well what i said.
You will never read the subtitles without MPC-HC for the time being...(Zoom player?: just forget it.)
Edit: sorry; except image + daemontools method....or burning to disc method...

moshmothma
4th September 2008, 02:27
Madshi, thanks for the recent update. I was able to complete operations on the NIN BD. However, the video pixelates heavily. I am not sure what is going on. Do you want another sample? Thanks


Yes.


I've checked these. The first two look like this:

1: VC-1, 1080i60 /1.001 (16:9)
2: TrueHD/AC3, 5.1 channels, 48khz
3: AC3, 2.0 channels, 256kbps, 48khz
4: Subtitle (PGS)

The last small two look like this:

1: VC-1, 1080p24 /1.001 (16:9) with pulldown flags
2: AC3, 2.0 channels, 224kbps, 48khz, dialnorm: -27dB
3: AC3, 2.0 channels, 224kbps, 48khz, dialnorm: -27dB
4: Subtitle (PGS)
As you can see, the last two m2ts parts have totally different video and audio track properties compared to the rest of the movie. Now a media player could easily notice the change and adjust its output accordingly. But eac3to is not a media player but just exports the raw video and audio streams. And it just doesn't make any sense to join e.g. a "TrueHD+AC3" track together with a simple "AC3" track. The end result wouldn't play correctly. That's why eac3to cannot handle this situation correctly.

I'll "fix" it in the next build by ignoring the last few m2ts parts, if they are very small and have different audio or video track parameters.

stottle
4th September 2008, 02:30
@rica,

Sorry, I'm not sure I follow. I am trying to convert HD-DVD to Bluray, iso if need be. TMT can play both HD-DVD and Bluray from hdd or from .iso files. I'm not sure that TMT will always continue to play HD-DVD however, so I want to convert my HD-DVD rips to Bluray, taking advantage of eac3to's new truehd conversion functionality.

I thought that if you demux'd a bluray and hddvd with eac, the subtitles both end up with a .sup extension. I'm pretty sure I tried this, but it was pretty late. Won't tsmuxer accept a bluray .sup, but not a hddvd .sup? If so, I am hoping there is a way to change the from an hddvd formatted .sup to a bluray one.

Does that make more sense?

Thanks for the help!

tebasuna51
4th September 2008, 02:31
There's something really strange with this track.
...
* In the above cases the surround channel is empty
...

The track is ok, the problem is the decoder, seems ArcSoft work with:
2.0, 3.0, 3.1, 3/2 and 3/2.1

But don't work with:
2/1, 2/1.1, 2/2, 2/2.1, 3/1 and 3/1.1

Please, can you test Sonic with my samples_dts (http://www.sendspace.com/file/0d5dbt)?

Thanks.

saint-francis
4th September 2008, 05:21
Does that make more sense?

Thanks for the help!

If you want your HD DVD .sup's to be BD .sup's just convert them to BD with supread. Load it up and tell it to output a BD file. There is plenty about this in the subtitle forum in threads with indicative names like "converting Blueray disk subtitles (http://forum.doom9.org/showthread.php?t=124105)" and "HD subtitle ripping (http://forum.doom9.org/showthread.php?t=121535)".
At any rate this discussion should continue down there.

xkodi
4th September 2008, 05:41
The track is ok, the problem is the decoder, seems ArcSoft work with:
2.0, 3.0, 3.1, 3/2 and 3/2.1

But don't work with:
2/1, 2/1.1, 2/2, 2/2.1, 3/1 and 3/1.1

back in the early Arcsoft days i came across the same problem too, i.e. the problem with DTS-HD MA files with strange channel order:

- the sample (from Q-tec Demo Disc):

http://forum.doom9.org/showthread.php?p=1153102#post1153102

- the problem discussion with madshi:

http://forum.doom9.org/showthread.php?p=1153303#post1153303

http://forum.doom9.org/showthread.php?p=1153571#post1153571

http://forum.doom9.org/showthread.php?p=1153688#post1153688

my idea then was to patch the DTS-HD MA header and change the channel order, so Arcsoft can decode the track correctly and then rearrange the right order in the WAV:

http://forum.doom9.org/showthread.php?p=1153692#post1153692

but then we both with madshi agreed that it wasn't worth the effort for a single sample from a demo disc:

http://forum.doom9.org/showthread.php?p=1153700#post1153700

http://forum.doom9.org/showthread.php?p=1153711#post1153711

now, we have sample from a real movie disc ("Edward Scissorhands" BD), not a demo disc. so, maybe we should look again at the problem.

it should be very easy to patch the channel order byte in the header, but then there is CRC involved and i personally know nothing about how DTS(-HD MA) CRC is calculated and where is stored in the DTS(-HD MA) header.

deacon crusher
4th September 2008, 06:33
Here you go madshi

Those 2 are uploading to mediafire right now.

When done (around midnight pacific time Wednesday night) they'll be here.

Done, now and here are the correct links

http://www.mediafire.com/file/wvj4shszfkv/00011.m2ts

http://www.mediafire.com/file/wxufltmfgfa/00130.m2ts

thanks

Could you please upload 00011.m2ts and 00130.m2ts for me? Those two seem to be really small. Thanks!

Duppie
4th September 2008, 08:04
Madshi, excellent application. Many Thanks.

I am using your tool to convert TrueHD to PCM and then mux audio and video together using tsMuxeR from ripped Blu-Rays. This works perfectly. I have read so much in this thread and just to make certain that the quality and command is OK. Am i doing it correct, if for instance the truehd audio track is 2 in the 0001.m2ts file:

Convertion from TrueHD to PCM with no loss: C:\eac3to 0001.m2ts 2: out.pcm

Do i need to use the -blu-ray switch? What is it exactly for? I have search this thread and could not find answers to these questions. Is this switch removed for a reason when only executing eac3to to obtain some help?

Thanks again.

nautilus7
4th September 2008, 09:14
I tested tebasuna51's samples with Sonic. The updated list is below:

With the help of Elektra999 I have dts samples with atypical channel map.
The samples was encoded with DTS PRO SERIES SURROUND ENCODER.
Only 3/2.0 and 3/2.1 was encoded with Surcode.

AMODE Ch Arrangement+lfe Mask and MS channels order Detect-MaskCh eac3to libav remap ArcSoft problems Sonic Problems
-------- - --------------- -------------------------- -------------------- ----------- ---------------- --------------
0b000010 2 L R 0x0003 FL FR 2.0 0x000B (1) not needed ok ok
0b000110 3 L R S 0x0103 FL FR BC 2/1 0x0103 ok not needed BC ch empty FL & FR present in BC, BC only present in FL & FR
4 L R S LFE 0x010B FL FR LF BC 2/1.1 0x010B (2) -0,1,3,2,4,5 BC ch empty (3) FL & FR present in BC, BC only present in FL & FR, LFE empty, maybe remap needed
0b001000 4 L R Ls Rs 0x0033 FL FR BL BR 2/2 0x0033 ok not needed BL+BR ch's empty ok
5 L R Ls Rs LFE 0x003B FL FR LF BL BR 2/2.1 0x003B (2) -0,1,4,2,3,5 LF ch empty ok
0b000101 3 C L R 0x0007 FL FR FC 3/0 0x000F (1)(2) -1,2,0,3,4,5 ok ok
4 C L R LFE 0x000F FL FR FC LF 3.1 0x000F (2) -1,2,0,3,4,5 ok ok
0b000111 4 C L R S 0x0107 FL FR FC BC 3/1 0x0107 (2) -1,2,0,3,4,5 BC ch empty BC empty, BC only presesnt in FL & FR
5 C L R S LFE 0x010F FL FR FC LF BC 3/1.1 0x010F (2) -1,2,0,4,3,5 LF same than BC eac3to crashes
0b001001 5 C L R Ls Rs 0x0037 FL FR FC BL BR 5.0 0x003F (1)(2) -1,2,0,3,4,5 ok ok
6 C L R Ls Rs LFE 0x003F FL FR FC LF BL BR 5.1 0x003F ok already done ok ok

(1) Wrong mask, the correct mask can be easyly put based in detection
(2) When decoded with libav need remapping channels.
(3) Same remap than libav needed.


btw, tebasuna51, is that you on the samples? :D

nautilus7
4th September 2008, 09:27
Madshi, excellent application. Many Thanks.

I am using your tool to convert TrueHD to PCM and then mux audio and video together using tsMuxeR from ripped Blu-Rays. This works perfectly. I have read so much in this thread and just to make certain that the quality and command is OK. Am i doing it correct, if for instance the truehd audio track is 2 in the 0001.m2ts file:

Convertion from TrueHD to PCM with no loss: C:\eac3to 0001.m2ts 2: out.pcm

Do i need to use the -blu-ray switch? What is it exactly for? I have search this thread and could not find answers to these questions. Is this switch removed for a reason when only executing eac3to to obtain some help?

Thanks again.
You do everything fine. The blu-ray switch is (was) to remap channels to the blu-ray channel order, but you don't need to use it. It's done automatically.

Duppie
4th September 2008, 09:41
Thanks, nautilus7

nautilus7
4th September 2008, 10:00
Thanks, nautilus7
Welcome. One thing I can suggest also, is to add -down16 to the command line if you want to save some space and you don't mind (or you can't hear) the quality loss of the 24 bit to 16 bit conversion. That's of course in case the source TrueHD track is 24 bit and not already 16 bit.


The only part of converting an HD-DVD to Bluray that I can't figure out is how to convert the subtitle data (.sup) that eac3to produces to something that tsmuxer will take. Can anyone help me on this one?

ThanksAs already saint-francis pointed out, you need SUPread to convert HD DVD .sup to Blu-ray .sup, without any OCR. That's because subtitles in these two media are little different.

nautilus7
4th September 2008, 10:17
Thanks, nautilus7Things are coming slowly to my mind...

Since version 2.59 eac3to can also convert HD DVD TrueHD tracks to Blu-ray style TrueHD tracks with AC3 track interleaved. So there's no need to convert to pcm anymore. Except you don't have a TrueHD decoder.

Duppie
4th September 2008, 11:36
nautilus7

In my case I also have to convert TrueHD to PCM for tsMuxeR to create a correct Blu-Ray structure split into 4gig chunks to be played in AVCHD format on HDD on PS3. As you know tsMuxeR does not do proper TrueHD muxing in blu-ray structure and PCM is a good workaround.

Thanks.

G_M_C
4th September 2008, 12:01
nautilus7

In my case I also have to convert TrueHD to PCM for tsMuxeR to create a correct Blu-Ray structure split into 4gig chunks to be played in AVCHD format on HDD on PS3. As you know tsMuxeR does not do proper TrueHD muxing in blu-ray structure and PCM is a good workaround.

Thanks.


Also look at the tsMuxeR thread;

http://forum.doom9.org/showthread.php?p=1170182#post1170182

Duppie
4th September 2008, 12:15
G_M_C

Thanks for that. This is actually me who posted that and made those tests. Currently there is no solution to mux TrueHD in Blu-Ray structure split in 4 gig chunks due to tsMuxeR problems. TsRemux does work with TrueHD but cannot split the file in 4 gig chunks which is necessary for fat32 disks on PS3 in AVCHD format.

G_M_C
4th September 2008, 12:22
G_M_C

Thanks for that. This is actually me who posted that and made those tests. Currently there is no solution to mux TrueHD in Blu-Ray structure split in 4 gig chunks due to tsMuxeR problems. TsRemux does work with TrueHD but cannot split the file in 4 gig chunks which is necessary for fat32 disks on PS3 in AVCHD format.

:p Didnt realize it was you that wrote that :p

-----

Can you not burn to a DVD-DL in UDF 2.5 ?

Or split before muxing i.e. "split manually" ?

Duppie
4th September 2008, 12:36
G_M_C

Yes you can burn to a DVD-DL in UDF 2.5 and it works. But the idea is to take one big (20-30gig) m2ts file open it with a muxer select the required tracks and generate a Blu-Ray structure with one playlist on fat32 (4gig chunks) convert the Blu-Ray structure to AVCHD and play the complete film from HDD on PS3 without writing a couple of DVD's. This requires alot of disk space but it is better than having alot of DVD's and changing the DVD's a couple of times during playpack of one movie.

EPiPH0NE
4th September 2008, 18:34
G_M_C

Thanks for that. This is actually me who posted that and made those tests. Currently there is no solution to mux TrueHD in Blu-Ray structure split in 4 gig chunks due to tsMuxeR problems. TsRemux does work with TrueHD but cannot split the file in 4 gig chunks which is necessary for fat32 disks on PS3 in AVCHD format.

Wow file playback on the PS3 seems like too much of a hassle. I also do TrueHD/DTS-MA -> 5.1 PCM for my NMT but the only time I have to split the files up is when I'm archiving them to DVD-R :) Lucky me. I guess if you already have a PS3 a BluRay burner is the way to go. A lot less work.

odin24
4th September 2008, 22:27
G_M_C

Yes you can burn to a DVD-DL in UDF 2.5 and it works. But the idea is to take one big (20-30gig) m2ts file open it with a muxer select the required tracks and generate a Blu-Ray structure with one playlist on fat32 (4gig chunks) convert the Blu-Ray structure to AVCHD and play the complete film from HDD on PS3 without writing a couple of DVD's. This requires alot of disk space but it is better than having alot of DVD's and changing the DVD's a couple of times during playpack of one movie.

I use this method as well, it's perfect for rentals that are due back the next day, and you have no time to watch immediately. Also for BDs you have no intention of archiving to DVD9.

The only drawback is you need your own BD burner.

Duppie, do you use AVCHD-ME, or is there something else out there that can produce the same media type... possibly that doesn't cause the slight pause between the 4GB chunks?

nautilus7
4th September 2008, 22:39
Guys, I don't want to be a geek, but your discussion is out of topic. :thanks:

Jaja1
5th September 2008, 20:27
Remuxing Welcome to Dongmakgol Blu-ray to mkv results in async audio.

eac3to v2.60
command line: eac3to 1) 2:i:\Wel.mkv 5:i:\Wel.dts -core
------------------------------------------------------------------------------
M2TS, 1 video track, 5 audio tracks, 5 subtitle tracks, 2:12:52
1: Chapters, 37 chapters
2: VC-1, 1080p24 /1.001 (16:9)
3: AC3, Korean, 5.1 channels, 640kbps, 48khz, dialnorm: -27dB
4: AC3, Korean, 2.0 channels, 192kbps, 48khz, dialnorm: -27dB
5: DTS Master Audio, Korean, 5.1 channels, 16 bits, 48khz, dialnorm: -4dB
6: AC3, Korean, 2.0 channels, 192kbps, 48khz, dialnorm: -27dB
7: AC3, Korean, 2.0 channels, 192kbps, 48khz, dialnorm: -27dB
8: Subtitle (PGS), Korean
9: Subtitle (PGS), English
10: Subtitle (PGS), Japanese
11: Subtitle (PGS), Korean
12: Subtitle (PGS), Korean
[a05] Extracting audio track number 5...
[v02] Extracting video track number 2...
[a05] Extracting DTS core...
[a05] Removing DTS dialog normalization...
[a05] Patching bitdepth to 24 bits...
[v02] Muxing video to Matroska...
[a05] Creating file "i:\Wel.dts"...
Added fps value to MKV header.
Video track 2 contains 191141 frames.
eac3to processing took 12 minutes, 32 seconds.
Done.
The resulting DTS track is not in sync with the video. The original stream is in sync.

Remarkably, the WMV decoder is not capable of proper playback of the m2ts, artefacts all over. Ffdshow however, has no problems with the video.

A sample can be found at:
http://www.sendspace.com/file/71uipv

rica
5th September 2008, 21:00
Remuxing Welcome to Dongmakgol Blu-ray to mkv results in async audio.


The resulting DTS track is not in sync with the video. The original stream is in sync.

Remarkably, the WMV decoder is not capable of proper playback of the m2ts, artefacts all over. Ffdshow however, has no problems with the video.

A sample can be found at:
http://www.sendspace.com/file/71uipv

This is a VC1mkv which has always issues with TSMuxer.
I think you remuxed that sample with TSMuxer, did you?


_ _ _ _ _

Snowknight26
5th September 2008, 21:06
Ehhem.
[v02] Muxing video to Matroska...

asarian
5th September 2008, 21:13
Hmm, getting the weirdest error (see below for full output): "The channel modder was started with incorrect parameters." What is up with that? And how do I fix it? :)


E:\migrate\devils_rejects\BDMV>eac3to 1) 3: c:\video\devils.ac3
M2TS, 1 video track, 4 audio tracks, 2 subtitle tracks, 1:50:54
1: Chapters, 15 chapters
2: MPEG2, 1080p24 /1.001 (16:9)
3: DTS Hi-Res, English, 6.1 channels, 24 bits, 3093kbps, 48khz, dialnorm: -4dB
4: AC3, English, 5.1 channels, 640kbps, 48khz, dialnorm: -27dB
5: AC3, English, 2.0 channels, 192kbps, 48khz, dialnorm: -27dB
6: AC3, English, 2.0 channels, 192kbps, 48khz, dialnorm: -27dB
7: Subtitle (PGS), English
8: Subtitle (PGS), Spanish
[a03] The ArcSoft decoder doesn't seem to work, will use Sonic instead.
[a03] AC3 encoding only supports 6 channels. Will mix the surround channels.
[a03] Extracting audio track number 3...
[a03] Removing DTS dialog normalization...
[a03] Decoding with DirectShow (Sonic Audio Decoder)...
[a03] DirectShow reports 5.1 channels, 24 bits, 48khz
[a03] Mixing surround channels...
[a03] The channel modder was started with incorrect parameters.
Aborted at file position 21967306752.

E:\migrate\devils_rejects\BDMV>

rica
5th September 2008, 21:31
eac3to "E:\migrate\devils_rejects\BDMV\*.m2ts" 3: "c:\video\devils.ac3"

Check that.

EDIT: Sorry i've misssed the source is DTS-HD and libav doesn't work in this case-corrected. Just install TMT trial and give it a go and compare.

asarian
5th September 2008, 22:27
eac3to "E:\migrate\devils_rejects\BDMV\*.m2ts" 3: "c:\video\devils.ac3"

Check that.

EDIT: Sorry i've misssed the source is DTS-HD and libav doesn't work in this case-corrected. Just install TMT trial and give it a go and compare.

Thanks. That worked a lot better. :) No errors, at least.

eac3to v2.60
command line: eac3to 1) 3: c:\video\devils.ac3
------------------------------------------------------------------------------
M2TS, 1 video track, 4 audio tracks, 2 subtitle tracks, 1:50:54
1: Chapters, 15 chapters
2: MPEG2, 1080p24 /1.001 (16:9)
3: DTS Hi-Res, English, 6.1 channels, 24 bits, 3093kbps, 48khz, dialnorm: -4dB
4: AC3, English, 5.1 channels, 640kbps, 48khz, dialnorm: -27dB
5: AC3, English, 2.0 channels, 192kbps, 48khz, dialnorm: -27dB
6: AC3, English, 2.0 channels, 192kbps, 48khz, dialnorm: -27dB
7: Subtitle (PGS), English
8: Subtitle (PGS), Spanish
[a03] AC3 encoding only supports 6 channels. Will mix the surround channels.
[a03] Extracting audio track number 3...
[a03] Mixing surround channels...
Loading white noise (needed for dithering)...
[a03] Decoding with ArcSoft DTS Decoder...
[a03] Removing DTS dialog normalization...
[a03] Encoding AC3 <640kbps> with libAften...
[a03] Creating file "c:\video\devils.ac3"...
Video track 2 contains 159528 frames.
eac3to processing took 21 minutes, 28 seconds.
Done.

rica
5th September 2008, 23:01
:thanks: for feedback.

K1ngp1ng
6th September 2008, 09:47
and what exactly is the point of this? "4:" already is an ac3 track?

asarian
6th September 2008, 09:53
and what exactly is the point of this? "4:" already is an ac3 track?

The point is to use the DTS stream to get another AC3 stream, sans the dialogue normalization.

madshi
6th September 2008, 10:00
With the help of Elektra999 I have dts samples (http://www.sendspace.com/file/0d5dbt)with atypical channel map.
The samples was encoded with DTS PRO SERIES SURROUND ENCODER.
Only 3/2.0 and 3/2.1 was encoded with Surcode.

AMODE Ch Arrangement+lfe Mask and MS channels order Detect-MaskCh eac3to libav remap ArcSoft problems
-------- - --------------- -------------------------- -------------------- ----------- ----------------
0b000010 2 L R 0x0003 FL FR 2.0 0x000B (1) not needed ok
0b000110 3 L R S 0x0103 FL FR BC 2/1 0x0103 ok not needed BC ch empty
4 L R S LFE 0x010B FL FR LF BC 2/1.1 0x010B (2) -0,1,3,2,4,5 BC ch empty (3)
0b001000 4 L R Ls Rs 0x0033 FL FR BL BR 2/2 0x0033 ok not needed BL+BR ch's empty
5 L R Ls Rs LFE 0x003B FL FR LF BL BR 2/2.1 0x003B (2) -0,1,4,2,3,5 LF ch empty
0b000101 3 C L R 0x0007 FL FR FC 3/0 0x000F (1)(2) -1,2,0,3,4,5 ok
4 C L R LFE 0x000F FL FR FC LF 3.1 0x000F (2) -1,2,0,3,4,5 ok
0b000111 4 C L R S 0x0107 FL FR FC BC 3/1 0x0107 (2) -1,2,0,3,4,5 BC ch empty
5 C L R S LFE 0x010F FL FR FC LF BC 3/1.1 0x010F (2) -1,2,0,4,3,5 LF same than BC
0b001001 5 C L R Ls Rs 0x0037 FL FR FC BL BR 5.0 0x003F (1)(2) -1,2,0,3,4,5 ok
6 C L R Ls Rs LFE 0x003F FL FR FC LF BL BR 5.1 0x003F ok already done ok

(1) Wrong mask, the correct mask can be easyly put based in detection
(2) When decoded with libav need remapping channels.
(3) Same remap than libav needed.
Thank you!!

The next eac3to version will fix the incorrect channel masks and implement channel remapping for libav and ArcSoft. Here's how the different DTS decoders work with these samples:

- libav works fine
- ArcSoft works fine, but splits mono surround channel (x1x.dts) into Ls/Rs pair with half volume each
- Sonic heavily dislikes mono surround channel (crash or funny results), but works fine for the other tracks
- Nero works fine

Not sure yet how I should handle ArcSoft's mono surround channel splitting. Should eac3to keep ArcSoft's Ls/Rs pair? Or should I remove one of those channels and double the volume of the other to reconstruct the original mono surround channel?

Madshi, thanks for the recent update. I was able to complete operations on the NIN BD. However, the video pixelates heavily. I am not sure what is going on. Do you want another sample? Thanks
IIRC I had no pixelation. Decoding worked just fine for me with the MS VC-1 decoder. Which decoder are you using? NIN is interlaced and the ffmpeg/libav decoder (and also the MPC HC built in decoder) don't handle interlaced decoding correctly yet.

Those 2 are uploading to mediafire right now.
Thanks! This very much looks like an authoring fault. One and the same audio track suddenly changes from TrueHD to AC3 and another audio track suddenly changes from AC3 to TrueHD. I'm not sure how to handle that...

Remuxing Welcome to Dongmakgol Blu-ray to mkv results in async audio.

The resulting DTS track is not in sync with the video. The original stream is in sync.

Remarkably, the WMV decoder is not capable of proper playback of the m2ts, artefacts all over. Ffdshow however, has no problems with the video.

A sample can be found at:
http://www.sendspace.com/file/71uipv
I don't see any artifacting here with the sample you uploaded. WMV decoder? What's that? You may want to install the latest Windows Media Player to get the latest MS VC-1 decoder. This in combination with the latest Haali version results in perfect video playback on my PC.

About the DTS track: The sample is rather short and doesn't really help much with checking the correct audio delay. I don't see an obvious "desync", but it's hard to say from that sample. How did you test audio sync? Have you transcoded the DTS track to something else? Have you muxed it into some container? The audio sync mismatch could be introduced by the filters you're using for playback or by the way you muxed things. Of course it could also be introduced by eac3to. Can't say for certain...

Hmm, getting the weirdest error (see below for full output): "The channel modder was started with incorrect parameters." What is up with that? And how do I fix it? :)
Can you please run "eac3to 1) 3: c:\video\devils.ac3 -logdts"? It seems that the DTS track is decoded by Sonic only as 5.1 although it's a 6.1 track (which results in that strange eac3to error you've seen). I'd like to know why it's only decoded as 5.1. My guess is that it's one of those rare DTS tracks with a slightly unusual format. The "-logdts" parameter should tell me that. Thanks!

madshi
6th September 2008, 10:01
The point is to use the DTS stream to get another AC3 stream, sans the dialogue normalization.
You can also let eac3to just demux the original AC3 stream. Dialog normalization will then automatically be removed. The original AC3 stream will very likely have a better audio quality compared to transcoding the DTS-Hi-Res track to AC3.

nautilus7
6th September 2008, 10:25
- ArcSoft works fine, but splits mono surround channel (x1x.dts) into Ls/Rs pair with half volume each

Not sure yet how I should handle ArcSoft's mono surround channel splitting. Should eac3to keep ArcSoft's Ls/Rs pair? Or should I remove one of those channels and double the volume of the other to reconstruct the original mono surround channel?
I believe reconstructing the original DTS format (mono surround) will be better.

xkodi
6th September 2008, 10:42
should I remove one of those channels and double the volume of the other to reconstruct the original mono surround channel?

sorry, but i will ask again about DTS header patching - these tracks are plain DTS, AFAIK channel order bits and how CRC is calculated are well known for DTS header.

so, why not patch for example "L R S" as "C L R" in the DTS header, then it should decode correctly and it shouldn't need reconstruction at all or am i wrong about such possibility?

reconstruction is probably easier to do than header patching, but less precise.

Jaja1
6th September 2008, 11:08
I don't see any artifacting here with the sample you uploaded.I figured out what is wrong. Selecting Gabest's DTS source filter in ZP caused artefacting in combination with the WMV decoder. Deselecting the filter solved this. And now audio is in sync as well :confused:

WMV decoder? What's that?Well, MS still call there VC-1 decoder WMV decoder. To be precise WMVds32.ax and WMV8ds32.ax. And it shows up as WMVideo decoder in ZP and Windows Media Video Decoder in Radlight Filter Manager. Can't help that.

madshi
6th September 2008, 11:55
sorry, but i will ask again about DTS header patching - these tracks are plain DTS, AFAIK channel order bits and how CRC is calculated are well known for DTS header.

so, why not patch for example "L R S" as "C L R" in the DTS header, then it should decode correctly and it shouldn't need reconstruction at all or am i wrong about such possibility?
You're right. I've implemented that now and it fixes both ArcSoft and Sonic. So now all DTS decoders decode all of tebasuna's samples correctly.

nautilus7
6th September 2008, 12:11
Is the patching only for plain DTS or for DTS-HD also?

xkodi
6th September 2008, 14:45
You're right. I've implemented that now and it fixes both ArcSoft and Sonic. So now all DTS decoders decode all of tebasuna's samples correctly.

great! thank you, madshi!

can you try the same patching approach with the DTS-HD MA header of the sample from Q-tec Hi-Definition Reference Demo Disc:

http://forum.doom9.org/showthread.php?p=1153102#post1153102

and change the order from "C L R Ls Rs LFE Lsr Rsr", which doesn't decode correctly to the "C L R LFE Lsr Rsr Lss Rss" which is known to be good order.

if it doesn't work it's OK, i just want to try that in order to know is there any different in patching header channel order between plain DTS and DTS-HD MA.

also good sample for DTS-HD MA header patching is the 3/1 DTS-HD MA track that nautilus7 found:

http://www.sendspace.com/file/wgdtbn

madshi
6th September 2008, 17:02
Is the patching only for plain DTS or for DTS-HD also?
can you try the same patching approach with the DTS-HD MA header
Unfortunately patching DTS-HD channel/speaker settings is much more difficult than patching core channel settings. In the DTS-HD data blocks many fields have a variable size which depends on other fields. The changes I'd need to do would result in a change of the DTS-HD data block size. Which again is a very big change to the DTS-HD bitstream which I'm not confident to do correctly. As a result patching speaker settings in DTS-HD data blocks is no go.

rebkell
6th September 2008, 17:05
I asked earlier, but it probably got forgotten in all the posts, but was wondering how the overlaps and gaps get fixed, as in if two segments overlap, do you chop off the end of segment 1 or the start of segment 2 and also wonder how gaps are handled, filled in with silence?

xkodi
6th September 2008, 17:41
As a result patching speaker settings in DTS-HD data blocks is no go.

if so complicated then leave it, it doesn't worth wasting time for that for the time being, because i know for only two problematic samples:

- Edward Scissorhands Blu-ray DTS-HD MA 3/1 track
- Q-tec Hi-Definition Reference Demo Disc DTS-HD MA track

i hope that the studios will never use such weird channel orders in their future releases.

rica
6th September 2008, 17:53
Hi guys,
Sorry for my question which is out of the subject:

eac3to can make 23.976p video and audio to 25p PAL with "-speedup" option. (or reverse with -slowdown)

How can i convert subtitles to 25 fps, would speedup option work for subtitles as well? (or shall i use Supread's 25fps option?)

Thanks.

nautilus7
6th September 2008, 17:56
eac3to can only demux the subtitles. Editing should be done with other programs. SUPread can change framerate while keeping the subs in their original .sup format.

rica
6th September 2008, 18:00
Thx but last question:

Do you mean i have to export as 25fps on Supread ?(and later to convert to srt)

nautilus7
6th September 2008, 18:06
Thx but last question:

Do you mean i have to export as 25fps on Subread ?(and later to convert to srt)No, I though you wanted to keep them as .sup. You can do it in one step.

But since you want to convert to .srt (OCR), I suggest SupRip against SUPread, but it doesn't allow fps changing, so you'll have to use another tool like Subtitle creator.

rica
6th September 2008, 18:08
Thanks, i wanted to keep it as 25fps sup.

Edit: I think it would be a good combination:

Export to 25p sup with SUPRead
Convert to srt with SupRip.

Beastie Boy
7th September 2008, 08:40
but don't want to actually *ever* make use of the embedded AC3 track, you can ask eac3to to use a really low bitrate to save space, e.g. "eac3to source dest.thd+ac3 -192".


This doesn't work for me. If I specify a bitrate, eac3to errors with 'This audio conversion is not supported'.
I have tried different bitrates, 384, 448, but none work.

eac3to input.thd output.thd+ac3 works fine. Also, the output from this is accepted by tsMuxeR as a TrueHD file and muxes successfully :)

Cheers, Beastie.

asarian
7th September 2008, 10:47
Thank you!!

Can you please run "eac3to 1) 3: c:\video\devils.ac3 -logdts"? It seems that the DTS track is decoded by Sonic only as 5.1 although it's a 6.1 track (which results in that strange eac3to error you've seen). I'd like to know why it's only decoded as 5.1. My guess is that it's one of those rare DTS tracks with a slightly unusual format. The "-logdts" parameter should tell me that. Thanks!

Okay, I reran the thing again (adding -sonic, too). And this was the result:

+ DTS-Core
- frameSize 2012
- DTS-ES +
- channelNo 6
- lfe 1
- channelDescr 6.1
- samplingRate 48000
- bitDepth 24
- bitrate 1536000
- dialNorm 4
- extAudio XXCh
- samplesPerFrame 512
- copyHistory 1
+ DTS-HD
- fullSize 2040
- headerSize 28
- refClockCode 1/48000
- frameDurationCode 1
- activeMasks [1], [[1]]
+ Asset [0]
- fullSize 2012
- headerSize 10
- corePackets Core+XXCh
- extSubStrPackets XBR
- bitResolution 24
- maxSampleRate 48000
- totalNumChannels 7
- activeSpeakers C L R Ls Rs LFE Cs ($1f)
-------------------------------------------------------------------------------
M2TS, 1 video track, 4 audio tracks, 2 subtitle tracks, 1:50:54
1: Chapters, 15 chapters
2: MPEG2, 1080p24 /1.001 (16:9)
3: DTS Hi-Res, English, 6.1 channels, 24 bits, 3093kbps, 48khz, dialnorm: -4dB
4: AC3, English, 5.1 channels, 640kbps, 48khz, dialnorm: -27dB
5: AC3, English, 2.0 channels, 192kbps, 48khz, dialnorm: -27dB
6: AC3, English, 2.0 channels, 192kbps, 48khz, dialnorm: -27dB
7: Subtitle (PGS), English
8: Subtitle (PGS), Spanish
[a03] AC3 encoding only supports 6 channels. Will mix the surround channels.
[a03] Extracting audio track number 3...
[a03] Removing DTS dialog normalization...
[a03] Decoding with DirectShow (Sonic Audio Decoder)...
[a03] DirectShow reports 5.1 channels, 24 bits, 48khz
[a03] Mixing surround channels...
[a03] The channel modder was started with incorrect parameters.
-------------------------------------------------------------------------------
Aborted at file position 21967306752.
Find sync word: 7ffe8001
Find sync extension: 3f
Frame #1: Core: 1006 words unpacked
Frame #2: Core: 1006 words unpacked
Frame #3: Core: 1006 words unpacked
Frame #4: Core: 1006 words unpacked
Find sync word: 7ffe8001
Find sync extension: 3f
Frame #1: Core: 903 , XXCh: 99 , XBR: 63 words unpacked