in reply to Re^2: Using Wx::MediaCtrl to display a live videofeed (eg a webcam)
in thread Using Wx::MediaCtrl to display a live videofeed (eg a webcam)

$ perl -MURI::file -le"die URI::file->new( shift )->canonical " /dev/v +ideo0 file:///dev/video0
  • Comment on Re^3: Using Wx::MediaCtrl to display a live videofeed (eg a webcam)
  • Download Code

Replies are listed 'Best First'.
Re^4: Using Wx::MediaCtrl to display a live videofeed (eg a webcam)
by Steve_BZ (Chaplain) on Aug 03, 2010 at 01:15 UTC

    Hi Monks,

    Well, I've now rebuilt the hardware and everything is cookin' nicely.

    I tried $i_frame->{Ctl_Videos_Media}->LoadURI ('file:///dev/video0'); and I no longer get any errors in LogWindow but no picture in the media control.

    Update: Oookaaay, now my hardware is compliant with that age-old standard of plugging the webcam in, we have some progress! The progress bar on the application flickers (although not the image) and print $i_frame->{Ctl_Videos_Media}->LoadURI ('file:///dev/video0'); returns "1" but gives error Gtk-CRITICAL **: gtk_range_set_range: assertion `min < max' failed, so I guess it is accessing the URI, but maybe it is immediately hitting EOF, or something.

    Update 2: According to Similar wxPython problem it may be missing GStreamer packages. This sounds like a possibility, so I'm going to try to track this down. If you know what the correct list is, please share :)

    Regards

    Steve.

      Hi Guys,

      Well I've tried *all* the GStreamer packages where they are mutually compatible, and in different combinations where they are not.

      Videos play nicely, URI's don't.

      Regards

      Steve