[MPlayer-dev-eng] jack bug

Reza Jelveh reza.jelveh at tu-harburg.de
Mon Jun 21 01:42:05 CEST 2004


hi,
im relaying this for a friend.
....

 
---------------------------------------------
---------------------------------------------

Hi,

I was trying out the new jack-audio-out patch, on a fresh CVS, when i got some
troubles. Firstly i have to use "-delay 0.3" to get audio and video in-sync, but
this could be because i don't use the suggested kernel patches, but since i
could find any other video player using jack, i couldn't test if it was just
the way jack works. The second problem is that when i'm playing video-files with
32000 Hz audio, the audio/video sync goes crazy. The video is just played too
fast while the audio is played OK. This is can fixed using the "-srate 48000"
option, but as i understand the jack-patch, it should be done automaticly, but
obviously it isn't...
Here's some system info, and "mplayer -v" output

Archlinux, kernel 2.6.6, pentium 3 667MHz

info from "lspci -vv"

00:0c.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 07)
        Subsystem: Micro-star International Co Ltd: Unknown device 3180
        Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort+ >SERR- <PERR-
        Latency: 32 (3000ns min, 32000ns max)
        Interrupt: pin A routed to IRQ 9
        Region 0: I/O ports at dc00 [size=64]
        Capabilities: <available only to root>


[tomas at hal9000 musik]$ mplayer nelly_furtado-powerless.wmv -ao jack -delay 0.3 -
v
MPlayer dev-CVS-040616-19:50-3.4.0 (C) 2000-2004 MPlayer Team

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville 667.2 MHz (Family: 6, St
epping: 1)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

Reading config file /etc/mplayer/mplayer.conf: Ingen sådan fil eller filkatalog
Reading config file /home/tomas/.mplayer/config
Reading /home/tomas/.mplayer/codecs.conf: 66 audio & 174 video codecs
CommandLine: 'nelly_furtado-powerless.wmv' '-ao' 'jack' '-delay' '0.3' '-v'
init_freetype
get_path('font/font.desc') -> '/home/tomas/.mplayer/font/font.desc'
font: can't open file: /home/tomas/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using usleep() timing
get_path('input.conf') -> '/home/tomas/.mplayer/input.conf'
Parsing input config file /home/tomas/.mplayer/input.conf
Input config file /home/tomas/.mplayer/input.conf parsed: 52 binds
get_path('nelly_furtado-powerless.wmv.conf') -> '/home/tomas/.mplayer/nelly_furt
ado-powerless.wmv.conf'

Playing nelly_furtado-powerless.wmv.
[file] File size is 7271914 bytes
STREAM: [file] nelly_furtado-powerless.wmv
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x866da58  
ASF file format detected.
ASF: packets: 5034  flags: 2  max_packet_size: 1444  min_packet_size: 1444  max_
bitrate: 255412  preroll: 3000
stream type: guid_audio_stream
stream concealment: guid_audio_conceal_interleave
type: 28 bytes,  stream: 8 bytes  ID: 1
unk1: 0  unk2: 12BE54
FILEPOS=0x9AD
==> Found audio stream: 1
======= WAVE Format =======
Format Tag: 353 (0x161)
Channels: 2
Samplerate: 32000
avg byte/sec: 4000
Block align: 768
bits/sample: 16
cbSize: 10
Unknown extra header dump: [0] [88] [0] [0] [17] [0] [0] [1e] [0] [0] 
===========================
ASF: audio scrambling: 1 x 1 x 768
stream type: guid_video_stream
stream concealment: unknown guid 0057fb20-555b-cf11-a8fd00805f5c442b
type: 55 bytes,  stream: 0 bytes  ID: 2
unk1: 0  unk2: 11BBD20
FILEPOS=0xA1F
==> Found video stream: 2
======= VIDEO Format ======
  biSize 44
  biWidth 320
  biHeight 240
  biPlanes 1
  biBitCount 24
  biCompression 844516695='WMV2'
  biSizeImage 0
Unknown extra header dump: [e8] [d1] [fd] [0] 
===========================
============ ASF Stream group == START ===
 object size = 38
 stream count=[0x2][2]
   stream id=[0x1][1]
   max bitrate=[0x87a7][34727]
   stream id=[0x2][2]
   max bitrate=[0x35e0d][220685]
============ ASF Stream group == END ===

 Title: -
 Author: -
 Copyright: (c) 2003 Yahoo! Inc.

Found movie at 0xB02 - 0x6EF5EA
ASF: 1 audio and 1 video streams found
Auto-selected ASF audio ID = 1
Auto-selected ASF video ID = 2
VIDEO:  [WMV2]  320x240  24bpp
ASF: Searching for audio stream (id:1).
[V] filefmt:6  fourcc:0x32564D57  size:320x240  fps:1000,00  ftime:=0,0010
Clip info:
 name: -
 author: -
 copyright: (c) 2003 Yahoo! Inc.
get_path('sub/') -> '/home/tomas/.mplayer/sub/'
get_path('default.sub') -> '/home/tomas/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 131072 + 65536 = 196608 bytes for output buffer.
FFmpeg's libavcodec audio codec
INFO: libavcodec init OK!
AUDIO: 32000 Hz, 2 ch, 16 bit (0x10), ratio: 4000->128000 (32,0 kbit)
Selected audio codec: [ffwmav2] afm:ffmpeg (DivX audio v2 (ffmpeg))
==========================================================================
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Detected wm supports layers.
[x11] Using workaround for Metacity bugs.
[x11] Detected wm supports NetWM.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports FULLSCREEN state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
==========================================================================
Opening video decoder: [dshow] DirectShow video codecs
get_path('registry') -> '/home/tomas/.mplayer/registry'
Decoder supports the following YUV formats: YUY2 IYUV UYVY YV12 YVYU I420 YVU9 
Decoder is capable of YUV output (flags 0x7f)
VDec: vo config request - 320 x 240 (preferred csp: Packed YUY2)
[PP] Using codec's postprocessing, max q = 4.
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (320x240->320x240,flags=0,'MPlayer',0x32315659)
VO: [xv] 320x240 => 320x240 Planar YV12 
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: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 89 for hw scaling
[xv] dx: 0 dy: 0 dw: 320 dh: 256
[x11] NET style stay on top (layer 1). Using state _NET_WM_STATE_ABOVE.
INFO: Win32/DShow video codec init OK!
Selected video codec: [wmv8] vfm:dshow (Windows Media Video 8)
==========================================================================
Checking audio filter chain for 32000Hz/2ch/16bit -> 32000Hz/2ch/16bit...
[libaf] Adding filter dummy 
[dummy] Was reinitialized, rate=32000Hz, nch = 2, format = 0x00000001 and bps = 
2
AF_pre: af format: 2 bps, 2 ch, 32000 hz, little endian signed int 
AF_pre: 32000Hz 2ch Signed 16-bit (Little-Endian)
AO: [Jack] Initialising library.
AO: [Jack] Sample rate mismatch, trying to resample.
AO: [Jack] OK. I'm ready to go (48000 Hz/2 channels/16 bit)
AO: [jack] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: JACK audio output
AO: Author: Kamil Strzelecki <esack at browarek.net>
Building audio filter chain for 32000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[dummy] Was reinitialized, rate=32000Hz, nch = 2, format = 0x00000001 and bps = 
2
[libaf] Adding filter resample 
[resample] Changing sample rate to 48000Hz
[resample] Changing sample rate to 48000Hz
[resample] Using linear interpolation. 
[dummy] Was reinitialized, rate=32000Hz, nch = 2, format = 0x00000001 and bps = 
2
[resample] Using linear interpolation. 
Starting playback...
[libaf] Reallocating memory in module resample, old len = 0, new len = 44104

avg. framerate: 0 fps             
*** [vo] Allocating mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
[xv] dx: 0 dy: 0 dw: 320 dh: 256
A:  25,7 V:  34,3 A-V: -8,621 ct: -3,007  897/897  13% 16%  1,4% 0 0 0%
Uninit audio filters...-8,936 ct: -3,123  932/932  13% 16%  1,4% 0 0 0%
[libaf] Removing filter dummy 
[libaf] Removing filter resample 
uninit audio: ffmpeg
uninit video: dshow
DEMUXER: freeing demuxer at 0x866da58  
DEMUXER: freeing sh_audio at 0x866e2c0  
DEMUXER: freeing sh_video at 0x866e368  
vo: uninit ...

Exiting... (Quit)




More information about the MPlayer-dev-eng mailing list