Mencoder处理DTS的时候,声音有问题的处理方法
转载本站文章请注明,转载自:扶凯[http://www.php-oa.com]
本文链接: http://www.php-oa.com/2009/06/11/mencoder_dts_libdca.html
我的转码程序,转完后发现DTS的声音很奇怪,有时还不能得到DTS的声音,难道开源的软件不支持DTS?
Requested audio codec family [dts] (afm=libdca) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[dca @ 0x63171f0]Not a valid DCA frame
Unknown/missing audio format -> no sound
ADecoder init failed :
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
No accelerated IMDCT transform found
hwac3: switched to DTS, 1536000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, ac3, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [hwdts] afm: hwac3 (DTS through S/PDIF)
查看了一下Mencoder的输入.解码器选择了hwac3,可能这个没法解码.上面第一个选择libdca下载一个测试一下.
到http://www.videolan.org/developers/libdca.html下载最新的libdca
#wget http://download.videolan.org/pub/videolan/libdca/0.0.5/libdca-0.0.5.tar.bz2
#tar jxvf libdca-0.0.5.tar.bz2
#./bootstrap && ./configure && make && make install
然后重新编译Mencoder 在configure时
#./configure –enable-libdca
编译完装完的mencoder,现在就可以解码了啦….
另外,需要注意,如果在解码DTS时还是不正常,你看看你选择的解码器是否正常,还不正常加-ac dts测试一下.



















学习学习!下