A bunch of GStreamer+Ruby(mingw32) defective works in Windows

GStreamer works fine on Linux (Lubuntu), but in Windows (XP) does not work:

require 'gtk2'
require 'gst'

def os_family
 case RUBY_PLATFORM
 when /ix/i, /ux/i, /gnu/i, /sysv/i, /solaris/i, /sunos/i, /bsd/i
'unix'
 when /win/i, /ming/i
'windows'
else
'other'
end
end

Gst.init

pipeline = Gst::Pipeline.new('pipeline1')
videosrc = Gst::ElementFactory.make('videotestsrc', 'videosrc1')
videoconvert = Gst::ElementFactory.make('autovideoconvert', 'videoconvert1')
videosink = Gst::ElementFactory.make('autovideosink', 'videosink1');

pipeline.add(videosrc, videoconvert, videosink)
videosrc >> videoconvert >> videosink

window = Gtk::Window.new('Video test')
window.signal_connect("destroy") { pipeline.stop; Gtk.main_quit }
window.set_default_size(320, 240)
window.show_all

pipeline.bus.add_watch do |bus, message|
 if (message and message.structure and message.structure.name \
 and (message.structure.name == 'prepare-xwindow-id'))
 Gdk::Threads.synchronize do
Gdk::Display.default.sync
 if not window.destroyed? and window.window
 win_id = nil
 if os_family=='windows'
 win_id = window.window.handle
else
 win_id = window.window.xid
end
 imagesink = message.src
 imagesink.set_property("force-aspect-ratio", true)
imagesink.set_xwindow_id(win_id)
end
end
end
true
end

pipeline.play
Gtk.main

Tried and ruby1.9.3-mingw32 and ruby2.0.0-mingw32.
In both cases, libraries were ostanavlivas via rubygems:
gem.bat install gtk2 gstreamer
(so what else in mingw32 is not set)

Advise:
1) how to revive the "dshowvideosink" in the new bunch, ruby(>=1.9)+gst(1.0)?
2) which component is "dshowvideosink" you can use in Windows?
3) how to [re]install gstreamer (or plugins) separately from the ruby option "mingw32"?
4) are there now ruby version >= 1.9 is not in the version of "mingw32"?
October 3rd 19 at 02:44
1 answer
October 3rd 19 at 02:46
very confusing. What doesn't it?) For Windows hosting is not initialized?
In short: not working Gstreamer 1.0 under Windows. - Lavina_Rolfson commented on October 3rd 19 at 02:49
First you need to earn the example.
Then you need to make codecs vp8 and vorbis. You can find out by running the alpha version of Pandora: sourceforge.net/projects/pandora-net/files/ - Lavina_Rolfson commented on October 3rd 19 at 02:52

Find more questions by tags LinuxRubyPythonVideoGStreamer