FLV::FromSWF - Convert a SWF file into an FLV file
See FLV::Info
use FLV::FromSwf; my $converter = FLV::FromSWF->new(); $converter->parse_swf($swf_filename); $converter->save($flv_filename);
See also swf2flv.
Transcodes SWF files into FLV files. See the swf2flv command-line program for a nice interface and a detailed list of caveats and limitations.
Instantiate a converter and prepare an empty FLV.
Open and traverse the specified SWF file, creating FLV data as we find video and audio nodes.
Write out an FLV file. Note: this should be called only after parse_swf(). Throws an exception upon error.
parse_swf()
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
To install FLV::Info, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FLV::Info
CPAN shell
perl -MCPAN -e shell install FLV::Info
For more information on module installation, please visit the detailed CPAN module installation guide.