.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "GStreamer1 3pm" .TH GStreamer1 3pm "2018-04-22" "perl v5.26.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" .Vb 1 \& GStreamer1 \- Bindings for GStreamer 1.0, the open source multimedia framework .Ve .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& use GStreamer1; \& \& GStreamer1::init([ $0, @ARGV ]); \& my $pipeline = GStreamer1::parse_launch( "playbin uri=$URI" ); \& \& $pipeline\->set_state( "playing" ); \& \& my $bus = $pipeline\->get_bus; \& my $msg = $bus\->timed_pop_filtered( GStreamer1::CLOCK_TIME_NONE, \& [ \*(Aqerror\*(Aq, \*(Aqeos\*(Aq ]); \& \& $pipeline\->set_state( "null" ); .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" GStreamer1 implements a framework that allows for processing and encoding of multimedia sources in a manner similar to a shell pipeline. .PP Because it's introspection-based, most of the classes follow directly from the C \s-1API.\s0 Therefore, most of the documentation is by example rather than a full breakdown of the class structure. .SH "PORTING FROM GStreamer" .IX Header "PORTING FROM GStreamer" If you're porting from the original GStreamer module, here are some things to keep in mind. .SS "ElementFactory" .IX Subsection "ElementFactory" The original GStreamer had a version of \f(CW\*(C`ElementFactory\->make()\*(C'\fR which could be called with a list of gst plugins and associated names. GStreamer1 may add a similar method in the future. For now, the bindings directly follow from the C interface, so they take only one at a time. .PP Example: .PP .Vb 9 \& my $rpi = GStreamer1::ElementFactory::make( rpicamsrc => \*(Aqand_who\*(Aq ); \& my $h264parse = GStreamer1::ElementFactory::make( h264parse => \*(Aqare_you\*(Aq ); \& my $capsfilter = GStreamer1::ElementFactory::make( \& capsfilter => \*(Aqthe_proud_lord_said\*(Aq ); \& my $avdec_h264 = GStreamer1::ElementFactory::make( \& avdec_h264 => \*(Aqthat_i_should_bow_so_low\*(Aq ); \& my $jpegenc = GStreamer1::ElementFactory::make( jpegenc => \*(Aqonly_a_cat\*(Aq ); \& my $fakesink = GStreamer1::ElementFactory::make( \& fakesink => \*(Aqof_a_different_coat\*(Aq ); .Ve .SS "Adding/linking" .IX Subsection "Adding/linking" The original GStreamer added methods for \f(CW\*(C`Pipeline\->add()\*(C'\fR and \&\f(CW\*(C`Element\->link()\*(C'\fR that could take lists of objects. GStreamer1 may add similar methods in the future. For now, the bindings directly follow from the C interface, so they take only one object at a time. .PP Example: .PP .Vb 8 \& my @link = ( $rpi, $h264parse, $capsfilter, $avdec_h264, $jpegenc, $fakesink ); \& $pipeline\->add( $_ ) for @link; \& foreach my $i (0 .. $#link) { \& last if ! exists $link[$i+1]; \& my $this = $link[$i]; \& my $next = $link[$i+1]; \& $this\->link( $next ); \& } .Ve .SH "EXAMPLES" .IX Header "EXAMPLES" See the \f(CW\*(C`examples/\*(C'\fR directory in the distribution. .SH "SEE ALSO" .IX Header "SEE ALSO" GStreamer \- Perl bindings to the old 0.10 version of GStreamer .PP .SH "SPECIAL THANKS" .IX Header "SPECIAL THANKS" To Torsten Schönfeld for pointing me in the right direction on creating this module. .SH "LICENSE" .IX Header "LICENSE" Copyright (c) 2014 Timm Murray All rights reserved. .PP Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: .PP .Vb 5 \& * Redistributions of source code must retain the above copyright notice, this list of \& conditions and the following disclaimer. \& * Redistributions in binary form must reproduce the above copyright notice, this list of \& conditions and the following disclaimer in the documentation and/or other materials \& provided with the distribution. .Ve .PP \&\s-1THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \*(L"AS IS\*(R" AND ANY EXPRESS\s0 \&\s-1OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\s0 \&\s-1MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\s0 \&\s-1COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\s0 \&\s-1EXEMPLARY, OR CONSEQUENTIAL DAMAGES\s0 (\s-1INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\s0 \&\s-1SUBSTITUTE GOODS OR SERVICES\s0; \s-1LOSS OF USE, DATA, OR PROFITS\s0; \s-1OR BUSINESS INTERRUPTION\s0) \&\s-1HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR\s0 \&\s-1TORT\s0 (\s-1INCLUDING NEGLIGENCE OR OTHERWISE\s0) \s-1ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\s0 \&\s-1EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\s0