# Gstreamer

**URL:** <https://www.ruby-forum.com/t/gstreamer/131556>\
**Category:** Ruby-Gnome 2\
**Created:** [March 11, 2008, 10:39am UTC](https://www.ruby-forum.com/t/gstreamer/131556 "2008-03-11T10:39:10Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/22d042/32.png) [@leonb](https://www.ruby-forum.com/u/leonb)\
**Post date:** [March 11, 2008, 10:39am UTC](https://www.ruby-forum.com/t/gstreamer/131556/1 "2008-03-11T10:39:10Z")

</div>

Hi all,

I installed the “libgstreamer0.10-ruby1.8\_0.2.0-3\_amd64.deb” on ubuntu  
and then I tried to follow this tutorial:  
[http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gst-types](http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gst-types).

So I opended irb:  
require ‘gst’  
LoadError: no such file to load – gst

require ‘gst0.10’  
Gst::Type  
NameError: uninitialized constant Gst::Type

Is that tutorial outdated?

---

<div class="post-metadata">

**Author:** ![leonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/22d042/32.png) [@leonb](https://www.ruby-forum.com/u/leonb)\
**Post date:** [March 11, 2008, 11:45am UTC](https://www.ruby-forum.com/t/gstreamer/131556/2 "2008-03-11T11:45:01Z")

</div>

On Tue, Mar 11, 2008 at 10:39:10AM +0100, Leon B. wrote:

> require ‘gst0.10’  
> Gst::Type  
> NameError: uninitialized constant Gst::Type
> 
> Is that tutorial outdated?

The tutorial is indeed outdated. It was written for Gstreamer 0.8.  
Gst::Type  
doesn’t exist anymore in Gstreamer 0.10. The basic ideas are still the  
same  
though. There isn’t ruby gstreamer 0.10 specific documentation, the best  
way to  
learn is the general gstreamer documentation and the ruby samples on  
[https://trac.luon.net/ruby-gstreamer0.10](https://trac.luon.net/ruby-gstreamer0.10)

Also feel free to ask questions on the mailinglist[0]

## Sjoerd 0: [https://lists.luon.net/listinfo/ruby-gstreamer0.10](https://lists.luon.net/listinfo/ruby-gstreamer0.10)

Any circuit design must contain at least one part which is obsolete, two  
parts  
which are unobtainable, and three parts which are still under  
development.

---

<div class="post-metadata">

**Author:** ![leonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/22d042/32.png) [@leonb](https://www.ruby-forum.com/u/leonb)\
**Post date:** [March 18, 2008, 11:06pm UTC](https://www.ruby-forum.com/t/gstreamer/131556/3 "2008-03-18T23:06:11Z")

</div>

Thanks Sjoerd,

Do you know if Ruby-gnome2 and gstreamer is still under active  
development? And are they already making it suitable for ruby1.9? I get  
some errors when trying to build Ruby-gnome2 with ruby1.9.

Thanks!

---

<div class="post-metadata">

**Author:** ![leonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/22d042/32.png) [@leonb](https://www.ruby-forum.com/u/leonb)\
**Post date:** [March 19, 2008, 10:51am UTC](https://www.ruby-forum.com/t/gstreamer/131556/4 "2008-03-19T10:51:11Z")

</div>

On Tue, Mar 18, 2008 at 11:06:11PM +0100, Leon B. wrote:

> Thanks Sjoerd,
> 
> Do you know if Ruby-gnome2 and gstreamer is still under active  
> development? And are they already making it suitable for ruby1.9? I get  
> some errors when trying to build Ruby-gnome2 with ruby1.9.

I personally haven’t had a lot of time for ruby-gstreamer0.10 in the  
past year  
or so unfortunately. I’m planning to do some basic maintaince work on it  
this  
weekend. But fwiw i’ve been using it in some bigger applications and it  
works  
nicely.

I can’t really speak for ruby-gnome2. But i guess with a new release  
maintainer  
there might be some new things rsn 🙂

## Sjoerd

For your penance, say five Hail Marys and one loud BLAH!

---

<div class="post-metadata">

**Author:** ![leonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/22d042/32.png) [@leonb](https://www.ruby-forum.com/u/leonb)\
**Post date:** [March 19, 2008, 11:06am UTC](https://www.ruby-forum.com/t/gstreamer/131556/5 "2008-03-19T11:06:04Z")

</div>

Thanks Sjoerd,

Nice idea for the Google Summer of Code!

I just compiled glib and gstreamer from scratch (with the latest ruby  
1.9) and I get this error:

irb(main):006:0\> require ‘glib2’  
=\> true  
irb(main):007:0\> require ‘gst0.10’  
LoadError:  
/home/leon/software/lib/ruby/site\_ruby/1.9.0/x86\_64-linux/gst010.so:  
undefined symbol: rb\_argv -  
/home/leon/software/lib/ruby/site\_ruby/1.9.0/x86\_64-linux/gst010.so  
from  
/home/leon/software/lib/ruby/site\_ruby/1.9.0/gst0.10.rb:2:in `require' from /home/leon/software/lib/ruby/site_ruby/1.9.0/gst0.10.rb:2:in`\<top  
(required)\>’  
from (irb):7:in `require' from (irb):7 from /home/leon/software/bin/irb:12:in`’  
irb(main):008:0\>

Do you know what I could be? Is it something I could fix?

Leon

---

<div class="post-metadata">

**Author:** ![leonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/22d042/32.png) [@leonb](https://www.ruby-forum.com/u/leonb)\
**Post date:** [March 19, 2008, 11:21am UTC](https://www.ruby-forum.com/t/gstreamer/131556/6 "2008-03-19T11:21:59Z")

</div>

On Wed, Mar 19, 2008 at 11:06:04AM +0100, Leon B. wrote:

> LoadError:  
> from /home/leon/software/bin/irb:12:in `’  
> irb(main):008:0\>
> 
> Do you know what I could be? Is it something I could fix?

Maybe ruby1.9 doesn’t have rb\_argv anymore. Not sure. It’s one of the  
things i  
want to look at this weekend. But feel free to beat me to it 🙂

## Sjoerd

In 1750 Issac Newton became discouraged when he fell up a flight of  
stairs.

---

<div class="post-metadata">

**Author:** ![leonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/22d042/32.png) [@leonb](https://www.ruby-forum.com/u/leonb)\
**Post date:** [March 19, 2008, 11:58am UTC](https://www.ruby-forum.com/t/gstreamer/131556/7 "2008-03-19T11:58:41Z")

</div>

Sjoerd S. wrote:

> On Wed, Mar 19, 2008 at 11:06:04AM +0100, Leon B. wrote:
> 
> > LoadError:  
> > from /home/leon/software/bin/irb:12:in `’  
> > irb(main):008:0\>
> > 
> > Do you know what I could be? Is it something I could fix?
> 
> Maybe ruby1.9 doesn’t have rb\_argv anymore. Not sure. It’s one of the  
> things i  
> want to look at this weekend. But feel free to beat me to it 🙂
> 
> ## Sjoerd
> 
> In 1750 Issac Newton became discouraged when he fell up a flight of  
> stairs.

Edited src/rbgst.c and changed

gargc = RARRAY (rb\_argv)-\>len;  
argary = rb\_argv;

in

gargc = RARRAY (argv)-\>len;  
argary = argv;

Don’t now what I did, but it seems to work now 🙂  
I’ll have another look when you fixed it. Maybe then I get what rb\_args  
's all about.

---

<div class="post-metadata">

**Author:** ![leonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/22d042/32.png) [@leonb](https://www.ruby-forum.com/u/leonb)\
**Post date:** [March 25, 2008, 2:02pm UTC](https://www.ruby-forum.com/t/gstreamer/131556/8 "2008-03-25T14:02:01Z")

</div>

Hi Sjoerd,

I saw you’ve been busy with ruby-gstreamer. Did you fix the rb\_argv bug?  
What was the problem?

---

<div class="post-metadata">

**Author:** ![leonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/22d042/32.png) [@leonb](https://www.ruby-forum.com/u/leonb)\
**Post date:** [March 19, 2008, 10:52pm UTC](https://www.ruby-forum.com/t/gstreamer/131556/9 "2008-03-19T22:52:26Z")

</div>

When I tried to compile the edited .c file with ruby1.8.6 it succeeded.  
But Gst.init() gave a segmentation fault.

---

<div class="post-metadata">

**Author:** ![leonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/22d042/32.png) [@leonb](https://www.ruby-forum.com/u/leonb)\
**Post date:** [March 25, 2008, 2:28pm UTC](https://www.ruby-forum.com/t/gstreamer/131556/10 "2008-03-25T14:28:25Z")

</div>

Hi,

2008/3/25, Leon B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> I saw you’ve been busy with ruby-gstreamer. Did you fix the rb\_argv bug?  
> What was the problem?

It had been fixed in Ruby/GStreamer in the Ruby-GNOME2 repository.  
And it works with ruby 1.9.0.

## Thanks,

kou
