Video::Flvstreamer - The great new Video::Flvstreamer!
Version 0.01
An interface to flvstreamer: a commandline video stream ripping application
http://savannah.nongnu.org/projects/flvstreamer
use Video::Flvstreamer; my $flv = Video::Flvstreamer->new(); $flv->get( $url, $target );
Create a new object.
my $flv = Video::Flvstreamer->new();
or
my $flv = Video::Flvstreamer->new( { flvstreamer => $path_to_flvstreamer, timeout => $timout_seconds, try => $try_times, socks => $socks_proxy } );
flvstreamer is the path to your binary flvstreamer. Default: /usr/bin/flvstreamer
timeout is the network timeout (seconds) during streaming. Default: 10
try is the number of times flvstreamer should be called (with --resume) to try and complete a download, if errors occur. Default: 10
socks is the socks proxy server for flvstreamer to use if necessary
$flv->get_raw( $raw_string, $target, $args );
raw_string is a pre-formatted flvstreamer argument string. e.g. -r rtmp://example.org/stream
target is the target that the ripped stream should be saved to
args are the same as in the new() method, if you want to have individual settings for this get command
-resume and -o $target is still automatically added to the raw_string
$flv->get( $url, $target, $args );
url is the source stream, e.g. rtmp://example.org/stream
Robin Clarke, <robin at robinclarke.net>
<robin at robinclarke.net>
Please report any bugs or feature requests to bug-video-flvstreamer at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Video-Flvstreamer. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-video-flvstreamer at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Video::Flvstreamer
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Video-Flvstreamer
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Video-Flvstreamer
CPAN Ratings
http://cpanratings.perl.org/d/Video-Flvstreamer
Search CPAN
http://search.cpan.org/dist/Video-Flvstreamer/
Copyright 2010 Robin Clarke.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Video::Flvstreamer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Video::Flvstreamer
CPAN shell
perl -MCPAN -e shell install Video::Flvstreamer
For more information on module installation, please visit the detailed CPAN module installation guide.