View Single Post
  #7  
Old 05-19-2014, 10:25 AM
cuaron cuaron is offline
Junior Member
 
Join Date: May 2014
Posts: 10
cuaron is on a distinguished road
Default

Re: How to download videos from CTV.CA


Quote:
Originally Posted by minato4u View Post
You will need
1. PHP
2. AdobeHDS

1.php
You can install php by installing wamp server from http://www.wampserver.com/en/

2.AdobeHDS
save this file https://raw.githubusercontent.com/jx...r/AdobeHDS.php

Read some info of it here https://github.com/K-S-V/Scripts/wiki

After installing php,
save adobeHDS.php to wamp>>www folder

wamp folder >> bin folder >> php >> "your php version folder" and copy path of php.exe file for example like this C:\wamp\bin\php\php5.3.13\ and add semicolon to it C:\wamp\bin\php\php5.3.13\; and copy it

Go to control panel>>system>>advanced system setting>>click environment variables>>click new>>In variable name field type 'path' without quotes and in variable value type the path you just copied>>click ok >> ok

open run (windows key+R) type cmd and type 'php -v' without quotes,press enter

If you get version info you are going great

open chrome press F12 >> network tab
open page you want to download video from
as video starts press filter button the one look like flashlight torch
type manifest.f4m
you will get manifest.f4m listed ,right click on that and click copy link address
download that manifest.f4m if you want to see avaliable video qualities,open it in notepad and you can see bitrate like
<manifest xmlns="http://ns.adobe.com/f4m/2.0">

<media href="http://ams-vp9.9c9media.com/hds-vod/ae/2014-05-14/5A7F1A52F6BF19BC/CTV-324308-Arrow-S2E23-001-Adaptive_01-pd.mp4.f4m" bitrate="299"/>

<media href="http://ams-vp9.9c9media.com/hds-vod/ae/2014-05-14/5A7F1A52F6BF19BC/CTV-324308-Arrow-S2E23-001-Adaptive_02-pd.mp4.f4m" bitrate="480"/>

<media href="http://ams-vp9.9c9media.com/hds-vod/ae/2014-05-14/5A7F1A52F6BF19BC/CTV-324308-Arrow-S2E23-001-Adaptive_03-pd.mp4.f4m" bitrate="640"/>

<media href="http://ams-vp9.9c9media.com/hds-vod/ae/2014-05-14/5A7F1A52F6BF19BC/CTV-324308-Arrow-S2E23-001-Adaptive_04-pd.mp4.f4m" bitrate="896"/>

<media href="http://ams-vp9.9c9media.com/hds-vod/ae/2014-05-14/5A7F1A52F6BF19BC/CTV-324308-Arrow-S2E23-001-Adaptive_05-pd.mp4.f4m" bitrate="1280"/>

<media href="http://ams-vp9.9c9media.com/hds-vod/ae/2014-05-14/5A7F1A52F6BF19BC/CTV-324308-Arrow-S2E23-001-Adaptive_06-pd.mp4.f4m" bitrate="1536"/>

<media href="http://ams-vp9.9c9media.com/hds-vod/ae/2014-05-14/5A7F1A52F6BF19BC/CTV-324308-Arrow-S2E23-001-Adaptive_07-pd.mp4.f4m" bitrate="1856"/>

<media href="http://ams-vp9.9c9media.com/hds-vod/ae/2014-05-14/5A7F1A52F6BF19BC/CTV-324308-Arrow-S2E23-001-Adaptive_08-pd.mp4.f4m" bitrate="2048"/>
</manifest>
choose your bitrate

in cmd type
php AdobeHDS.php --manifest <<paste that address here>> --delete

you can add --quality <<your bitrate>> to the command before --delete to choose quality
--quality [param] selected quality level (low|medium|high) or exact bitrate

the video will be download in folder that contain adobeHDS.php
.

other options are
--help displays this help
--debug show debug output
--delete delete fragments after processing
--fproxy force proxy for downloading of fragments
--play dump stream to stdout for piping to media player
--rename rename fragments sequentially before processing
--update update the script to current git version
--auth [param] authentication string for fragment requests
--duration [param] stop recording after specified number of seconds
--filesize [param] split output file in chunks of specified size (MB)
--fragments [param] base filename for fragments
--fixwindow [param] timestamp gap between frames to consider as timeshift
--manifest [param] manifest file for downloading of fragments
--maxspeed [param] maximum bandwidth consumption (KB) for fragment downloading
--outdir [param] destination folder for output file
--outfile [param] filename to use for output file
--parallel [param] number of fragments to download simultaneously
--proxy [param] proxy for downloading of manifest
--quality [param] selected quality level (low|medium|high) or exact bitrate
--referrer [param] Referer to use for emulation of browser requests
--start [param] start from specified fragment
--useragent [param] User-Agent to use for emulation of browser requests

if this downloads only part of video,online seek video forward that whit dot and you will get another manifest.f4m file and do the same to download that
Thank you so much, you're amazing man

Quote:
Originally Posted by minato4u View Post
also getFlv software may help
use different kernel like ipad,android in getFLV
I used it on windows 8 but it did not work.

Last edited by cuaron : 05-19-2014 at 11:07 AM.
Reply With Quote