[mythtv-users] Re: mplayer audio sync issues

Adam Gianola devils.taco at gmail.com
Thu Jun 9 04:56:27 UTC 2005


Well, maybe I won't bother reverting to 1.0.8 if its already known
there is a problem with 1.0.9. I checked the CPU usage with mplayer
and its low, like 10% or less.

Mike, in response your request

a) Soundcard (lspci -v):
00:14.5 Multimedia audio controller: ATI Technologies Inc IXP150 AC'97
Audio Controller
       Subsystem: Soyo Computer, Inc: Unknown device a428
       Flags: bus master, 66Mhz, slow devsel, latency 64, IRQ 5
       Memory at febfcc00 (32-bit, non-prefetchable) [size=256]

b) .asoundrc:
pcm.atiixp {
type hw
card 0
}

ctl.atiixp {
type hw
card 0
}

c) mplayer -v /path/to/video_file 2>&1 | col -b | tee mplayer.log:
[mythtv at biggles ~]$ cat mplayer.log 
MPlayer 1.0pre7-3.4.3 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Northwood (Family: 8, Stepping: 4)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1


CommandLine: '-v' '/home/mythtv/BadReligion_LosAngelesIsBurning.avi'
init_freetype
get_path('font/font.desc') -> '/home/mythtv/.mplayer/font/font.desc'
font: can't open file: /home/mythtv/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your
system startup scripts.
Using nanosleep() timing
get_path('input.conf') -> '/home/mythtv/.mplayer/input.conf'
Can't open input config file /home/mythtv/.mplayer/input.conf: No such
file or directory
Can't open input config file /etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
Can't init input joystick
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Setting up LIRC support...
get_path('BadReligion_LosAngelesIsBurning.avi.conf') ->
'/home/mythtv/.mplayer/BadReligion_LosAngelesIsBurning.avi.conf'
Playing /home/mythtv/BadReligion_LosAngelesIsBurning.avi.
[file] File size is 54972416 bytes
STREAM: [file] /home/mythtv/BadReligion_LosAngelesIsBurning.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
AVI file format detected.
list_end=0x2292
======= AVI Header =======
us/frame: 33367  (fps=29.970)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames  total: 6146   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  640 x 480
==========================
list_end=0x10F4
==> Found video stream: 0
====== STREAM Header =====
Type: vids   FCC: divx (78766964)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 30000/1001 = 29.970
Start: 0   Len: 6146
Suggested BufferSize: 69953
Quality 10000
Sample size: 0
==========================
found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 640
  biHeight 480
  biPlanes 1
  biBitCount 12
  biCompression 808802372='DX50'
  biSizeImage 921600
===========================
Regenerating keyframe table for MPEG4 video
list_end=0x2186
==> Found audio stream: 1
====== STREAM Header =====
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 1
Rate: 15963/1 = 15963.000
Start: 0   Len: 3273557
Suggested BufferSize: 7982
Quality -1
Sample size: 1
==========================
found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 44100
avg byte/sec: 15963
Block align: 1
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=417
mp3.nFramesPerBlock=1
mp3.nCodecDelay=1393
===========================
list_end=0x2292
AVI: dmlh found (size=248) (total_frames=6146)
list_end=0x343CA9C
Found movie at 0x280C - 0x343CA9C
Reading INDEX block, 12279 chunks for 6146 frames (fpos=0x343caa4)
AVI index offset: 0x2808 (movi=0x280C idx0=0x4 idx1=0x1F3A)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=51386657 (6146) audio size=3273557 (3273557)
VIDEO:  [DX50]  640x480  12bpp  29.970 fps  2004.6 kbps (244.7 kbyte/s)
[V] filefmt:3  fourcc:0x30355844  size:640x480  fps:29.97  ftime:=0.0334
get_path('sub/') -> '/home/mythtv/.mplayer/sub/'
get_path('default.sub') -> '/home/mythtv/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: made decode tables with MMX optimization
mp3lib: using MMX optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer III, 44100 Hz 128 kbit Joint-Stereo, BPF: 417
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
No vidix driver name provided, probing available ones (-v option for details)!
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x720 with depth 24 and 32 bpp (":0.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
vidixlib: PROBING: /usr/lib/mplayer/vidix/rage128_vid.so
[rage128] Error occurred during pci scan: Operation not permitted
vidixlib: PROBING: /usr/lib/mplayer/vidix/mga_vid.so
[mga] probe
[mga] Error occurred during pci scan: Operation not permitted
vidixlib: PROBING: /usr/lib/mplayer/vidix/savage_vid.so
[savage_vid] Error occurred during pci scan: Operation not permitted
vidixlib: PROBING: /usr/lib/mplayer/vidix/pm3_vid.so
[pm3] Error occurred during pci scan: Operation not permitted
vidixlib: PROBING: /usr/lib/mplayer/vidix/nvidia_vid.so
[nvidia_vid] Error occurred during pci scan: Operation not permitted
vidixlib: PROBING: /usr/lib/mplayer/vidix/cyberblade_vid.so
[cyberblade] Error occurred during pci scan: Operation not permitted
vidixlib: PROBING: /usr/lib/mplayer/vidix/radeon_vid.so
[radeon] Error occurred during pci scan: Operation not permitted
vidixlib: PROBING: /usr/lib/mplayer/vidix/mga_crtc2_vid.so
[mga] probe
[mga] Error occurred during pci scan: Operation not permitted
vidixlib: PROBING: /usr/lib/mplayer/vidix/sis_vid.so
[SiS] Error occurred during pci scan: Operation not permitted
vidixlib: PROBING: /usr/lib/mplayer/vidix/unichrome_vid.so
[unichrome] Error occurred during pci scan: Operation not permitted
vidixlib: PROBING: /usr/lib/mplayer/vidix/mach64_vid.so
[mach64] Error occurred during pci scan: Operation not permitted
vosub_vidix: Couldn't find working VIDIX driver
[xv common] Drawing colorkey manually.
[xv common] Using colorkey from Xv (0x010200).
==========================================================================
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 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 44100Hz/2ch/s16le
AF_pre: 44100Hz/2ch/s16le
alsa-init: requested format: 44100 Hz, 2 channels, 9
alsa-init: compiled for ALSA-1.0.8
alsa-init: setup for 1/2 channel(s)
alsa-init: 1 soundcard found, using: default
alsa-init: pcm opend in block-mode
alsa-init: chunksize set to 940
alsa-init: fragcount=16
alsa-init: got buffersize=60208
alsa: 44100 Hz/2 channels/4 bpf/60208 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 44100Hz 2ch s16le (2 bps)
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 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
Starting playback...
alsa-space: free space = 60208, prepared --
[ffmpeg] aspect_ratio: 1.333333
VDec: vo config request - 640 x 480 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (640x480->640x480,flags=0,'MPlayer',0x32315659)
VO: [xv] 640x480 => 640x480 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 177 for hw scaling
[xv] dx: 0 dy: 0 dw: 854 dh: 480
*** [vo] Allocating (slices) mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
[xv] dx: 0 dy: 0 dw: 854 dh: 480
XXX initial  v_pts=0.0000.a_pos=7982.(0.500)/  1 ??% ??% ??,?% 0 0
*** [vo] Allocating (slices) mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
*** [vo] Allocating-(slices)5mp_image_t, 640x480x12bpp?YUV?planar, 460800 bytes
ds_fill_buffer:.EOF-reached1(stream:.audio)37/6137110%0%0%0.0.7% 0 0

Broken frame at 0x31F2EA
ds_fill_buffer:.EOF-reached0(stream:.video)46/6146 10%  0%  0.7% 0 0
EOF2code:V1 205.0 A-V: -0.005 ct: -0.005 6146/6146 10%  0%  0.7% 0 0

Uninit audio filters...
[libaf] Removing filter dummy
uninit audio: mp3lib
uninit video: ffmpeg
alsa-uninit: pcm closed
vo: uninit ...

Exiting... (End of file)




d) ~/.mplayer/config:
# Write your default config options here!



-Adam


On 6/8/05, Michael T. Dean <mtdean at thirdcontact.com> wrote:
> Adam Gianola wrote:
> 
> >I checked it out, and I have the same results.  When I explicitly tell
> >mplayer to use '-ao oss' there is no sync issue.  When I have '-ao
> >alsa', the audio and video don't match (audio too late).  I forgot to
> >check the CPU load, but its probably not very high (2.4 GHz P4).  I
> >still want to go back to the older alsa and make sure its a problem
> >with the new alsa and not with both.
> >
> >
> You're not the only ones experiencing this problem.  Gentoo has this bug
> report http://bugs.gentoo.org/show_bug.cgi?id=94577 discussing the same
> issue.
> 
> It might be easier to figure out the problem if you post:
>     a) the name of your soundcard
>     b) your .asoundrc (or, if it's the digital sound one, just let me
> know and tell me which, if any, configuration you've enabled as default)
>     c) the output of:
>         mplayer -v /path/to/video_file 2>&1 | col -b | tee mplayer.log
>     d) your ~/.mplayer/config file
> 
> Thanks,
> Mike
> 
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>


More information about the mythtv-users mailing list