View Single Post
  #6  
Old 04-02-2016, 10:14 PM
tergards tergards is offline
Junior Member
 
Join Date: Mar 2015
Posts: 4
tergards is on a distinguished road
Default

Re: how to download videos from yahoo!7 ?


Quote:
Originally Posted by meisa View Post
Unfortunately I did all of this but I got error in command : [hls,applehttp @ 0000000000626fc0] Failed to open segment of playlist 0
[http @ 00000000004f80e0] HTTP error 403 Forbidden
I managed to download (or at least start download, I didn't try get the whole thing) it using these tools:
youtube-dl
ffmpeg
Now youtube-dl may be unnecessary for you since you seem to have the download URL, though it is missing aspects mine have. Normally I can just use youtube-dl to download these types of videos but on this site it did not work as usual.
I should note that this method needs no Flash Player, nor actually browser (if you've got the link in hand)

My steps

To get the master .m3u8:
youtube-dl:
Code:
youtube-dl 'https://au.tv.yahoo.com/plus7/all-saints-season-1/-/watch/27065009/all-saints-season-1-episode-46/#page1' -g
Response:
Code:
http://c.brightcove.com/services/mobile/streaming/index/master.m3u8?videoId=4652682300001
To get the resolution:
Download the link it gave you
Code:
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=340000,RESOLUTION=480x270
https://secure.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=4653019613001&expiration=1459914060000&token=650a2b8e9a46a61b9385f1ea68838d1aa109d35e&videoId=4652682300001
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=696000,RESOLUTION=480x270
https://secure.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=4653019673001&expiration=1459914060000&token=2cd5fa70bf6edd99cb94091ef735e1567cc06ae7&videoId=4652682300001
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=996000,RESOLUTION=630x354
https://secure.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=4653025998001&expiration=1459914060000&token=0f47e8952120a0d3807e65c9bf1e1c6ef32ae10d&videoId=4652682300001
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1328000,RESOLUTION=960x540
https://secure.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=4653026943001&expiration=1459914060000&token=3cf22eef848bd116811df2cbebec01cdd624908d&videoId=4652682300001
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1628000,RESOLUTION=1280x720
https://secure.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=4653030887001&expiration=1459914060000&token=705efeaaedac7ee0dace23a5592dc0963983f898&videoId=4652682300001
Each of these URLs is a link to the same video just in different resolution, the bottom being the biggest resolution (and thus filesize) and top being the smallest. The first three links are pretty tiny in resolution so you will probably want the 540p link or the 720p for better view-ability.

To download do your FFMPEG command.
Code:
ffmpeg -i "https://secure.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=4653026943001&expiration=1459914060000&token=3cf22eef848bd116811df2cbebec01cdd624908d&videoId=4652682300001" -c copy "All_Saints__Season_1__episode_46.ts"
I suggest you replicate these steps and not simply copy my final command since the token(?) may have expired.

Differences between your link you posted, and mine:
Code:
Yours
https://secure.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=4653030887001&expiration=14 59814460000&token=7ee19f9f573cd8ec6cdf3a675ff7c46d f77c6848
Mine
https://secure.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=4653026943001&expiration=1459914060000&token=3cf22eef848bd116811df2cbebec01cdd624908d&videoId=4652682300001
(Your link has spaces and no &VideoID)


Now if that doesn't work, I'm not sure why, but these are possible reasons:
1. The m3u8 it gave you has expired and you must get the link again
2. It is geoblocked and you are not in Australia
3. You've got spaces in the URL somewhere they are not meant to be.

Last edited by tergards : 04-02-2016 at 10:36 PM. Reason: More info
Reply With Quote