I have trouble with video output in Ruby + Extremer on Windows XP.
Before I was "ruby1.86 with Gstreamer 0.1 (no mingw32) in dshowvideosink ", which was installed separately. All were fine. Now I need ruby1.9 (or more) and any gstreamer. For example, I check a problem: This works well on Linux (Lubuntu), but does not work on Windows (XP)! Please suggest me: 1) How can I get "dshowvideosink" again in ruby 1.9 or 2.0? Answer 2 in these: You should use D3Vicq for the window.
I ruby1.9.3-mingw32 and Ruby2.0.0-mingw32 . In addition I installed gstreamer in both cases via the "gem.bat install gstreamer" command.
But there is no "dshowvideosink" in the new version ruby + gstreamer!
requires 'gtk2' to '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' Window Other Other 'End' Gst.init Pipeline = Gst :: Pipeline.New ('Pipeline 1') videosrc = Gst :: ElementFactory.make ('videotestsrc', 'videosrc1') videoconvert = Gst :: ElementFactory.make ('autovideoconvert', 'Videoconvert1') videoink = Gst :: ElementFactory.make ('autovideosink', 'videosink1'); Pipeline.ed (VideoRC, videoconverter, videoconc) VideoRC & gt; & Gt; Videoconvert & gt; & Gt; Videoconch window = gtk :: window.New ('video test') window.signal_connect ("deleted") {pipeline.stop; Gtk.main_quit} window.set_default_size (320, 240) window.show_all pipeline.bus.add_watch do | Just message. If (message and message structure and message.structure.name \ and (message.structure.name == 'ready-xwindow-id')) Gdk :: Threads.synchronize do Gdk :: Display.default.sync if no window Has been lost? 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", correct) imagesink. Set_xwindow_id (win_id) end end end true end pipeline.play Gtk.main
2) What component can I use instead of "dshowvideosink" on Windows?
3) How can I install gstreamer or its plugins separately from ruby-mingw32 (without gem)?
No comments:
Post a Comment