kaffeine start up bug, suse 13.1-kde

When I double click on an FLV video, the window opens, but the video doesn’t play. It takes closing the window and clicking again. I do this many times over to get the video to start. Can someone help me?

Thanks

Start kaffeine from a terminal, and post the errors reported. Maybe you don’t have the necessary codecs installed yet?

As I understand it, it works when starting Kaffeine a second time, so the codecs must be installed correctly.

Somebody else had a similar problem here in the german forum a while ago.
There it was caused by VAAPI. Installing the package vdpau-video helped.
If you speak german, here is the thread:
http://forums.opensuse.org/showthread.php/492465-DVB-obwohl-Modul-geladen-modprobe-nötig

So try to install this if you are using an nvidia card with the proprietary nvidia driver.

Or try to set Kaffeine to use a different video output device by editing ~/.kde4/share/apps/kaffeine/xine-config (you can try this no matter which graphics card you have)

video.driver:vdpau

or if you don’t use nvidia, try:

video.driver:xshm

] = action taken

>kaffeine hero.flv
Object::connect: No such signal org::freedesktop::UPower:DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower:DeviceRemoved(QDBusObjectPath)
alex@linux-nsfx:~/Videos> libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/nouveau_drv_video.so
libva info: va_openDriver() returns -1

[control-c break]

> kaffeine hero.flv
> kaffeine hero.flv

[Close open window]

>kaffeine hero.flv
Object::connect: No such signal org::freedesktop::UPower:DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower:DeviceRemoved(QDBusObjectPath)
alex@linux-nsfx:~/Videos> xv_set_property: property=0, value=0
xv_set_property: property=0, value=0

[video plays]

So this is definitely a problem with VAAPI as I suspected, see my previous post.

Do you have libvdpau_nouveau installed? If not install it, maybe vdpau would work better. (You may have to set the video driver to “vdpau” to use it, but that should be preferred anyway I think).
I don’t know if vdpau-video would work with the nouveau driver, I think that’s nvidia specific.

Setting the video driver to “xshm” should work in any case, but would provide no hardware acceleration. “xv” might work as well, which does use 2d hardware acceleration, but no hardware decoding.

What graphics card do you have, btw?
Maybe you would be better off by just installing the nvidia driver?

I installed the nvidia drivers. nvidia 560gt 2 gig

Same error

libvdpaul installed

libvdpau_nouveau installed that.

Same error.

You may have to set the video driver to “vdpau” to use it

How? Yast?

No.
~/.kde4/share/apps/kaffeine/xine-config as I wrote before.

But how did you install the nvidia driver?
And does it work?
Please install the package “Mesa-demo-x” and post the output of:

glxinfo | grep render

And you still didn’t say which graphics card you have. Please do so.

PS: As you are using the nvidia driver now, please also install vdpau-video from Packman, that should help in that case.

lv>I installed the nvidia drivers. ----video card: evga nvidia 560gt 2 gig ------------

The nvidia drivers work fine. The error happens with or without nvidia drivers installed. I found the error after installing the multi-media drivers.

Do you have libvdpau_nouveau installed?

libvdpaul installed
libvdpau_nouveau installed

I used the ‘one-click install’ for multi-media support and nvidia drivers.

~/.kde4/share/apps/kaffeine/xine-config

Clicking plays the video. Then I close it. Then click a different video, no play. Close window. That file is overridden and video driver is set back to ‘auto’. I used file manager super user mode - kwrite then save.

>glxinfo | grep render
[no output]

PS: As you are using the nvidia driver now, please also install vdpau-video from Packman, that should help in that case.

Installed that.

That’s not needed if you use the nvidia driver, but it shouldn’t harm.

~/.kde4/share/apps/kaffeine/xine-config

Clicking plays the video. Then I close it. Then click a different video, no play. Close window. That file is overridden and video driver is set back to ‘auto’. I used file manager super user mode - kwrite then save.

Don’t! Open it as normal user. That is a user configuration.

Most likely you edited the xine-config for root, which has of course no effect for your user.

And try setting the video device to “vdpau” (or “xv” if that doesn’t work, or “xshm”).

>glxinfo | grep render
[no output]

You have to install “Mesa-demo-x” for that.

Hi, I get the following message:

karl@erlangen:~> kaffeine Bilder/2013//2013-12-23/p1010399.mov

Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/r600_drv_video.so
libva info: va_openDriver() returns -1

Nothing is displayed by Kaffeine. Do you have any idea?

See above.
Try setting the video device to “xv” or “xshm”, that should work. (you won’t have any hardware decoding then)

Or try to install libvdpau_r600, that might help as well (maybe you would have to set the video device to “vdpau” in that case, although this should be the preferred one anyway).

Installation of libvdpau_r600 did not change anything. Then changed the xine defaults in /home/karl/.kde4/share/apps/kaffeine/xine-config from auto to opengl :

# { auto  aadxr3  dxr3  xv  vaapi  opengl2  raw  opengl  xshm  xxmc  none  vidixfb  vidix  fb  xvmc }, default: 0
video.driver:opengl

Now I can play many movies. However playing a Quicktime movie resulted in:

karl@erlangen:~> kaffeine Bilder/2013/2013-12-23/p1010399.mov
Not a JPEG file: starts with 0x28 0x00

Did you try “vdpau” as well? Strange that it doesn’t show in your xine-config, mine says:

# { auto  vdpau  aadxr3  dxr3  xv  vaapi  raw  opengl  opengl2  xshm  caca  aa  none  xxmc  fb  xvmc }, default: 0

Maybe your Xine is built without vdpau support?
Which packages do you have installed, do you have libxine2-codecs?

rpm -qa | grep xine

However playing a Quicktime movie:

karl@erlangen:~> kaffeine Bilder/2013/2013-12-23/p1010399.mov

results in the message “Not a JPEG file: starts with 0x28 0x00”.

Well, that could be a Xine problem of course with that particular file. Do you have libquicktime0 from Packman?

I did not try as it is not shown in the default configuration.

karl@erlangen:~> rpm -qa | grep xine
libxine2-codecs-1.2.3-89.4.i586
libxine2-pulse-1.2.3-3.1.3.i586
xinetd-2.3.15-2.1.2.i586
libxine2-1.2.3-3.1.3.i586

I have that library from both of openSUSE and Packman. Both are not working. I added w32codec-all as it’s description says “for decoding AVI- and Quicktime-movies”. Kaffeine displays .AVI but not .mov.

I checked again and found out that Kaffeine plays .mov files downloaded from the internet, but not those from my camera.

Right, your libxine2 and libxine2-pulse are from the standard repo. Switch those to the Packman versions and vdpau should work (and should even be used by default if you set the video device to “auto”).

It’s never a good idea to mix packages belonging together from different repos anyway…

I have that library from both of openSUSE and Packman. Both are not working.

What? You have both installed? How is that even possible? :wink:

Well, have you tried to play that file with a different player? (VLC, MPlayer)

I added w32codec-all as it’s description says “for decoding AVI- and Quicktime-movies”. Kaffeine displays .AVI but not .mov.

You don’t need that, as it’s not used by default anymore since years anyway. And it doesn’t even work on a 64bit system.

I was not aware that there was an inconstent configuration. Erronously i assumed that Yast would take care of this problem. I changed all xine libs to Packman, deinstalled w32codec-all, removed /home/karl/.kde4/share/apps/kaffeine/xine-config and started kaffeine again. Now it plays the videos with no change to the defaults.

What? You have both installed? How is that even possible?
I had one version only at the same time, but switched between both versions by reinstalling.

Well, have you tried to play that file with a different player?
.avi files are now displayed by both Kaffeine and VLC as are .mov files downloaded from the internet. .mov from my camera are displayed by VLC only.

Well, in this case the packages are compatible to each other anyway.
But libxine2 from the standard repo doesn’t contain the vdpau plugin, whereas the Packman version does.
I think the plugin should be moved over to the libxine2-codecs package so that you could just keep libxine2 from OSS and don’t have to switch it over to the Packman version.

vdpau is your best choice since it supports hardware decoding the video on the graphics card, so this doesn’t have to be done by the CPU. (whether the card supports that is a different question though, mine doesn’t. All recent cards should though.)
VAAPI is something similar, but apparently it doesn’t work too well (with radeon cards at least).

.avi files are now displayed by both Kaffeine and VLC as are .mov files downloaded from the internet. .mov from my camera are displayed by VLC only.

Well, I guess that’s a bug/limitation in xine then. You might want to file a bugreport at https://bugs.xine-project.org/ .

I’v done five videos in row, no problems. Thanks to those who corrected the problem. :slight_smile: