Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mplayer and ac3 file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Luppy
n00b
n00b


Joined: 27 Aug 2005
Posts: 27

PostPosted: Fri May 30, 2008 11:02 am    Post subject: mplayer and ac3 file Reply with quote

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 audio.ac3


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
View user's profile Send private message
Desintegr
l33t
l33t


Joined: 25 Mar 2004
Posts: 863
Location: France - Orléans

PostPosted: Fri May 30, 2008 11:16 am    Post subject: Reply with quote

Is a52 USE flag set for mplayer ?
_________________
Gentoo ~AMD64
Hoc Volo, Sic Jubeo !
Mon wiki : http://desintegr.free.fr
Back to top
View user's profile Send private message
Luppy
n00b
n00b


Joined: 27 Aug 2005
Posts: 27

PostPosted: Fri May 30, 2008 11:24 am    Post subject: Reply with quote

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
View user's profile Send private message
Luppy
n00b
n00b


Joined: 27 Aug 2005
Posts: 27

PostPosted: Fri May 30, 2008 11:34 am    Post subject: Reply with quote

I originally extracted the audio from an mkv file using mkvextract (using the correct track number). If I play the mkv file using mplayer

Code:
mplayer file.mkv


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
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Fri May 30, 2008 3:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
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