Shardik wrote:So it seems indeed that the movie functions in PB's Linux version are broken...
Vera wrote:Would you please make it a bug report if you think it's appropriate, for I simply can't say anything about this and could only copy+paste your analysis.
Sorry for the premature statement that the movie functions seem to be broken. The movie functions are working fine but it took me many hours to find out which libraries are essential to install in order to successfully run PB's PlayMovie() command...
Until now I was
not able to run my above code example (which I have modified a bit to detect if a movie has already been loaded during a previous run) on these distributions:
- Bodhi Linux 0.2 x86 with Pantheon
- Fedora 20 x86 with Gnome 3
- Kubuntu 10.04 x86 with KDE
- Kubuntu 14.04 x86 with KDE
- Linux Mint 17 x86 with Cinnamon
- Lubuntu 14.04 x86 with LXDE
- OpenSuSE 13.1 x86 with KDE
- Ubuntu 13.10 x86 with Unity
- Ubuntu 14.10 x86 with Unity
- PCLinuxOS MiniMe x86 with KDE
- Xubuntu 14.04 x86 with Xfce
Until now I have been
successful with these distributions:
- OpenSuSE 12.3 x86
- Ubuntu 14.04 x64 with KDE
In general I first executed my above program to download one of the two movies. In no case in my tests of 13 Linux distributions did my program work on the first try although in all Debian based distributions libxine-dev was installed and checkinstall.sh reported that all is OK.
The next step was to start the movie downloaded to /tmp by double clicking it in the file manager of the tested distribution. In most cases the distribution specific video player reported missing libraries which had to be installed. After the installation of these libraries in most cases it was possible to play the movie with the distribution's video player so that all necessary codecs for video playback should have been installed.
Unfortunately there exist multiple possible alternative libraries to play a video so if a movie can be played back with the distribution's preinstalled video player that doesn't mean that all problems are solved. Therefore it's necessary to know which libraries PB is using for executing the LoadMovie() and PlayMovie() commands. If LoadMovie() doesn't report an error I was already one step further. I started my above program from the command line and tried to resolve the errors which were displayed.
Here are the needed libraries for the Linux distributions successfully running my above program with the MPEG and AVI videos (the libraries in brackets are dependancies of the first one and will be automatically installed). But keep in mind that unfortunately your requirements may be different depending on your graphics card! Both my two test computers utilized a different model of a Radeon graphics card...
OpenSuSE 12.3 x86 with KDE:
- Install packman repository and needed codecs for multimedia support from console:
Code: Select all
sudo zypper ar -f -n packman-essentials http://packman.inode.at/suse/openSUSE_12.3/Essentials packman-essentials
sudo zypper ar -f -n packman-multimedia http://packman.inode.at/suse/openSUSE_12.3/Multimedia packman-multimedia
sudo zypper install libxine2-codecs k3b-codecs ffmpeg lame gstreamer-0_10-plugins-bad gstreamer-0_10-plugins-ugly gstreamer-0_10-plugins-ugly-orig-addon gstreamer-0_10-plugins-ffmpeg libdvdcss2
- Install libvdpau_r600 (hardware specific library for hardware accelerated video rendering on my graphics card ATI Radeon HD 5670)
Ubuntu 14.04 x64 with KDE, Unity and Enlightenment E 17 (Graphics card: ATI Radeon HD 5670; libxine1-dev and dependancies didn't work correctly!) :
- libxine2-dev (libxine2-bin)
- libxine2-x (libva-glx1, libva-x11-1, libvdpau1)
- libxine2 (libaacs0, libblueray1, libxine2-ffmpeg, libxine2-misc-plugins, libxine2-plugins)
- mesa-vdpau-drivers
This list will be expanded as soon as I have found out the missing libraries for the other distributions!