Talk:Gnash

From OLPC
Jump to: navigation, search

Sound in Gnash

It seems possible to get this working, we just need a recipe. -- Skierpage 00:35, 12 October 2008 (UTC)

Seth commented in e-mail:

The way that I undertand it, OLPC's gstreamer is fairly custom, so the standard build of -ugly would have to be rebuilt for the XO.
I suggest the Livna repo, mplayer and its assorted faad &etc plugins instead. Mplayer, mpd and wymypy as a sterieo-on-xo controlled over webbrowser works really well.
Ian Daniher and I have a script that installs all of that (livna, mplayer etc), configure mpd, build a library, launch wymypy.py and even print your ip addr so you know what to connect to.
I got sound to play in 8.1.2 after installing the Fluendo mp3 decoder -- skierpage 12:02, 27 February 2009 (UTC)
XO-1.5 with 12.1.0 here. The fluendo decoder works for mplayer. When a movie is opened, Gnash starts but then complains "Gnash Error MediaHandlerGst::CreateAudioDecoder:Couldn't find a plugin for audio type audio/mpeg! -- MediaHandler::createFlashAudioDecoder no available flash decoders for codec 10 (Advanced Audio Coding)". If that window is closed another window with this message is revealed. "Gnash Error Couldn't find a plugin for video type video/x-h264! Please make sure you have gstreamer-ffmpeg installed." So what is the primary problem; the mpeg decoder, a plugin or something else? If the HTML5 option in http://www.youtube.com/html5 is invoked, the movie in question works with no error. Interestingly, the HTML5 page indicates that h.264 is supported. Regards, ... Peter E.

Adding gstreamer-plugins-ugly

Another recommendation for 10.1.2 is to install the gstreamer-plugins-ugly package, which includes MP3 support and other restricted codecs. You can use http://rpm.pbone.net/ to locate the RPM package for the i586 architecture, copy its download URL, then in Terminal use rpm -Uvh URL_of_gstreamer-plugins-ugly_package.rpm, but this will fail with many unmet dependencies. Instead use yum. You have to tell it about the repository for this software. In a Terminal,

sudo rpm -Uvh http://download1.rpmfusion.org/free/fedora/releases/11/Everything/i386/os/rpmfusion-free-release-11-1.noarch.rpm
sudo yum install gstreamer-plugins-ugly

yum requires a lot of disk space and memory, so Stop other activities and see the yum page. It will probably still crash an XO-1 (<trac>10285</trac>) unless you swap to an SD card or USB flash drive.

wiki edit

I removed this section from the wiki: "For example, a developer might choose an open codec such as Vorbis or Theora. Streaming these format in full screen would be as simple as a five line Gnash script." because Adobe Flash does not support the Ogg Vorbis or Ogg Theora codecs in the first place so should you succeed in creating an SWF with Ogg Vorbis audio, it wouldn't be a proper .SWF -- you'd just be creating a Flash SWF incompatible file. -Object404 14:09, 29 September 2008 (UTC)

Which section? The title "wiki edit" is unhelpful. Regards, Peasthope 15:28, 19 September 2012 (UTC)

Uninstalling Gnash

Does anyone know how uninstall Gnash? I was able to install Adobe Flash, but the gnash player loads on the same page of the browser as well.

this is a sign of not installing the Adobe version properly. You don't need to do anything to Gnash itself. --Sj talk

I am in the same boat - I got Adobe to install easily enought, but the Xo still sees Gnash first. How to resolve? PF

I am having the same problem. I type all the commands, but it says access denied or file not found.
see above, and see the FAQ about this (also answered on the Adobe Flash page). --Sj talk
  • After uninstalling Gnash and then installing Flash, I later wanted to switch back to Gnash for flash dev testing. After uninstalling Flash and reinstalling Gnash via yum, the Gnash plugin wouldn't run in either Browse Activity or Opera. Using build Update.1 711. -Object404 14:37, 29 September 2008 (UTC)

More Gnash/Adobe Flash cohabitation problems.

Mikus Grinbergs on the devel list pointed out: After I installed the Adobe flash player, there was an appreciable lag in the system's response to my CLI commands. Looked with 'top', and found 'gtk-gnash' was using up to 70% of my CPU cycles. Killed 'gtk-gnash' and my system is back to normal.

This was on a G1G1 laptop, and is not known if it is reproducible. CharlesMerriam 01:40, 25 March 2008 (EDT)