Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Kmplayer, video and audio not syncing.
Date: Sat, 24 Oct 2009 21:26:21
Message-Id: 200910242325.13460.alan.mckinnon@gmail.com
In Reply to: Re: [gentoo-user] Kmplayer, video and audio not syncing. by Dale
1 On Saturday 24 October 2009 22:36:59 Dale wrote:
2 > Alan McKinnon wrote:
3 > > On Saturday 24 October 2009 22:16:03 Dale wrote:
4 > >> Hi,
5 > >>
6 > >> I'm still using KDE 3.5 for this but this is annoying at times. I'm
7 > >> looking for a way to adjust the audio/video so that they sync up. Mine
8 > >> seems to be about 1.5 to 2 seconds out of adjustment here. I googled
9 > >> and found that the + and - keys should adjust this but I can't tell that
10 > >> it is working here. Is there some other way to adjust this setting?
11 > >> I'm using kmplayer with mplayer for the backend.
12 > >
13 > > Are you sure the input file isn't broken? Does it happen with many files?
14 > > What type of files?
15 > >
16 > > 2 seconds is a huge lag, much too big to explain as a mere bug, so I'd be
17 > > looking for other data to correlate first.
18 >
19 > Well, it does vary by a bit. Some are not quite so far off. I did find
20 > this little tidbit of info in 'console' under view. This is interesting:
21 >
22 > MPlayer SVN-r29463-4.4.1 (C) 2000-2009 MPlayer Team
23 > Terminal type `unknown' is not defined.
24 >
25 > libavformat file format detected.
26 > ID_VIDEO_ID=0
27 > [lavf] Video stream found, -vid 0
28 > ID_AUDIO_ID=1
29 > [lavf] Audio stream found, -aid 1
30 > VIDEO: [H264] 480x360 0bpp 29.917 fps 550.2 kbps (67.2 kbyte/s)
31 > ID_FILENAME=/data/Movies/Movies/Clue Club 03 The Real Gone Gondola Pt 1.flv
32 > ID_DEMUXER=lavfpref
33 > ID_VIDEO_FORMAT=H264
34 > ID_VIDEO_BITRATE=550208
35 > ID_VIDEO_FPS=29.917
36 > ID_AUDIO_FORMAT=255
37 > ID_AUDIO_BITRATE=0
38 > ID_AUDIO_RATE=44100
39 > ID_AUDIO_NCH=2
40 > ID_SEEKABLE=1
41 > ID_CHAPTERS=0
42 > [gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
43 > Opening video filter: [pp=de]
44 > Opening video filter: [scale]
45 > ==========================================================================
46 > Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
47 > Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
48 > ==========================================================================
49 > ID_VIDEO_CODEC=ffh264
50 > ==========================================================================
51 > Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
52 > AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
53 > ID_AUDIO_BITRATE=128000
54 > ID_AUDIO_RATE=44100
55 > ID_AUDIO_NCH=2
56 > Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
57 > ==========================================================================
58 > FAAD: compressed input bitrate missing, assuming 128kbit/s!
59 > AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
60 > ID_AUDIO_CODEC=faad
61 > Starting playback...
62 > VDec: vo config request - 480 x 360 (preferred colorspace: Planar YV12)
63 > [PP] Using external postprocessing filter, max q = 6.
64 > VDec: using Planar YV12 as output csp (no 0)
65 > Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
66 > [swscaler @ 0x8939540]using unscaled yuv420p -> rgb32 special converter
67 > VO: [gl] 480x360 => 480x360 BGRA
68 > X11 error: BadMatch (invalid parameter attributes)
69 >
70 >
71 > ************************************************
72 > **** Your system is too SLOW to play this! ****
73 > ************************************************
74 >
75 > Possible reasons, problems, workarounds:
76 > - Most common: broken/buggy _audio_ driver
77 > - Try -ao sdl or use the OSS emulation of ALSA.
78 > - Experiment with different values for -autosync, 30 is a good start.
79 > - Slow video output
80 > - Try a different -vo driver (-vo help for a list) or try -framedrop!
81 > - Slow CPU
82 > - Don't try to play a big DVD/DivX on a slow CPU! Try some of the
83 > lavdopts,
84 > e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
85 > - Broken file
86 > - Try various combinations of -nobps -ni -forceidx -mc 0.
87 > - Slow media (NFS/SMB mounts, DVD, VCD etc)
88 > - Try -cache 8192.
89 > - Are you using -cache to play a non-interleaved AVI file?
90 > - Try -nocache.
91 > Read DOCS/HTML/en/video.html for tuning/speedup tips.
92 > If none of this helps you, read DOCS/HTML/en/bugreports.html.
93 >
94 >
95 > So, my AMD 2500+ with 2GBs of ram is to slow? I know this is a older
96 > rig but surely it ain't that slow. o_O
97 >
98 > I also realized something else that may contribute to this a little. I
99 > started a emerge last night and thought it would be through by now.
100 > It's still running. It's compiling OOo and some KDE stuff. Could that
101 > slow things down a bit? Everything else seems to be responding fine. I
102 > have portage set to a lower nice level than my desktop. I even have
103 > ionice set.
104 >
105 > Ideas?
106
107 I haven't snipped - the output might be useful later in the thread.
108
109 First, the "slow system" message always means something, but it's a bit
110 generic. It means that mplayer can't process the audio fast enough and like
111 the message says is often buggy driver or wrong configs. Try the suggestions
112 listed.
113
114 An OOo compile in the background will indeed kill interactive processes. I
115 find that even on this DualCore2 2.6 notebook with 4G of RAM, building OOo
116 sends the load through the roof, especially when it starts printing progress
117 lines with lots of dots. It's IO blocking on something and the entire machine
118 just sits there doing nothing whatsoever except sit in a tight loop waiting
119 for soemthing to happen in the build.
120
121 Try again once emerge OOo has completed. emerge KDE should not affect things
122 anywhere near the same amount.
123
124
125
126 --
127 alan dot mckinnon at gmail dot com

Replies

Subject Author
Re: [gentoo-user] Kmplayer, video and audio not syncing. Dale <rdalek1967@×××××.com>