Movie example does not work on Linux

Just starting out? Need help? Post your questions and find answers here.
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Movie example does not work on Linux

Post by uwekel »

Hi,
when i try to run the movie example program provided with PB, i run into the following error:

Image

Did anyone get it working on Linux or even Fedora 19?

Best regards
Uwe
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
User avatar
minimy
Enthusiast
Enthusiast
Posts: 553
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: Movie example does not work on Linux

Post by minimy »

Hi, do you have xine installed?
http://www.xine-project.org/home
If translation=Error: reply="Sorry, Im Spanish": Endif
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: Movie example does not work on Linux

Post by uwekel »

I think so:

[uwe@desktop ~]$ yum list *xine*
Geladene Plugins: langpacks, refresh-packagekit
Installierte Pakete
xine-lib.i686 1.1.21-5.fc19 @fedora
xine-lib-devel.i686 1.1.21-5.fc19 @fedora
xine-lib-extras.i686 1.1.21-5.fc19 @fedora
xine-lib-extras-freeworld.i686 1.1.21-6.fc19 @rpmfusion-free
xine-ui.i686 0.99.7-7.fc19 @fedora

Is there something missing?
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
User avatar
minimy
Enthusiast
Enthusiast
Posts: 553
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: Movie example does not work on Linux

Post by minimy »

uwekel wrote:I think so:

[uwe@desktop ~]$ yum list *xine*
Geladene Plugins: langpacks, refresh-packagekit
Installierte Pakete
xine-lib.i686 1.1.21-5.fc19 @fedora
xine-lib-devel.i686 1.1.21-5.fc19 @fedora
xine-lib-extras.i686 1.1.21-5.fc19 @fedora
xine-lib-extras-freeworld.i686 1.1.21-6.fc19 @rpmfusion-free
xine-ui.i686 0.99.7-7.fc19 @fedora

Is there something missing?
I think not. I use ubuntu, at first I had problems with SDL, GTK + and XINE but when I installed everything worked perfect.
If problems continue, you should ask Fred or another great 'Zen zei'.
There is also a Linux zone, they must know more.
If translation=Error: reply="Sorry, Im Spanish": Endif
User avatar
Shardik
Addict
Addict
Posts: 2058
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: Movie example does not work on Linux

Post by Shardik »

uwekel wrote:Did anyone get it working on Linux or even Fedora 19?
What type of movie did you try to play?
I tried on Fedora 19 x86 the example from #PB_Compiler_Home + "examples/sources/Movie.pb" like you but it didn't work:
- With different AVI files from Windows (that work fine running Movie.pb on Windows XP SP3) only an empty window with a black background is displayed. No error is displayed until the window is closed.
- With the MPEG file "Alien song" (downloaded from http://funnympegs.htmlbasix.com/) only a small white vertical bar is displayed in the upper left part of the desktop. Again no error is displayed and I had to close Movie.pb by pressing the "Programm beenden" button in the IDE.

I have found out that missing decoders seem to be the problem. When trying to play the Windows AVI files using the Fedora app "Videos" I obtained the following error message:
Videos wrote:gnome-settings-daemon benötigt zusätzliches Plugin zur Dekodierung dieser Datei

Das folgende Plugin werden benötigt:
- RLE-Codierung-Decoder

Wollen Sie jetzt danach suchen?
A search didn't find that plugin!

A similar error message is displayed for the MPEG file:
Videos wrote:Videos benötigt zusätzliche Plugins zur Dekodierung dieser Datei

Die folgenden Plugins werden benötigt:
- MPEG-1 Layer 2 (MP2)-Decoder
- MPEG-1 Video Decoder

Wollen Sie jetzt nach ihnen suchen?
If doing the search these plugins are again not found. So even Fedora's app "Videos" is not able to play movies without the necessary decoders...

These are the installed packages obtained with "yum list *xine*":

Code: Select all

libXinerama.i686        1.1.3-1.fc19     @koji-override-0/$releasever
libXinerama-devel.i686  1.1.3-1.fc19     @fedora
xine-lib.i686           1.1.21-5.fc19    @fedora
xine-lib-devel.i686     1.1.21-5.fc19    @fedora
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: Movie example does not work on Linux

Post by uwekel »

@Shardik:

If you want to play movies on Fedora, you first have to install the RPM Fusion repositiories. You can do this here: http://rpmfusion.org/
Afterwards you must install the gstreamer libraries, e.g.

Code: Select all

sudo yum install gstreamer*
Now Fedora will play everything :-)

I did that but nevertheless PB does not play the movies, although Fedora can. That's what i don't understand :-(
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
User avatar
minimy
Enthusiast
Enthusiast
Posts: 553
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: Movie example does not work on Linux

Post by minimy »

I use Ubuntu. I have reproduced AVI (divx, xvid, 3ivx). suppose
To install it I guess you must be 'root' (admin)
I really do not know why it does not work. I think you do it right.
Rarely does not install well. Have you tried asking in the Linux area?
If I find an answer to your problem, I'll tell you.
I have a problem with extended desktop and video mpg2 in windows (black output in second screen).
Try Avi (divx). Install the codecs first. :wink:
Good Luck friend!

Ops! 'Uwekel' gives you the solution. thanks 8)
If translation=Error: reply="Sorry, Im Spanish": Endif
User avatar
Shardik
Addict
Addict
Posts: 2058
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: Movie example does not work on Linux

Post by Shardik »

I have tested Movie.pb additionally with these other 4 distributions:
- Linux Mint 15 x86 with Cinnamon
- PCLinuxOS 2013.04 KDE MiniMe x86
- OpenSUSE 12.3 x86 with KDE
- Ubuntu 13.04 x86 with Unity

In none of these distributions did Movie.pb work without errors!

Linux Mint 15 x86 Cinnamon
Before any additional decoder installation:

Movie.pb:
- AVI: File couldn't be loaded.
- MPEG: File couldn't be loaded.

Doubleclick on file in file viewer:
- AVI:
Error wrote:run-length encoding decoder is required
- gstreamer1.0-plugins-ugly
- gstreamer1.0-libav
After installation of the above libs:

Movie.pb:
- AVI: File couldn't be loaded.
- MPEG: File couldn't be loaded.

Doubleclick on file in file viewer:
- AVI: is displayed.
- MPEG: is displayed.

PCLinuxOS 2013.04 KDE MiniMe x86
Before any additional decoder installation:

Movie.pb:
- AVI: File couldn't be loaded.
- MPEG: First frame is displayed, after that the error message "Program aborted. (by external library)" is displayed.

Click onto play button on right side of Dolphin fileviewer:
- AVI: nothing happens.
- MPEG: video is displayed.

OpenSUSE 13.04 x86 with KDE
Before any additional decoder installation:

Movie.pb:
- AVI: video window is opened but nothing is displayed (no error message).
- MPEG: very small vertical window is opened in top left part of desktop (similar to Fedora 19) but nothing is displayed (no error message).

Doubleclick on file in Dolphin file viewer:
- AVI
Error wrote:Kaffeine kann derzeit nicht alle Dateiformate wiedergeben. Möchten Sie zusätzliche Anforderungen installieren?
After that message I installed the suggested packman repository:

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
After installation of the above libs:

Movie.pb:
- AVI: The first frame is displayed but the error message "The debugged executable quit unexpectedly." is displayed and the program is terminated.
- MPEG: The video is displayed completely but the error message "Program aborted. (by external lib)" is displayed and after the video ends, the error message "The debugged executable quit unexpectedly." is displayed.

Doubleclick on file in Dolphin file viewer:
- AVI: is displayed.
- MPEG: is displayed.

Ubuntu 13.04 x86 with Unity
Before any additional decoder installation:

Movie.pb:
- AVI: File couldn't be loaded.
- MPEG: File couldn't be loaded.

Doubleclick on file in file viewer:
- AVI: is displayed.
- MPEG: is displayed.
User avatar
minimy
Enthusiast
Enthusiast
Posts: 553
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: Movie example does not work on Linux

Post by minimy »

When I tested, PB in Linux. It was with version 4.20 (I think).
At this point I do not have a computer with Linux installed.
When I install it again I tell you. Sorry friends... :cry:
You should ask Fred or another great 'Guru'. :idea:
If translation=Error: reply="Sorry, Im Spanish": Endif
Post Reply