... hi, ...yeah, i was going to make a little ps to my post to try to find an alternate method to your wxMediaCtl dilemma.... usually on linux, you run things directly... and i see you found some good code.

But I don't know how to embed it in wxPerl.

...possibly use Kbuntu's media controller?

....i havn't used Wx...i stick with plain Gtk2..... but there should be a way in the Wx design gui to do what is called an Glib idle_add or a timer to launch the code. ....i would launch it in a separate thread, or fork-and-exec the code, get the pid to kill it ... the thread is simpler, but fork-and-exec cleaner memory wise

on linux, you probably can embed the gstreamer object in one of your current windows, or just pop open a new toplevel window and display the imagery there

but this is something you should ask on the Wx maillist..... i'm just saying that gstreamer is a big lib, and interfacing is complex

here is some code that i used to use for experimentation..... it may be outdated as gstreamer is evolving fast

gst-launch -v ximagesrc ! video/x-raw-rgb,framerate=5/1 ! ffmpegcolors +pace ! mux. avimux name=mux ! filesink location=ztest.avi mencoder -vf scale=640:480 ztest.avi -ovc lavc -o ztest.mpg rm ztest.avi
something like that can be run in a thread or piped-open....OR... you can try to use the Perl module interface to GStreamer.... but i would stick with the c program run thru ipc, so that memory cleanup is better

i mean, i have no idea of what your code actually does...these are just general design musings regarding linux guis


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku

In reply to Re^3: wxMediaCtrl running under Kubuntu 9.10 by zentara
in thread wxMediaCtrl running under Kubuntu 9.10 by Steve_BZ

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.