NAME
FLV::FromSWF - Convert a SWF file into an FLV file
LICENSE
See FLV::Info
SYNOPSIS
use FLV::FromSwf;
my $converter = FLV::FromSWF->new();
$converter->parse_swf($swf_filename);
$converter->save($flv_filename);
See also swf2flv.
DESCRIPTION
Transcodes SWF files into FLV files. See the swf2flv command-line program for a nice interface and a detailed list of caveats and limitations.
METHODS
- $pkg->new()
-
Instantiate a converter and prepare an empty FLV.
- $self->parse_swf($swf_filename)
-
Open and traverse the specified SWF file, creating FLV data as we find video and audio nodes.
- $self->save($flv_filename)
-
Write out an FLV file. Note: this should be called only after
parse_swf()
. Throws an exception upon error.
CAVEATS
Content in the SWF other than audio or video data is currently ignored silently. I should add warning messages when significant non-audio/video content appears. For example, I've seen some screen video which mixes video, bitmaps and shapes to optimize the SWF file size. http://rt.cpan.org/Ticket/Display.html?id=22095
AUTHOR
See FLV::Info