monsieurvideo / get-flash-videos

Download or play videos from various Flash-based video hosting sites, without having to use the Flash player.
Apache License 2.0
241 stars 68 forks source link

Wiki: Finish Debian/Ubuntu installation guideline #205

Open flyingzebras opened 8 years ago

flyingzebras commented 8 years ago

https://github.com/monsieurvideo/get-flash-videos/wiki/Installation#Debian__Ubuntu_packaged_version doesn't say much:

Run the following commands in a terminal, this installs it system-wide. Then, to download something:

Which commands?

flyingzebras commented 8 years ago

wget https://github.com/monsieurvideo/get-flash-videos/releases/download/1.25.92/get_flash_videos-1.25.92 ./get_flash_videos-1.25.92 --version Can't locate Crypt/Blowfish_PP.pm in @INC (you may need to install the Crypt::Blowfish_PP module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at ./get_flash_videos-1.25.92 line 2166. BEGIN failed--compilation aborted at ./get_flash_videos-1.25.92 line 2166.

njtaylor commented 8 years ago

The automatic translation by google of the Wiki lost some details.

Debian/Ubuntu need to generate a new .deb file for the latest version.

The following is for creating the .deb file...

$ cat debian/control Source: libapp-get-flash-videos-perl Section: utils Priority: optional Build-Depends: debhelper (>= 7) Build-Depends-Indep: libmodule-find-perl, libtie-ixhash-perl, liburi-perl, libwww-mechanize-perl, libwww-perl, libxml-simple-perl, perl Maintainer: Monsieur Video monsieurvideo@gmail.com Standards-Version: 3.8.3 Homepage: http://code.google.com/p/get-flash-videos/

Package: get-flash-videos Architecture: all Depends: libcrypt-blowfish-pp-perl, libdata-amf-perl, libencode-locale-perl, libhtml-parser-perl, libhtml-tree-perl, libmodule-find-perl, libtie-ixhash-perl, liburi-perl, libwww-mechanize-perl, libwww-perl, ${misc:Depends}, ${perl:Depends} Recommends: get-iplayer, ffmpeg | libav-tools, libcrypt-rijndael-perl, liblwp-protocol-socks-perl, libxml-simple-perl, rtmpdump|flvstreamer Suggests: mplayer Description: Video downloader for various Flash-based video hosting sites Download videos from various Flash-based video hosting sites, without having to use the Flash player. Handy for saving viqeos for watching offline, and means you don't have to keep upgrading Flash for sites that insist on a newer version of the player.

Your see the dependencies are listed and would have been loaded when using the package managers. If you don't use the package manager then you have to install the additional dependencies, aptitude, dpkg, apt are some of the package managers.

For OpenBSD, pkg_add is the package manager and pkg_info can display the dependencies required. $ pkg_info -Sq get_flash_videos get_flash_videos-1.25.92,@p5-Crypt-Blowfish_PP-1.12p0,@p5-Crypt-Rijndael-1.13,@p5-Data-AMF-0.09p0,@p5-Digest-HMAC-1.03p0,@p5-LWP-Protocol-https-6.06p0,@p5-LWP-Protocol-socks-1.7,@p5-Module-Find-0.13,@p5-Storable-AMF-1.23,@p5-Term-ProgressBar-2.17p0,@p5-URI-1.71,@p5-WWW-Mechanize-1.75,@p5-XML-Simple-2.22,@p5-libwww-6.15,@rtmpdump-2.4.20151223

The other thing to note is get_flash_videos-1.25.92 is not the current but a release and will only include changes update to the release date, newer set of download files need to be created for a later release.

I only maintain and build packages for OpenBSD, I can create a .deb file but don't maintain Debian/Ubuntu packages, it's purely for my own tests.

njtaylor commented 8 years ago

Your see a better copy of what used to be the wiki here

https://code.google.com/archive/p/get-flash-videos/wikis/Installation.wiki

karjonas commented 8 years ago

This is what I installed to get the development version running on debian jessie:

Add backports to get ffmpeg

sudo nano /etc/apt/sources.list
# Add the following line:
deb http://ftp.debian.org/debian jessie-backports main

Install prereqs

sudo apt-get update
sudo apt-get install make git gcc ffmpeg

Install perl cpan

cpan
# Install as local lib and press yes. When done restart terminal.
cpan Module::Find
cpan WWW::Mechanize
cpan Term::ReadKey
cpan Class::MethodMaker
cpan Term::ProgressBar
cpan XML::Simple

Download and run get-flash-videos

git clone https://github.com/monsieurvideo/get-flash-videos.git
cd get-flash-videos/
./get_flash_videos --version