Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    GStreamer 0.11

    Download button

    No screenshots available
    Downloads: 1,108  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.4/5)
    16 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Torsten Schoenfeld and Brett Kosinski | More programs
    Perl Artistic License / FREE
    October 6th, 2011, 07:50 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    GStreamer description

    GStreamer is a Perl interface to the GStreamer library.

    GStreamer is a Perl interface to the GStreamer library.

    SYNOPSIS

    use GStreamer -init;

    my $loop = Glib::MainLoop -> new();

    # set up
    my $play = GStreamer::ElementFactory -> make("playbin", "play");
    $play -> set(uri => Glib::filename_to_uri $file, "localhost");
    $play -> get_bus() -> add_watch(&my_bus_callback, $loop);
    $play -> set_state("playing");

    # run
    $loop -> run();

    # clean up
    $play -> set_state("null");

    sub my_bus_callback {
    my ($bus, $message, $loop) = @_;

    if ($message -> type & "error") {
    warn $message -> error;
    $loop -> quit();
    }

    elsif ($message -> type & "eos") {
    $loop -> quit();
    }

    # remove message from the queue
    return TRUE;
    }

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    GStreamer library | Perl interface | Perl module | GStreamer | library | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM