Flv2swf
From ArchWiki
flv2swf is perl module from Chris Dolan's FLV-Info package that encodes an Flash video file (.FLV) into a Shockwave Flash file (.SWF) or a plain 'Flash' file.
Installation
Before you begin you will need a number of perl packages in order to compile this. You search for them on search cpan ( Comprehensive Perl Archive Network ). There are 10 as of initial writing, so create a folder for the install and extraction within your home directory, e.g. /home/usename/SWFer.
FLV-Info:
- AMF::Perl
- DBI
- Exception::Class
- Class::Data::Inheritable
- Devel::StackTrace
- SWF::File
- Data::TemporaryBag
- List::MoreUtils
- Readonly
Because some of the packages are dependencies of others, you will need to pay attention to error messages if/when they arrive. They have been listed in the order they need to be installed in order to avoid errors. Also note that the following routine will need to repeated for all 9 packages.
Start by extracting the 'Data::TemporaryBag' package, since it is a dependency of 'SWF::File' (cpan package names may differ):
tar -xzvf Data-TemporaryBag-0.09.tar.gz cd Data-TemporaryBag-0.09/ perl Makefile.PL
This should output:
Checking if your kit is complete... Looks good Writing Makefile for Data::TemporaryBag
You can thoroughly test the packages first with 'make test', or install directly:
sudo make install
Afterward you may delete the extraction folder:
rm -r Data-TemporaryBag-0.09/
General information
- flv2flv -- Populates FLV metadata
- flv2mp3 -- Transforms an FLV file into an MP3 file
- flv2swf -- Transforms an FLV file into a SWF file
- flvinfo -- Prints information about FLV file(s)
flv2swf --help flv2swf [options] file.flv file.swf Options: -b --background=s Specify an RRGGBB color for the background Defaults to 000000, which is black -v --verbose Print diagnostic messages -h --help Verbose help message -V --version Print versiom