[MPlayer-users] audio echo

Duane Evenson duane-maillists at shaw.ca
Mon Dec 8 01:48:26 CET 2008


I'm playing a mp4 file and get an echo about 0.41s later. Can anyone
help me?

I've directed output to a file (-ao pcm) and get a wav file with this
same echo: approx. 19740 samples later) so its probably not my audio setup.
I've tried simplifying by eliminating video output. Oh, audio gets out
of sync with video.
I'm running on Kubuntu Hardy 8.04 with the Intel 82801H audio controller.
Previously, I had to change the order of audio codecs in the config
because libmad was causing clicks with this file.
BTW this file works OK using libmp3 by default on another computer.

The config files contain:
$more /etc/mplayer/mplayer.conf ~/.mplayer/config
::::::::::::::
/etc/mplayer/mplayer.conf
::::::::::::::
#
# MPlayer configuration file
#
# Configuration files are read system-wide from /usr/local/etc/mplayer.conf
# and per user from ~/.mplayer/config, where per-user settings override
# system-wide settings, all of which are overrriden by the command line.
#
# The configuration file settings are the same as the command line
# options without the preceding '-'.
#
# See the CONFIGURATION FILES section in the man page
# for a detailed description of the syntax.


##################
# video settings #
##################

# Specify default video driver (see -vo help for a list).
vo=xv

# Use SDL video with the aalib subdriver by default.
#vo = sdl:aalib

# FBdev driver:
#
# mode to use (read from fb.modes)
#fbmode = 640x480-120
#
# location of the fb.modes file
#fbmodeconfig = /etc/fb.modes

# Specify your monitor timings for the vesa and fbdev video output drivers.
# See /etc/X11/XF86Config for timings. Be careful; if you specify settings
# that exceed the capabilities of your monitor, you may damage it.
#
# horizontal frequency range (k stands for 1000)
#monitor-hfreq = 31.5k-50k,70k
#
# vertical frequency range
#monitor-vfreq = 50-90
#
# dotclock (or pixelclock) range (m stands for 1000000)
#monitor-dotclock = 30M-300M

# Start in fullscreen mode by default.
#fs=yes

# Change to a different videomode when going fullscreen.
#vm=yes

# Override the autodetected color depth, may need 'vm=yes' as well.
#bpp=0

# Enable software scaling (powerful CPU needed) for video output
# drivers that do not support hardware scaling.
#zoom=yes

# standard monitor size, with square pixels
#monitoraspect=4:3

# Use this for a widescreen monitor, non-square pixels.
#monitoraspect=16:9

# Keep the player window on top of all other windows.
#ontop=yes


##################
# audio settings #
##################

# Specify default audio driver (see -ao help for a list).
ao=pulse,alsa,

# Use SDL audio driver with the esd subdriver by default.
#ao = sdl:esd

# Specify the mixer device.
#mixer = /dev/mixer

# Resample the sound to 44100Hz with the lavcresample audio filter.
#af=lavcresample=44100

# Specify default audio codec (see -ac help for a list).
ac=mad,


##################
# other settings #
##################

# Drop frames to preserve audio/video sync.
#framedrop = yes

# Specify your preferred skin here (skins are searched for in
# /usr/local/share/mplayer/skins/<name> and ~/.mplayer/skins/<name>).
#skin = Abyss

# Resample the font alphamap.
# 0     plain white fonts
# 0.75  very narrow black outline (default)
# 1     narrow black outline
# 10    bold black outline
#ffactor = 0.75

# cache settings
#
# Use 8MB input cache by default.
#cache = 8192
#
# Prefill 20% of the cache before starting playback.
#cache-min = 20.0
#
# Prefill 50% of the cache before restarting playback after the cache
emptied.
#cache-seek-min = 50

# DVD: Display English subtitles if available.
#slang = en

# DVD: Play English audio tracks if available.
#alang = en


# You can also include other configuration files.
#include = /path/to/the/file/you/want/to/include

#Screensaver support (for non gmplayer)
stop-xscreensaver = "yes"

#Disable joystick support
#It seems to cause very odd problems on laptops
#With accelerometers (See LP: #75925)
nojoystick = yes
::::::::::::::
/home/duane/.mplayer/config
::::::::::::::
# Write your default config options here!
ass=yes
embeddedfonts=yes
fs=yes
alang=eng
slang=eng
ao=alsa
ac=,




My output looks like this:
$mplayer \[Order\]\ Tengen\ Toppa\ Gurren\ Lagann\ -\ 01\
\[83DAF271\].mp4 -v
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) Dual  CPU  T2390  @ 1.86GHz (Family: 6, Model:
15, Stepping: 13)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/home/duane/.mplayer/codecs.conf'
Reading /home/duane/.mplayer/codecs.conf: Can't open
'/home/duane/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf':
No such file or directory
Using built-in default codecs.conf.
Configuration: --enable-runtime-cpudetection --prefix=/usr
--confdir=/etc/mplayer --mandir=/usr/share/man
--win32codecsdir=/usr/lib/win32 --enable-largefiles
--disable-libdvdcss-internal --enable-smb --enable-ftp
--enable-cdparanoia --enable-radio --enable-lirc --enable-joystick
--enable-xf86keysym --disable-tremor-internal --enable-liba52
--enable-musepack --enable-speex --enable-libvorbis --enable-mad
--enable-mp3lib --enable-theora --enable-libdv --enable-libmpeg2
--enable-tv-v4l2 --enable-alsa --enable-ossaudio --enable-esd
--enable-arts --enable-pulse --enable-nas --enable-xinerama
--enable-menu --enable-xv --enable-vm --enable-gl --enable-xmga
--enable-mga --enable-3dfx --enable-tdfxfb --enable-sdl --enable-aa
--enable-caca --enable-dxr3 --enable-xvmc --with-xvmclib=XvMCW
--enable-ggi --enable-fbdev --enable-freetype --enable-gif --enable-png
--enable-jpeg --enable-liblzo --enable-fribidi --enable-ladspa
--disable-gui --disable-mencoder
CommandLine: '[Order] Tengen Toppa Gurren Lagann - 01 [83DAF271].mp4' '-v'
init_freetype
get_path('font/font.desc') -> '/home/duane/.mplayer/font/font.desc'
font: can't open file: /home/duane/.mplayer/font/font.desc
Bitmap font /usr/share/mplayer/font/font.desc loaded successfully! (206
chars)
/home/duane/.fonts/Comic Sans MS.ttf doesn't look like a bitmap font
description, ignoring.
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/duane/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/duane/.mplayer/input.conf'
Can't open input config file /home/duane/.mplayer/input.conf: No such
file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 81 binds
Setting up LIRC support...
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.
get_path('[Order] Tengen Toppa Gurren Lagann - 01 [83DAF271].mp4.conf')
-> '/home/duane/.mplayer/[Order] Tengen Toppa Gurren Lagann - 01
[83DAF271].mp4.conf'

Playing [Order] Tengen Toppa Gurren Lagann - 01 [83DAF271].mp4.
get_path('sub/') -> '/home/duane/.mplayer/sub/'
[file] File size is 239126297 bytes
STREAM: [file] [Order] Tengen Toppa Gurren Lagann - 01 [83DAF271].mp4
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: QuickTime/MPEG4/Motion JPEG 2000 format
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename [Order] Tengen Toppa Gurren Lagann -
01 [83DAF271].mp4 ext: .mp4
Trying demuxer 7 based on filename extension
Checking for MOV
ISO: File Type Major Brand: ISO Base Media
ISO: File Type Minor Version: 1
ISO: File Type Compatible Brand #0: isom
ISO: File Type Compatible Brand #1: avc1
MOV: Movie header found!
MOV: Movie DATA found!
Quicktime/MOV file format detected.
MOV: Movie header (100 bytes): tscale=600  dur=893894
MOV: unknown chunk: iods 13
--------------
MOV: Track #0:
MOV:  Track header!
tkhd len=84 ver=0 flags=0x0 id=1 dur=893842 lay=0 vol=0
MOV:  Media stream!
MOV:   Media header!
MOV:   Handler header: /vide () PAC ISO Video Handler
MOV: unknown handler class: 0x0 ()
MOV:   Media info!
MOV:    Video header!
MOV: unknown chunk: dinf 28
MOV:    Sample info!
MOV:     Description list! (cnt:1)
MOV:      desc #0: avc1  (138 bytes)
MOV:     Sample duration table! (1 blocks)
MOV: unknown chunk: ctts 175960
MOV:     Syncing samples (keyframes) table! (405 entries) (ver:0,flags:0)
MOV:     Sample->Chunk mapping table!  (3 blocks) (ver:0,flags:0)
MOV:     Sample size table! (entries=35718 ss=0) (ver:0,flags:0)
MOV:     Chunk offset table! (3247 chunks)
MOV track #0: 3247 chunks, 35718 samples
pts=35753718  scale=24000  time=1489.738
==> Found video stream: 0
[mov] Video stream found, -vid 0
MOV: AVC decoder configuration record atom (48)!
MOV: avcC version: 1
MOV: avcC profile: 100
MOV: avcC profile compatibility: 0
MOV: avcC level: 51
MOV: avcC nal length size: 4
MOV: avcC number of sequence param sets: 1
MOV: avcC sps 0 have length 25
MOV: avcC number of picture param sets: 1
MOV: avcC pps 0 have length 4
MOV: Found unknown movie atom btrt (20)!
Image size: 960 x 540 (24 bpp)
Display size: 960 x 540
Fourcc: avc1  Codec: ''
--------------
MOV: Track #1:
MOV:  Track header!
tkhd len=84 ver=0 flags=0x0 id=2 dur=893894 lay=0 vol=256
MOV:  Media stream!
MOV:   Media header!
MOV:   Handler header: /soun () PAC ISO Audio Handler
MOV: unknown handler class: 0x0 ()
MOV:   Media info!
MOV:    Sound header!
MOV: unknown chunk: dinf 28
MOV:    Sample info!
MOV:     Description list! (cnt:1)
MOV:      desc #0: mp4a  (55 bytes)
MOV:     Sample duration table! (1 blocks)
MOV:     Sample->Chunk mapping table!  (757 blocks) (ver:0,flags:0)
MOV:     Sample size table! (entries=62076 ss=576) (ver:0,flags:0)
MOV:     Chunk offset table! (3248 chunks)
MOV track #1: 3248 chunks, 0 samples
pts=71511552  scale=48000  time=1489.824
==> Found audio stream: 1
[mov] Audio stream found, -aid 1
Audio bits: 16  chans: 2  rate: 48000
MOV: Found MPEG4 audio Elementary Stream Descriptor atom (35)!
ESDS MPEG4 version: 0  flags: 0x000000
ESDS MPEG4 ES Descriptor (21Bytes):
-> ESId: 0
-> streamPriority: 0
ESDS MPEG4 Decoder Config Descriptor (13Bytes):
-> objectTypeId: 107
-> streamType: 0x15
-> bufferSizeDB: 0x000240
-> maxBitrate: 198.144kbit/s
-> avgBitrate: 192.000kbit/s
Fourcc: mp4a
--------------
MOV: longest streams: A: #1 (3248 samples)  V: #0 (35718 samples)
VIDEO:  [avc1]  960x540  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:7  fourcc:0x31637661  size:960x540  fps:23.98  ftime:=0.0417
get_path('sub/') -> '/home/duane/.mplayer/sub/'
X11 opening display: :0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1440x900 with depth 24 and 32 bpp (":0" => local display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports STAYS_ON_TOP state.
[x11] Current fstype setting honours FULLSCREEN STAYS_ON_TOP ABOVE BELOW
X atoms
Disabling DPMS
DPMSDisable stat: 1
xscreensaver_disable: Could not find XScreenSaver window.
gnome_screensaver_control()[xv common] Drawing colorkey manually.
[xv common] Using colorkey from Xv (0x0101fe).
[xv common] Maximum source image dimensions: 1920x1088
[vo] query(Planar YV12) -> 3
[ass] auto-open
[ass] Init
get_path('fonts') -> '/home/duane/.mplayer/fonts'
get_path('subfont.ttf') -> '/home/duane/.mplayer/subfont.ttf'
[ass] Updating font cache.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: using SSE optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer III, 48000 Hz 192 kbit Joint-Stereo, BPF: 576
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
alsa-init: requested format: 48000 Hz, 2 channels, 9
alsa-init: using ALSA 1.0.15
alsa-init: setup for 1/2 channel(s)
alsa-init: using device default
alsa-init: pcm opened in blocking mode
alsa-init: chunksize set to 1024
alsa-init: fragcount=16
alsa-init: got buffersize=65536
alsa-init: got period size 1024
alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little
Endian
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy at streamminister.de>
AO: Comment: under developement
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Starting playback...
[ffmpeg] aspect_ratio: 1.777778
VDec: vo config request - 960 x 540 (preferred colorspace: Planar YV12)
Trying filter chain: ass vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO Config (960x540->960x540,flags=1,'MPlayer',0x32315659)
REQ: flags=0x437  req=0x0
VO: [xv] 960x540 => 960x540 Planar YV12  [fs]
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
Xvideo image format: 0x59565955 (UYVY) packed
using Xvideo port 84 for hw scaling
[xv-fs] dx: 0 dy: 45 dw: 1440 dh: 810
[xv] dx: 0 dy: 45 dw: 1440 dh: 810
*** [ass] Exporting mp_image_t, 960x540x12bpp YUV planar, 777600 bytes
*** [vo] Allocating mp_image_t, 960x540x12bpp YUV planar, 777600 bytes
Unicode font: 574 glyphs.
[xv] dx: 0 dy: 0 dw: 1440 dh: 900
[xv-fs] dx: 0 dy: 45 dw: 1440 dh: 810
mpg123: Can't rewind stream by 61 bits!8 239/239 35%  4%  1.6% 1 0
mpg123: Can't rewind stream by 22 bits!3 2053/2053 42%  5%  1.5% 1 0
Uninit audio filters...-2.206 ct: -0.334 3964/3964 40%  5%  1.6% 1 0
[libaf] Removing filter dummy
Uninit audio: mp3lib
Uninit video: ffmpeg
Successfully enabled DPMS
gnome_screensaver_control()alsa-uninit: pcm closed
vo: uninit ...

Exiting... (Quit)







More information about the MPlayer-users mailing list