NAME

Video::Flvstreamer - An OO interface to flvstreamer

VERSION

Version 0.04

SYNOPSIS

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 );

SUBROUTINES/METHODS

new

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

get_raw

$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

get

$flv->get( $url, $target, $args );

url is the source stream, e.g. 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

AUTHOR

Robin Clarke, <robin at robinclarke.net>

BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Video::Flvstreamer

You can also look for information at:

ACKNOWLEDGEMENTS

http://savannah.nongnu.org/projects/flvstreamer

LICENSE AND COPYRIGHT

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.