From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1N1o7w-00050H-RP for garchives@archives.gentoo.org; Sat, 24 Oct 2009 21:26:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F34ABE072D; Sat, 24 Oct 2009 21:26:18 +0000 (UTC) Received: from mail-ew0-f211.google.com (mail-ew0-f211.google.com [209.85.219.211]) by pigeon.gentoo.org (Postfix) with ESMTP id A1859E072D for ; Sat, 24 Oct 2009 21:26:18 +0000 (UTC) Received: by ewy7 with SMTP id 7so9185209ewy.34 for ; Sat, 24 Oct 2009 14:26:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=9xBAzqgWO5Vaz0b8bZqdNMjwoq4b+uDf5vMhpdjTb60=; b=hotdye+QRMz33rWXp26w2WUPLxlsgQ5MMxj8nELA2VgDbCBQ24QMmWEHewRw9h/zG6 5Sh12JOERo2GS7nDZJdGfJ3bV2eltrQOrTkQ4Tz5Z6t4r+TcxLPBDGyi+8gIaXAvmD/h bWk07WCq1zzoVGCJlDUCZLpCSlncRWiAhgOEM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=bUgmEE48hjhrYB5i2p5vRWTHjwwWVP+6FEHEAnsVpEGDVMGqkYBxnmaugfUXAaoCtO plyFXSvFcXjhPMe5nVr8KuPiTNn929kksn4enf/BC7yIkFl0+s2YZfH3Xmz80cvzMyoo pGoCkeQbHQFrfl7d61nGve2u+wHm7laSvOBTI= Received: by 10.211.155.20 with SMTP id h20mr2372345ebo.44.1256419578071; Sat, 24 Oct 2009 14:26:18 -0700 (PDT) Received: from nazgul.localnet (196-210-153-40-rrdg-esr-2.dynamic.isadsl.co.za [196.210.153.40]) by mx.google.com with ESMTPS id 23sm8596794eya.28.2009.10.24.14.26.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 24 Oct 2009 14:26:17 -0700 (PDT) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Kmplayer, video and audio not syncing. Date: Sat, 24 Oct 2009 23:25:13 +0200 User-Agent: KMail/1.12.2 (Linux/2.6.31-zen4; KDE/4.3.2; x86_64; ; ) References: <4AE36083.5090005@gmail.com> <200910242221.12003.alan.mckinnon@gmail.com> <4AE3656B.30200@gmail.com> In-Reply-To: <4AE3656B.30200@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200910242325.13460.alan.mckinnon@gmail.com> X-Archives-Salt: dac9d9b1-294b-4dfd-9de6-ef24c6a4aea3 X-Archives-Hash: 43d459529a075e348cb5dd966922f522 On Saturday 24 October 2009 22:36:59 Dale wrote: > Alan McKinnon wrote: > > On Saturday 24 October 2009 22:16:03 Dale wrote: > >> Hi, > >> > >> I'm still using KDE 3.5 for this but this is annoying at times. I'm > >> looking for a way to adjust the audio/video so that they sync up. Mine > >> seems to be about 1.5 to 2 seconds out of adjustment here. I googled > >> and found that the + and - keys should adjust this but I can't tell that > >> it is working here. Is there some other way to adjust this setting? > >> I'm using kmplayer with mplayer for the backend. > > > > Are you sure the input file isn't broken? Does it happen with many files? > > What type of files? > > > > 2 seconds is a huge lag, much too big to explain as a mere bug, so I'd be > > looking for other data to correlate first. > > Well, it does vary by a bit. Some are not quite so far off. I did find > this little tidbit of info in 'console' under view. This is interesting: > > MPlayer SVN-r29463-4.4.1 (C) 2000-2009 MPlayer Team > Terminal type `unknown' is not defined. > > libavformat file format detected. > ID_VIDEO_ID=0 > [lavf] Video stream found, -vid 0 > ID_AUDIO_ID=1 > [lavf] Audio stream found, -aid 1 > VIDEO: [H264] 480x360 0bpp 29.917 fps 550.2 kbps (67.2 kbyte/s) > ID_FILENAME=/data/Movies/Movies/Clue Club 03 The Real Gone Gondola Pt 1.flv > ID_DEMUXER=lavfpref > ID_VIDEO_FORMAT=H264 > ID_VIDEO_BITRATE=550208 > ID_VIDEO_FPS=29.917 > ID_AUDIO_FORMAT=255 > ID_AUDIO_BITRATE=0 > ID_AUDIO_RATE=44100 > ID_AUDIO_NCH=2 > ID_SEEKABLE=1 > ID_CHAPTERS=0 > [gl] using extended formats. Use -vo gl:nomanyfmts if playback fails. > Opening video filter: [pp=de] > Opening video filter: [scale] > ========================================================================== > Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family > Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264) > ========================================================================== > ID_VIDEO_CODEC=ffh264 > ========================================================================== > Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding) > AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400) > ID_AUDIO_BITRATE=128000 > ID_AUDIO_RATE=44100 > ID_AUDIO_NCH=2 > Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio)) > ========================================================================== > FAAD: compressed input bitrate missing, assuming 128kbit/s! > AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample) > ID_AUDIO_CODEC=faad > Starting playback... > VDec: vo config request - 480 x 360 (preferred colorspace: Planar YV12) > [PP] Using external postprocessing filter, max q = 6. > VDec: using Planar YV12 as output csp (no 0) > Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. > [swscaler @ 0x8939540]using unscaled yuv420p -> rgb32 special converter > VO: [gl] 480x360 => 480x360 BGRA > X11 error: BadMatch (invalid parameter attributes) > > > ************************************************ > **** Your system is too SLOW to play this! **** > ************************************************ > > Possible reasons, problems, workarounds: > - Most common: broken/buggy _audio_ driver > - Try -ao sdl or use the OSS emulation of ALSA. > - Experiment with different values for -autosync, 30 is a good start. > - Slow video output > - Try a different -vo driver (-vo help for a list) or try -framedrop! > - Slow CPU > - Don't try to play a big DVD/DivX on a slow CPU! Try some of the > lavdopts, > e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all. > - Broken file > - Try various combinations of -nobps -ni -forceidx -mc 0. > - Slow media (NFS/SMB mounts, DVD, VCD etc) > - Try -cache 8192. > - Are you using -cache to play a non-interleaved AVI file? > - Try -nocache. > Read DOCS/HTML/en/video.html for tuning/speedup tips. > If none of this helps you, read DOCS/HTML/en/bugreports.html. > > > So, my AMD 2500+ with 2GBs of ram is to slow? I know this is a older > rig but surely it ain't that slow. o_O > > I also realized something else that may contribute to this a little. I > started a emerge last night and thought it would be through by now. > It's still running. It's compiling OOo and some KDE stuff. Could that > slow things down a bit? Everything else seems to be responding fine. I > have portage set to a lower nice level than my desktop. I even have > ionice set. > > Ideas? I haven't snipped - the output might be useful later in the thread. First, the "slow system" message always means something, but it's a bit generic. It means that mplayer can't process the audio fast enough and like the message says is often buggy driver or wrong configs. Try the suggestions listed. An OOo compile in the background will indeed kill interactive processes. I find that even on this DualCore2 2.6 notebook with 4G of RAM, building OOo sends the load through the roof, especially when it starts printing progress lines with lots of dots. It's IO blocking on something and the entire machine just sits there doing nothing whatsoever except sit in a tight loop waiting for soemthing to happen in the build. Try again once emerge OOo has completed. emerge KDE should not affect things anywhere near the same amount. -- alan dot mckinnon at gmail dot com