Help - Search - Members - Calendar
Full Version: Clipping When Decoding DTS with FFMPEG
Hydrogenaudio Forums > Lossy Audio Compression > Other Lossy Codecs
wswartzendruber
The DTS stream comes from Transporter 3 on Blu-ray. I have extracted the core DTS stream using tsmuxer. I then decoded this stream and reordered the channels:

CODE
ffmpeg -i audio_51.dts -f s16le audio_51.raw
sox -t raw -s -2 -c 6 -r 48000 audio_51.raw -t raw -s -2 -c 6 -r 48000 audio_51_temp.raw remix 1 3 2 5 6 4
mv audio_51_temp.raw audio_51.raw

AFAIK, this problem is occuring at the first line, as the second two reorder the channels and rename the raw PCM file.

I have also posted a screenshot of the clipping.

What can be done to avoid this? Is there a way to decode the DTS stream without increasing the volume?
cpchan
I don't have an answer for you, but I think it is best for you to ask on the ffmpeg-user list. You can subscribe here:

https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user/
wswartzendruber
Huh, I think I figured it out. The clipping is occurring on the rear channels. Now AFAIK, Transporter 3's DTS-HD MA stream is 7.1, but since FFMPEG doesn't understand this, it gets downmixed to 5.1 and the back channels get combined from four into two.
blue_misfit
If you're working with HD audio tracks, I'd suggest transcoding with eac3to in all cases. It uses a modified version of libavcodec (and can hook into Nero / Sonic / Arcsoft DLLs) to always provide clipping-free output.

It's amazingly good. Seriously, check it out smile.gif It's been tested on so many different HD-DVD and BluRay sources that it's ferreted out almost every imaginable bug or wierdness wink.gif

~MiSfit
mcbear
QUOTE (wswartzendruber @ Apr 30 2009, 21:36) *
Huh, I think I figured it out. The clipping is occurring on the rear channels. Now AFAIK, Transporter 3's DTS-HD MA stream is 7.1, but since FFMPEG doesn't understand this, it gets downmixed to 5.1 and the back channels get combined from four into two.

Hi, above you wrote that you extracted the DTS-core stream via TSMuxer, which is then a 5.1-version. Hence the rationale
for the clipping being the result of downmixing in the surround channels seems to be wrong...
Cheers
Mr VacBob
QUOTE (blue_misfit @ Sep 25 2009, 12:47) *
If you're working with HD audio tracks, I'd suggest transcoding with eac3to in all cases. It uses a modified version of libavcodec (and can hook into Nero / Sonic / Arcsoft DLLs) to always provide clipping-free output.


How is it modified? We really prefer these things be submitted upstream...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.