View previous topic :: View next topic |
Author |
Message |
Luppy n00b
Joined: 27 Aug 2005 Posts: 27
|
Posted: Fri May 30, 2008 11:02 am Post subject: mplayer and ac3 file |
|
|
I seem to be having trouble playing an ac3 audio file. The file works fine with ffmpeg and is definitely ac3. I get the following output with the command
Code: | MPlayer dev-SVN-r26753-4.1.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 3, Stepping: 3)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
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.
[mp3 @ 0x87dea14]Could not find codec parameters (Audio: mp1, 80 kb/s)
LAVF_header: av_find_stream_info() failed
libavformat file format detected.
[mp3 @ 0x87dea14]Could not find codec parameters (Audio: mp1, 80 kb/s)
LAVF_header: av_find_stream_info() failed
Exiting... (End of file)
|
If anyone could help or point me in the right direction it would be muchly appretiated, thanks |
|
Back to top |
|
|
Desintegr l33t
Joined: 25 Mar 2004 Posts: 863 Location: France - Orléans
|
Posted: Fri May 30, 2008 11:16 am Post subject: |
|
|
Is a52 USE flag set for mplayer ? _________________ Gentoo ~AMD64
Hoc Volo, Sic Jubeo !
Mon wiki : http://desintegr.free.fr |
|
Back to top |
|
|
Luppy n00b
Joined: 27 Aug 2005 Posts: 27
|
Posted: Fri May 30, 2008 11:24 am Post subject: |
|
|
Hi
yeah
Code: | Installed versions: 1.0_rc2_p26753-r1(19:56:36 05/25/08)(3dnow 3dnowext X a52 aac alsa cdparanoia cpudetection directfb doc dts dvb dvd encode fbcon gif gtk iconv jack joystick jpeg kernel_linux lirc lzo mad mmx mmxext mp3 openal opengl oss png quicktime real rtc sdl srt sse sse2 theora truetype unicode v4l v4l2 vorbis win32codecs x264 xscreensaver xv xvid xvmc -aalib -altivec -amrnb -amrwb -arts -bidi -bindist -bl -cddb -cdio -custom-cflags -debug -dga -dv -enca -esd -ftp -ggi -ipv6 -ladspa -libcaca -live -md5sum -mp2 -musepack -nas -nemesi -pnm -pulseaudio -radio -rar -samba -speex -ssse3 -svga -teletext -tga -video_cards_mga -video_cards_s3virge -video_cards_tdfx -video_cards_vesa -vidix -xanim -xinerama -zoran) |
I was wondering becuase it specifies libavformat detected it was trying to use the wrong codec.
Code: | mplayer -ac help | grep -i a52 |
shows
Code: | a52 liba52 working AC3-liba52 [liba52] |
I have tried to force it with
Code: | mplayer -ac a52 audio.ac3 |
but I get exactly the same output |
|
Back to top |
|
|
Luppy n00b
Joined: 27 Aug 2005 Posts: 27
|
Posted: Fri May 30, 2008 11:34 am Post subject: |
|
|
I originally extracted the audio from an mkv file using mkvextract (using the correct track number). If I play the mkv file using mplayer
I do get the correct audio decoding and it works
Code: | Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 640.0 kbit/41.67% (ratio: 80000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52) |
|
|
Back to top |
|
|
Gusar Advocate
Joined: 09 Apr 2005 Posts: 2665 Location: Slovenia
|
Posted: Fri May 30, 2008 3:51 pm Post subject: |
|
|
I've seen the same thing. Sometimes it doesn't play at all, sometimes it crashes in the middle of playback. I'd say it's a bug in mplayer. |
|
Back to top |
|
|
|