1GStreamer1(3)         User Contributed Perl Documentation        GStreamer1(3)
2
3
4

NAME

6         GStreamer1 - Bindings for GStreamer 1.0, the open source multimedia framework
7

SYNOPSIS

9           use GStreamer1;
10
11           GStreamer1::init([ $0, @ARGV ]);
12           my $pipeline = GStreamer1::parse_launch( "playbin uri=$URI" );
13
14           $pipeline->set_state( "playing" );
15
16           my $bus = $pipeline->get_bus;
17           my $msg = $bus->timed_pop_filtered( GStreamer1::CLOCK_TIME_NONE,
18               [ 'error', 'eos' ]);
19
20           $pipeline->set_state( "null" );
21

DESCRIPTION

23       GStreamer1 implements a framework that allows for processing and
24       encoding of multimedia sources in a manner similar to a shell pipeline.
25
26       Because it's introspection-based, most of the classes follow directly
27       from the C API.  Therefore, most of the documentation is by example
28       rather than a full breakdown of the class structure.
29

PORTING FROM GStreamer

31       If you're porting from the original GStreamer module, here are some
32       things to keep in mind.
33
34   ElementFactory
35       The original GStreamer had a version of "ElementFactory->make()" which
36       could be called with a list of gst plugins and associated names.
37       GStreamer1 may add a similar method in the future.  For now, the
38       bindings directly follow from the C interface, so they take only one at
39       a time.
40
41       Example:
42
43           my $rpi        = GStreamer1::ElementFactory::make( rpicamsrc => 'and_who' );
44           my $h264parse  = GStreamer1::ElementFactory::make( h264parse => 'are_you' );
45           my $capsfilter = GStreamer1::ElementFactory::make(
46               capsfilter => 'the_proud_lord_said' );
47           my $avdec_h264 = GStreamer1::ElementFactory::make(
48               avdec_h264 => 'that_i_should_bow_so_low' );
49           my $jpegenc    = GStreamer1::ElementFactory::make( jpegenc => 'only_a_cat' );
50           my $fakesink   = GStreamer1::ElementFactory::make(
51               fakesink => 'of_a_different_coat' );
52
53   Adding/linking
54       The original GStreamer added methods for "Pipeline->add()" and
55       "Element->link()" that could take lists of objects.  GStreamer1 may add
56       similar methods in the future.  For now, the bindings directly follow
57       from the C interface, so they take only one object at a time.
58
59       Example:
60
61           my @link = ( $rpi, $h264parse, $capsfilter, $avdec_h264, $jpegenc, $fakesink );
62           $pipeline->add( $_ ) for @link;
63           foreach my $i (0 .. $#link) {
64               last if ! exists $link[$i+1];
65               my $this = $link[$i];
66               my $next = $link[$i+1];
67               $this->link( $next );
68           }
69

EXAMPLES

71       See the "examples/" directory in the distribution.
72

SEE ALSO

74       GStreamer - Perl bindings to the old 0.10 version of GStreamer
75
76       <http://gstreamer.freedesktop.org/>
77

SPECIAL THANKS

79       To Torsten Schönfeld for pointing me in the right direction on creating
80       this module.
81

LICENSE

83       Copyright (c) 2014  Timm Murray All rights reserved.
84
85       Redistribution and use in source and binary forms, with or without
86       modification, are permitted provided that the following conditions are
87       met:
88
89           * Redistributions of source code must retain the above copyright notice, this list of
90             conditions and the following disclaimer.
91           * Redistributions in binary form must reproduce the above copyright notice, this list of
92             conditions and the following disclaimer in the documentation and/or other materials
93             provided with the distribution.
94
95       THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
96       IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
97       TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
98       PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
99       HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
100       SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
101       LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
102       DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
103       THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
104       (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
105       OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
106
107
108
109perl v5.28.1                      2014-11-27                     GStreamer1(3)
Impressum