GStreamer::GConf - Perl interface to the GStreamer GConf library
use GStreamer -init; use GStreamer::GConf; # build pipeline my $pipeline = GStreamer::Pipeline -> new("pipeline"); my $sink = GStreamer::GConf -> get_default_audio_sink(); my ($source, $spider, $conv, $scale) = GStreamer::ElementFactory -> make(filesrc => "source", spider => "spider", audioconvert => "conv", audioscale => "scale"); $source -> set(location => $ARGV[0]); $pipeline -> add($source, $spider, $conv, $scale, $sink); $source -> link($spider, $conv, $scale, $sink) or die "Could not link"; # play $pipeline -> set_state("playing") or die "Could not start playing"; while ($pipeline -> iterate()) { }; # clean up $pipeline -> set_state("null");
GStreamer::GConf provides access to the GConf interaction facilities of the GStreamer library.
Copyright (C) 2005 by the gtk2-perl team
To install GStreamer::GConf, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GStreamer::GConf
CPAN shell
perl -MCPAN -e shell install GStreamer::GConf
For more information on module installation, please visit the detailed CPAN module installation guide.