On Sun, Jul 3, 2011 at 5:27 AM, Mick <michaelkintz...@gmail.com> wrote: > > On Sunday 03 Jul 2011 03:24:27 Francisco Ares wrote: > > Hi, All, > > > > I am trying to use smplayer or kmplayer as a regular user. They both don't > > work: kmplayer keeps saying that it is waiting mplayer buffering and > > smplayer reports "Mplayer has finished unexpectedly. Exit code:1". > > > > Running both as root from a terminal, the following message appeared: > > > > > > KGlobal::locale::Warning your global KLocale is being recreated with a > > valid main component instead of a fake component, this usually means you > > tried to call i18n related functions before your main component was > > created. You should not do that since it most likely will not work > > kmplayer(8687): Session bus not found > > To circumvent this problem try the following command (with Linux and bash) > > export $(dbus-launch) > > > > > > I did that export while still as root, and then both started to work, so > > there is no problem with them, but some setting is missing. Additionally, > > even that export did not work for smplayer/kmplayer as regular user. > > > > What should I do next? Where to look at? > > > > Thanks a lot > > Francisco > > "If you have an apple and I have an apple and we exchange apples then you > > and I will still each have one apple. But if you have an idea and I have > > one idea and we exchange these ideas, then each of us will have two > > ideas." - George Bernard Shaw > > Is dbus running? What do you get from: > > # /etc/init.d/dbus status > > and > > $ echo $(dbus-launch) > > Finally, launch mplayer -msglevel all=6 <some_video_file> to see what you get > on the command line. You can increase -msglevel 6 up to 9 to get more verbose > debugging output. Press q to stop the debugging session - you only need the > first couple of screenfulls, until it starts the PARSE messages. > -- > Regards, > Mick
Thanks for your reply, Mick I think I forgot to say: mplayer always works, kmplayer and smplayer don't. Following your steps (a few words are in my current locale): # /etc/init.d/dbus status * status: started # echo $(dbus-launch) DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-mU2yodqLmm,guid=cf51aed93a7b9b4a16af650c00000198 DBUS_SESSION_BUS_PID=17859 # mplayer -msglevel all=6 video.avi MPlayer SVN-r32624-4.5.2 (C) 2000-2010 MPlayer Team CPU vendor name: GenuineIntel max cpuid level: 10 CPU: Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz (Family: 6, Model: 23, Stepping: 7) extended cpuid-level: 8 extended cache-info: 201351232 Detected cache-line size is 64 bytes Testing OS support for SSE... yes. Tests of OS support for SSE passed. CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 1 Compilado para CPU x86 com extenções: MMX MMX2 SSE SSE2 SSSE3 CMOV get_path('codecs.conf') -> '/home/user/.mplayer/codecs.conf' Reading /home/user/.mplayer/codecs.conf: Can't open '/home/user/.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 Usando codecs.conf interno padrão init_freetype Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay get_path('fonts') -> '/home/user/.mplayer/fonts' Configuration: --cc=i686-pc-linux-gnu-gcc --host-cc=i686-pc-linux-gnu-gcc --prefix=/usr --confdir=/etc/mplayer --datadir=/usr/share/mplayer --libdir=/usr/lib --disable-svga --disable-svgalib_helper --disable-ass-internal --disable-arts --disable-kai --enable-networking --enable-joystick --disable-nemesi --disable-bl --disable-bluray --disable-ftp --disable-fribidi --disable-libnut --disable-smb --disable-lirc --disable-lircc --disable-apple-ir --disable-cdparanoia --disable-dvdread-internal --disable-libdvdcss-internal --charset=UTF-8 --disable-tv-bsdbt848 --disable-ivtv --disable-pvr --disable-tv-v4l1 --disable-tv-v4l2 --disable-radio-v4l2 --disable-radio-bsdbt848 --disable-musepack --disable-faad-internal --disable-libmpeg2-internal --disable-libbs2b --disable-libgsm --disable-liblzo --disable-librtmp --disable-libopencore_amrnb --disable-libopencore_amrwb --disable-libmpeg2 --disable-mpg123 --disable-pnm --disable-xanim --disable-libvpx-lavc --codecsdir=/opt/RealPlayer/codecs --disable-md5sum --disable-aa --disable-fbdev --disable-zr --disable-mga --disable-xmga --disable-3dfx --disable-tdfxvid --disable-tdfxfb --disable-xvr100 --disable-ladspa --disable-nas --disable-openal --disable-ossaudio --disable-gui --disable-dxr3 --disable-ggi --disable-dga1 --disable-dga2 --enable-menu --disable-vdpau --disable-vidix --disable-vidix-pcidb --enable-xvmc --with-xvmclib=XvMCW CommandLine: '-msglevel' 'all=6' 'video.avi' Using nanosleep() timing get_path('input.conf') -> '/home/user/.mplayer/input.conf' Can't open input config file /home/user/.mplayer/input.conf: No such file or directory Parsing input config file /etc/mplayer/input.conf Input config file /etc/mplayer/input.conf parsed: 91 binds Opening joystick device /dev/input/js0 Can't open joystick device /dev/input/js0: No such file or directory Can't init input joystick get_path('video.avi.conf') -> '/home/user/.mplayer/video.avi.conf' Reproduzindo video.avi get_path('sub/') -> '/home/user/.mplayer/sub/' [file] File size is 759553200 bytes STREAM: [file] video.avi STREAM: Description: File STREAM: Author: Albeu STREAM: Comment: based on the code from ??? (probably Arpi) LAVF_check: AVI format Detectado formato de arquivo AVI! list_end=0x22A6 ======= AVI Header ======= us/frame: 40000 (fps=25.000) max bytes/sec: 0 padding: 0 MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED frames total: 168680 initial: 0 streams: 2 Suggested BufferSize: 68186 Size: 560 x 464 ========================== list_end=0x10F4 ==> Trilha de video encontrada: 0 [aviheader] Video stream found, -vid 0 ====== STREAM Header ===== Type: vids FCC: DIVX (58564944) Flags: 0 Priority: 0 Language: 0 InitialFrames: 0 Rate: 25/1 = 25.000 Start: 0 Len: 168680 Suggested BufferSize: 68186 Quality -1 Sample size: 0 ========================== Found 'bih', 40 bytes of 40 ======= VIDEO Format ====== biSize 40 biWidth 560 biHeight 464 biPlanes 1 biBitCount 24 biCompression 1482049860='DIVX' biSizeImage 779520 =========================== Regenerating keyframe table for MPEG-4 video. list_end=0x219A ==> Trilha de audio encontrada: 1 [aviheader] Audio stream found, -aid 1 ====== STREAM Header ===== Type: auds FCC: (0) Flags: 0 Priority: 0 Language: 0 InitialFrames: 0 Rate: 16000/1 = 16000.000 Start: 0 Len: 107954141 Suggested BufferSize: 3567 Quality 10000 Sample size: 1 ========================== Found 'wf', 50 bytes of 18 ======= WAVE Format ======= Format Tag: 85 (0x55) Channels: 2 Samplerate: 48000 avg byte/sec: 16000 Block align: 1 bits/sample: 0 cbSize: 12 mp3.wID=1 mp3.fdwFlags=0x2 mp3.nBlockSize=384 mp3.nFramesPerBlock=1 mp3.nCodecDelay=1393 ========================================================================== list_end=0x22A6 AVI: dmlh found (size=248) (total_frames=168680) list_end=0x2D1471A8 Found movie at 0x280C - 0x2D1471A8 Auto-selected AVI video ID = 0 AVI: Searching for audio stream (id:-1) Auto-selected AVI audio ID = 1 XXX initial v_pts=0.160 a_pos=0 (0.000) AVI video size=650239367 (168680) audio size=107954141 VIDEO: [DIVX] 560x464 24bpp 25.000 fps 771.0 kbps (94.1 kbyte/s) Auto-selected AVI audio ID = 1 [V] filefmt:3 fourcc:0x58564944 size:560x464 fps:25.000 ftime:=0.0400 get_path('sub/') -> '/home/user/.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 [VO_XV] Using Xv Adapter #0 (NV17 Video Texture) [xv common] Drawing no colorkey. [xv common] Maximum source image dimensions: 8192x8192 ========================================================================== Abrindo decodificador de vídeo: [ffmpeg] FFmpeg's libavcodec codec family INFO: libavcodec init OK! Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4) ========================================================================== ========================================================================== Abrindo decodificador de audio: [mp3lib] MPEG layer-2, layer-3 dec_audio: Alocando 4608 + 65536 = 70144 bytes para o buffer de saída mp3lib: using SSE optimized decore! MP3lib: init layer2&3 finished, tables done MPEG 1.0, Layer III, 48000 Hz 128 kbit Joint-Stereo, BPF: 384 Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0 AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->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 Trying every known audio driver... alsa-init: requested format: 48000 Hz, 2 channels, 9 alsa-init: using ALSA 1.0.23 alsa-init: setup for 1/2 channel(s) alsa-init: using device default alsa-init: pcm opened in blocking mode alsa-init: got buffersize=96000 alsa-init: got period size 1500 alsa: 48000 Hz/2 channels/4 bpf/96000 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 <j...@streamminister.de> AO: Comment: under development Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le... [dummy] Was reinitialized: 48000Hz/2ch/s16le [dummy] Was reinitialized: 48000Hz/2ch/s16le Iníciando reprodução... Increasing filtered audio buffer size from 0 to 65536 [mpeg4 @ 0x87024e0]looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag [ffmpeg] aspect_ratio: 0.000000 VDec: vo config request - 560 x 464 (preferred colorspace: Planar YV12) Trying filter chain: vo VDec: using Planar YV12 as output csp (no 0) Aspecto do filme é indefinido - nenhum pré-redimensionamento aplicado. VO Config (560x464->560x464,flags=0,'MPlayer',0x32315659) VO: [xv] 560x464 => 560x464 Planar YV12 VO: Description: X11/Xv VO: Author: Gerd Knorr <kra...@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 310 for hw scaling *** [vo] Allocating (slices) mp_image_t, 560x464x12bpp YUV planar, 389760 bytes Unicode font: 5162 glyphs. Unicode font: 5162 glyphs. A: 0.2 V: 0.0 A-V: 0.243 ct: 0.000 1/ 1 ??% ??% ??,?% 0 0 *** [vo] Allocating (slices) mp_image_t, 560x464x12bpp YUV planar, 389760 bytes A: 6.3 V: 6.3 A-V: 0.000 ct: 0.000 158/158 4% 0% 0.4% 3 0 Uninit audio filters... [libaf] Removing filter dummy finalizando audio: mp3lib finalizando vídeo: ffmpeg alsa-uninit: pcm closed vo: uninit ... Saindo... (Sair) The directory /home/user/.mplayer/ contains two files: # l /home/user/.mplayer/ total 34K drwxr-x--- 2 user users 96 Out 17 2009 ./ drwxrwx--- 194 user users 27K Jul 3 12:07 ../ -rw-r----- 1 user users 44 Out 7 2009 config -rw-r----- 1 user users 345 Jan 20 02:00 registry the config file is empty and the registry looks like an excerpt of a few Windoze registry entries. I've renamed the directory .mplayer and a new one was created. Apparently it affected nothing. Thanks Francisco "If you have an apple and I have an apple and we exchange apples then you and I will still each have one apple. But if you have an idea and I have one idea and we exchange these ideas, then each of us will have two ideas." - George Bernard Shaw