[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Video playback library?

John Reiter

8/19/2007 8:27:00 PM

I've recently begun learning ruby (coming from a mainly java world), and
so far I really like it. Now I'm trying to write as much as I can using
ruby so I can get a better feel for the language.

So, I have an upcoming project that will require writing a program that
can do some simple video playback. I would need it to be cross platform
(at least Windows and OS X, which rules out the gstreamer and xine
bindings for ruby that I've seen), and it would need to be able to play
some common video formats like mpeg-1 and avi.

I would love to write this in ruby, but I have been unable to find
anything that looks like it fits my needs. Does anything like this
exist, or am I stuck using JMF?

Thanks!

John
--
Posted via http://www.ruby-....

7 Answers

Phlip

8/19/2007 8:55:00 PM

0

John Reiter wrote:

> So, I have an upcoming project that will require writing a program that
> can do some simple video playback. I would need it to be cross platform
> (at least Windows and OS X, which rules out the gstreamer and xine
> bindings for ruby that I've seen), and it would need to be able to play
> some common video formats like mpeg-1 and avi.

Just a guess; the format of the future is a video rendered as a Flash
animation. Then you put the backend in whatever format you want, and render
on-demand into Flash. That even supports Linux!

> I would love to write this in ruby

Ruby can only be the glue code there. Video playback is >cough< CPU
intensive...

--
Phlip
http://www.oreilly.com/catalog/9780...
"Test Driven Ajax (on Rails)"
assert_xpath, assert_javascript, & assert_ajax


John Joyce

8/19/2007 8:55:00 PM

0

VLC is a nice cross-platform app, open source, made in C.
It could probably use some Ruby API though...

John Joyce

8/19/2007 9:18:00 PM

0


On Aug 19, 2007, at 3:55 PM, Phlip wrote:

> John Reiter wrote:
>
>> So, I have an upcoming project that will require writing a program
>> that
>> can do some simple video playback. I would need it to be cross
>> platform
>> (at least Windows and OS X, which rules out the gstreamer and xine
>> bindings for ruby that I've seen), and it would need to be able to
>> play
>> some common video formats like mpeg-1 and avi.
>
> Just a guess; the format of the future is a video rendered as a Flash
> animation. Then you put the backend in whatever format you want,
> and render
> on-demand into Flash. That even supports Linux!
>
>> I would love to write this in ruby
>
> Ruby can only be the glue code there. Video playback is >cough< CPU
> intensive...
>
>
Yep. You could have bindings/API of some sort like the way RMAgick
works for ImageMagick, but the core code is going to be C/C++ every
time for video. Especially cross-platform.

jh+ruby-lang

8/19/2007 9:24:00 PM

0

On Mon, 20 Aug 2007 05:54:47 +0900
John Joyce <dangerwillrobinsondanger@gmail.com> wrote:

> VLC is a nice cross-platform app, open source, made in C.
> It could probably use some Ruby API though...
>

And can be remotely controlled programmaticly via its telnet
interface.

-jh

John Reiter

8/20/2007 2:04:00 AM

0

Phlip wrote:
> Just a guess; the format of the future is a video rendered as a Flash
> animation. Then you put the backend in whatever format you want, and
> render
> on-demand into Flash. That even supports Linux!

Unfortunately, Flash isn't going to be an option for this particular
project.

>> I would love to write this in ruby
>
> Ruby can only be the glue code there. Video playback is >cough< CPU
> intensive...

Oh, I realize. I was hoping for a cross-platform version of something
like the gstreamer or xine bindings I had seen, just a ruby API on top
of C/C++ code.
--
Posted via http://www.ruby-....

John Reiter

8/20/2007 2:06:00 AM

0

Jonathan Hudson wrote:
> And can be remotely controlled programmaticly via its telnet
> interface.

That might be something worth looking into. Thanks!

John

--
Posted via http://www.ruby-....

John Joyce

8/20/2007 5:31:00 AM

0


On Aug 19, 2007, at 9:06 PM, John Reiter wrote:

> Jonathan Hudson wrote:
>> And can be remotely controlled programmaticly via its telnet
>> interface.
>
> That might be something worth looking into. Thanks!
>
> John
>
> --
> Posted via http://www.ruby-....
>
VLC (videolan.org) is very cool, quite good.
Has python bindings, so Ruby bindings should be doable!