View previous topic :: View next topic |
Author |
Message |
beltazore Apprentice
Joined: 30 Oct 2003 Posts: 174 Location: Norway
|
Posted: Mon Mar 31, 2008 9:16 pm Post subject: Mplayer and ac3 with DTS soundtrack |
|
|
Whenever I try to play a file with ac3 codec and DTS soundtrack i get some errors:
Code: |
Starting playback...
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed! 0 (27:15.9) 70.0%
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed! 0 (27:15.9) 60.8%
a52: CRC check failed!
A: 0.9 (00.9) of 1636.0 (27:15.9) 71.3%
|
I have tried google but there dosent seem to be a quick solution for this. Has anyone had this problem and know how to fix this?
-Alexander |
|
Back to top |
|
|
Gusar Advocate
Joined: 09 Apr 2005 Posts: 2665 Location: Slovenia
|
Posted: Mon Mar 31, 2008 9:34 pm Post subject: |
|
|
ac3 and dts are two completely different codecs. There is a dts USE flag, make sure it's turned on for whatever player you're using. An alternative might be to use mplayer with -ac ffdca |
|
Back to top |
|
|
beltazore Apprentice
Joined: 30 Oct 2003 Posts: 174 Location: Norway
|
Posted: Mon Mar 31, 2008 10:02 pm Post subject: |
|
|
Thanks for the quick answer!
I have a mkv file with a DTS soundtrack that I need to demux to mp4 to be able to use it on my ps3.
This is what I do:
Extract the video and audio track
Code: |
mkvextract tracks file.mkv 1:video.h264 2:audio.ac3
|
Change a bit in the video-file
Code: |
perl -pi.bak -e 's{\x67\x64\x00\x33}{\x67\x64\x00\x29}' video.h264
|
make a fifo
Code: |
mkfifo audiodump.wav
|
reencode so the audio will be playable on my PS3
Code: |
neroAacEnc -ignorelength -q 0.20 -if audiodump.wav -of audio.m4a & mplayer audio.ac3 -vc null -vo null -channels 6 -ao pcm:fast
|
When I run this last command i get the following errors:
Code: |
*************************************************************
* *
* Nero Digital Audio Reference MPEG-4 & 3GPP Audio Encoder *
* Copyright 2007 Nero AG *
* All Rights Reserved Worldwide *
* *
* Package build date: Aug 6 2007 *
* *
* *
* See -help for a complete list of available parameters. *
* *
*************************************************************
MPlayer 2:1.0~rc1-0ubuntu9.3 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(TM) XP 2200+ (Family: 6, Model: 8, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing audio.ac3.
libavformat file format detected.
==========================================================================
Forced audio codec: mad
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
a52: CRC check failed!
Unimplemented resampler for mode 0x7 -> 6 channels conversion - Contact MPlayer developers!
Using MMX optimized resampler
AUDIO: 32000 Hz, 5 ch, s16le, 56.0 kbit/2.19% (ratio: 7000->320000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
[AO PCM] File: audiodump.wav (WAVE)
PCM: Samplerate: 32000Hz Channels: Stereo Format s16le
[AO PCM] Info: Faster dumping is achieved with -vc null -vo null -ao pcm:fast
[AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default).
AO: [pcm] 32000Hz 5ch s16le (2 bytes per sample)
Video: no video
Starting playback...
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
a52: CRC check failed! 0 (27:15.9) ??,?%
a52: error at resampling
A: 0.9 (00.9) of 1636.0 (27:15.9) ??,?%
ERROR: Could not initialize SBR
|
Any ideas why this errors are occuring? |
|
Back to top |
|
|
Gusar Advocate
Joined: 09 Apr 2005 Posts: 2665 Location: Slovenia
|
Posted: Tue Apr 01, 2008 8:27 am Post subject: |
|
|
Why are you naming the file .ac3 if it's a dts file??? Maybe that confuses mplayer. An ac3 decoder (liba52 in this case) can not decode dts audio, why should it?
Don't name the file .ac3! It's not an ac3 file! If mplayer then still wants to use liba52 to decode it, add -ac ffdca or -ac dts to the mplayer command to force a dts decoder. |
|
Back to top |
|
|
beltazore Apprentice
Joined: 30 Oct 2003 Posts: 174 Location: Norway
|
Posted: Tue Apr 01, 2008 3:20 pm Post subject: |
|
|
So I called the file audio.dts and ran the neroaccEnc and mplayer command again. This doesent seem to work at all, I also tried this the codecs you suggested, but that did not help either.
This is the error i get:
Code: |
*************************************************************
* *
* Nero Digital Audio Reference MPEG-4 & 3GPP Audio Encoder *
* Copyright 2007 Nero AG *
* All Rights Reserved Worldwide *
* *
* Package build date: Aug 6 2007 *
* *
* *
* See -help for a complete list of available parameters. *
* *
*************************************************************
MPlayer 2:1.0~rc1-0.9.3 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(TM) XP 2200+ (Family: 6, Model: 8, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing audio.dts.
libavformat file format detected.
Stream with high frequencies VQ coding
==========================================================================
Forced audio codec: mad
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Stream with high frequencies VQ coding
AUDIO: 48000 Hz, 2 ch, s16le, 145235.1 kbit/9455.41% (ratio: 18154385->192000)
Selected audio codec: [ffdts] afm: ffmpeg (DTS)
==========================================================================
[AO PCM] File: audiodump.wav (WAVE)
PCM: Samplerate: 48000Hz Channels: Stereo Format s16le
[AO PCM] Info: Faster dumping is achieved with -vc null -vo null -ao pcm:fast
[AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default).
AO: [pcm] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
ERROR: could not parse WAV file
ERROR: could not parse WAV file
skip 0.0 (00.0) of 0.6 (00.6) 5.5%
skip
skip
skip
skip
skip
skip
skip
skip
skip
skip
skip
skip
skip
skip
skip
skip
skip
skip
skip
skip
skip
skip
skip
skip
skip
skip
skip
skip
skip
skip
skip
MPlayer interrupted by signal 11 in module: decode_audio
- MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.
[1] Done neroAacEnc -ignorelength -q 0.20 -if audiodump.wav -of audio.m4a
[2]- Exit 1 neroAacEnc -ignorelength -q 0.20 -if audiodump.wav -of audio.m4a
[3]+ Exit 1 neroAacEnc -ignorelength -q 0.20 -if audiodump.wav -of audio.m4a
|
|
|
Back to top |
|
|
beltazore Apprentice
Joined: 30 Oct 2003 Posts: 174 Location: Norway
|
Posted: Tue Apr 01, 2008 3:29 pm Post subject: |
|
|
Okay, found out what I have to do. I have to convert the DTS soundtrack to a ac3-file. Any ideas on how I can do this? |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Mon Sep 21, 2009 5:01 pm Post subject: |
|
|
Today I had a similar problem with an HD-quality mkv file with two-channel AC3 audio. Passing the commandline opton "-demuxer lavf" to mplayer solved it.
Googling around, it seems that the MPEG PS demuxer which mplayer defaults to for HD streams has serious issues. _________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|