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
240 stars 68 forks source link

Replace Kanal5play with Dplay. #171

Closed karjonas closed 9 years ago

karjonas commented 9 years ago

Replaces Kanal5play with new site Dplay.se. Also adds a HLSDownloader package since using cookies with ffmpeg was too troublesome. Sites using ffmpeg now use the HLSDownloader.

njtaylor commented 9 years ago

Was thinking of doing HLS Download myself, BBC started using it for some downloads. BBC are also doing MPEG-DASH. get_iplayer already supports HLS for BBC downloads.

Have a few, little things, recovery is start from beginning by unlinking file, some downloads could be large, maybe an improvement for later to allow restart from segment reached.

Might need to set binary mode on the file, could be issues on Windows adding characters. Needs some checking, if I can find a running Windows machine. Move open outside loop, and set binmode.

Quality - can also select another form not just high/medium/low. This could be site specific. Assumes only three BANDWIDTH's maximum, for > 3 something like this replace bitrate_index my $cnt = scalar keys %urls; my $min = {high=>$cnt, medium => int(($cnt+1)/2), low =>0}->{$perf->{$quality}}; $min //= $cnt;

urls could be https:// for .ts files being downloaded. Could result in http://.....https://....., match either http:// or https://

Thanks for the update.