[MPlayer-users] audio problem with mplayer
sharad
singh.sharad at netsity.com
Fri Oct 28 13:34:41 CEST 2005
I am using MPlayer-1.0pre7 cross compiled for mips platform using gcc
3.3.5.I am using kernel 2.6.11. I have compiled the mplayer using following
options
CC=mipsel-linux-gcc RANLIB=mipsel-linux-ranlib LD=mipsel-linux-ld
./configure - -disable-x11 --target=mips-linux --enable-crash-debug --
prefix=/usr/local/mipsmediaplayer/ --language=en --disable-tv --disable-
network --disable-rtc --disable-edl --disable-vm --disable-freetype --disable-
png --disable-esd --disable-nas --disable-sdl --disable-gif --disable-jpeg --
disable-gl --disable-mencoder --disable-iconv --disable-xv --disable-dga --
disable-vorbis --enable-menu --enable-fbdev --enable-directfb
The mp4 file plays OK with -nosound but gives the following when i play it with
sound turned on...
/ # mplayer /z_Yasmin1mb.mp4 -vo fbdev -demuxer 35 -ao oss -v
MPlayer 1.0pre7-3.3.5 (C) 2000-2005 MPlayer Team
CPU: SGI MIPS
85 audio & 196 video codecs
CommandLine: '/z_Yasmin1mb.mp4' '-vo' 'fbdev' '-demuxer' '35' '-ao' 'oss' '-v'
get_path('font/font.desc') -> '//.mplayer/font/font.desc'
font: can't open file: //.mplayer/font/font.desc
font: can't open file: /usr/local/mipsmediaplayer//share/mplayer/font/font.desc
Using Unoptimized OnScreenDisplay
Using nanosleep() timing
get_path('input.conf') -> '//.mplayer/input.conf'
Can't open input config file //.mplayer/input.conf: No such file or directory
Can't open input config
file /usr/local/mipsmediaplayer//etc/mplayer/input.conf: No such file or y
Falling back on default (hardcoded) input config
get_path('z_Yasmin1mb.mp4.conf') -> '//.mplayer/z_Yasmin1mb.mp4.conf'
Playing /z_Yasmin1mb.mp4.
[file] File size is 6655078 bytes
STREAM: [file] /z_Yasmin1mb.mp4
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: QuickTime/MPEG4 format
libavformat file format detected.
==> Found audio stream: 0
======= WAVE Format =======
Format Tag: 28781 (0x706D)
Channels: 2
Samplerate: 32000
avg byte/sec: 0
Block align: 0
bits/sample: 16
cbSize: 2
Unknown extra header dump: [12] [90]
===========================
==> Found video stream: 1
======= VIDEO Format ======
biSize 72
biWidth 320
biHeight 240
biPlanes 0
biBitCount 24
biCompression 1446269005='MP4V'
biSizeImage 230400
Unknown extra header dump: [0] [0] [1] [b0] [f3] [0] [0] [1] [b5] [e] [e0] [40]
[c0] [cf] [0] [0]
===========================
LAVF: 1 audio and 1 video streams found
LAVF: build 4623
VIDEO: [MP4V] 320x240 24bpp 30.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:35 fourcc:0x5634504D size:320x240 fps:30.00 ftime:=0.0333
get_path('sub/') -> '//.mplayer/sub/'
get_path('default.sub') -> '//.mplayer/default.sub'
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
dec_audio: Allocating 4608 bytes for input buffer.
dec_audio: Allocating 49152 + 65536 = 114688 bytes for output buffer.
FAAD: Decoder init done (0Bytes)!
FAAD: Negotiated samplerate: 32000Hz channels: 2
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 32000 Hz, 2 ch, s16le, 128.0 kbit/12.50% (ratio: 16000->128000)
Selected audio codec: [faad] afm:faad (FAAD AAC (MPEG2/MPEG4 Audio) decoder)
==========================================================================
using /dev/fb0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 32000Hz/2ch/s16le -> 32000Hz/2ch/s16le...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 32000Hz/2ch/s16le
AF_pre: 32000Hz/2ch/s16le
ao2: 32000 Hz 2 chans s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: s16le (requested: s16le)
audio_setup: using 2 channels (requested: 2)
audio_setup: using 32000 Hz samplerate (requested: 32000)
audio_setup: frags: 128/128 (1024 bytes/frag) free: 131072
AO: [oss] 32000Hz 2ch s16le (2 bps)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 32000Hz/2ch/s16le -> 32000Hz/2ch/s16le...
[dummy] Was reinitialized: 32000Hz/2ch/s16le
[dummy] Was reinitialized: 32000Hz/2ch/s16le
Starting playback...
[ffmpeg] aspect_ratio: 1.333333
VDec: vo config request - 320 x 240 (preferred csp: Planar YV12)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (320x240->320x240,flags=0,'MPlayer',0x32315659)
No accelerated colorspace conversion found
SwScaler: using unscaled Planar YV12 -> BGR 16-bit special converter
REQ: flags=0x403 req=0x0
VO: [fbdev] 320x240 => 320x240 BGR 16-bit
VO: Description: Framebuffer Device
VO: Author: Szabolcs Berecz <szabi at inf.elte.hu>
Can't set graphics mode: Invalid argument
var info:
xres: 240
yres: 320
xres_virtual: 240
yres_virtual: 320
xoffset: 0
yoffset: 0
bits_per_pixel: 16
grayscale: 0
red: 11 5 0
green: 5 6 0
blue: 0 5 0
transp: 0 0 0
*** [vo] Allocating mp_image_t, 320x240x16bpp BGR packed, 153600 bytes
*** [scale] Allocating (slices) mp_image_t, 320x240x12bpp YUV planar, 115200
bytes
*** [scale] Allocating (slices) mp_image_t, 320x240x12bpp YUV planar, 115200
bytes
A: 21.9 V: 2.4 A-V: 19.437 ct: 0.164 42/ 42 11% 0% 5763.3% 41 0
***********************************
The audio is not synchronized i.e. no sound is heard and when audio finishes
video is played.When i press ctrl-c following returns..
**********************************
[libaf] Removing filter dummy
uninit audio: faad
FAAD: Closing decoder!
uninit video: ffmpeg
***************
I have tried all options -framedrop, -autosync,-aid,-channels etc but of no
use...
Any help is welcome,thnx in advance
Sharad
More information about the MPlayer-users
mailing list