PDA

View Full Version : how to download videos from yahoo!7 ?


meisa
03-26-2016, 11:08 PM
hi everyone .
I tried to download from this site : https://au.tv.yahoo.com/plus7 with some programs but i failed ! can anyone help me please . this is very important for me :(
there is one of videos from this site :
https://au.tv.yahoo.com/plus7/all-saints-season-1/-/watch/27065009/all-saints-season-1-episode-46/#page1

nyancat
03-30-2016, 01:17 AM
https://greasyfork.org/en/scripts/8838-plus7-vod-ffmpeg-download-details/code

Install the above script, you'll need Tampermonkey on Chrome or Greasemonkey on Firefox. When you watch a video on Plus7 you'll get a FFMPEG button at the top, click on it, followed by the resolution and it will give you the command to enter into Command Prompt to download the stream via FFMPEG.

meisa
04-01-2016, 06:22 PM
https://greasyfork.org/en/scripts/8838-plus7-vod-ffmpeg-download-details/code

Install the above script, you'll need Tampermonkey on Chrome or Greasemonkey on Firefox. When you watch a video on Plus7 you'll get a FFMPEG button at the top, click on it, followed by the resolution and it will give you the command to enter into Command Prompt to download the stream via FFMPEG.

thanks for your answer but yet i have problem . i used Greasemonkey and then installed the script . after thad i opend the +7 link and with " user scripts commands " in Greasemonkey i got this :
ffmpeg -i "https://secure.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=4653030887001&expiration=1459814460000&token=7ee19f9f573cd8ec6cdf3a675ff7c46df77c6848" -c copy All_Saints__Season_1__episode_46.ts

now the problem is that i dont know what should i do with this and how that will be used in command prompt !

nyancat
04-01-2016, 07:28 PM
I'm assuming you're using Windows. So, grab the latest version of FFMPEG from here:
https://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-latest-win32-static.7z

You may need 7-Zip to extract the file if you cannot open it.

Now, open the bin folder from the files you just extracted. You should see ffmpeg, ffplay and ffprobe inside. Click on the address bar at the top and copy the entire path.

https://i.imgur.com/kLzcGIx.png

Now open Command Prompt and then enter the following (don't forget the quotes):
cd /d "<right-click and paste here>"
Obviously, paste the path after the first quote and add a quote at the end.

So for me it looks something like this:
cd /d "C:\Users\nyancat\Desktop\ffmpeg-20160330-git-be746ae-win32-static\bin"

Now, press Enter and then copy-paste the FFMPEG command from your browser and press Enter.

meisa
04-02-2016, 05:39 PM
I'm assuming you're using Windows. So, grab the latest version of FFMPEG from here:
https://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-latest-win32-static.7z

You may need 7-Zip to extract the file if you cannot open it.

Now, open the bin folder from the files you just extracted. You should see ffmpeg, ffplay and ffprobe inside. Click on the address bar at the top and copy the entire path.

https://i.imgur.com/kLzcGIx.png

Now open Command Prompt and then enter the following (don't forget the quotes):
cd /d "<right-click and paste here>"
Obviously, paste the path after the first quote and add a quote at the end.

So for me it looks something like this:
cd /d "C:\Users\nyancat\Desktop\ffmpeg-20160330-git-be746ae-win32-static\bin"

Now, press Enter and then copy-paste the FFMPEG command from your browser and press Enter.

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

tergards
04-02-2016, 10:14 PM
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 (https://github.com/rg3/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:
youtube-dl 'https://au.tv.yahoo.com/plus7/all-saints-season-1/-/watch/27065009/all-saints-season-1-episode-46/#page1' -g
Response:
http://c.brightcove.com/services/mobile/streaming/index/master.m3u8?videoId=4652682300001

To get the resolution:
Download the link it gave you
#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.
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:
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.

surya987
04-02-2016, 10:38 PM
Simply put FFMPEG.exe and youtube-dl.exe in the same folder and run command

youtube-dl 'https://au.tv.yahoo.com/plus7/all-saints-season-1/-/watch/27065009/all-saints-season-1-episode-46/#page1'


it will automatically start downloading via ffmpeg no need to copy paste data...

Thanks

tergards
04-02-2016, 11:18 PM
Simply put FFMPEG.exe and youtube-dl.exe in the same folder and run command

youtube-dl 'https://au.tv.yahoo.com/plus7/all-saints-season-1/-/watch/27065009/all-saints-season-1-episode-46/#page1'


it will automatically start downloading via ffmpeg no need to copy paste data...

Thanks
Weird
I tried that multiple times and it always halted at 47kb and did nothing further. Much simpler if it works for them, too. :o

surya987
04-02-2016, 11:32 PM
EDIT:--

YUP right... BTW it download me till 5mb and got stuck so ideal way is to just fetch the m3u8 from youtube-dl and use it in livestreamer or ffmpeg...you got to be quick to use the m3u8 as it expire very soon...

Thanks

nyancat
04-03-2016, 03:06 AM
I apologise for my "broken" method, it's been a while since I've downloaded off Plus7, I just assumed the script still produced correct output. I tried it again for myself and it worked fine with no 403 errors.

ffmpeg -i "https://secure.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=4653030887001&expiration=1459933920000&token=399241f6724a42cff3e3ebd2c6329f747d7569b6" -c copy All_Saints__Season_1__episode_46.ts
ffmpeg version N-77715-gfc703f5 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 12.100 / 55. 12.100
libavcodec 57. 21.100 / 57. 21.100
libavformat 57. 21.101 / 57. 21.101
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 23.100 / 6. 23.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, hls,applehttp, from 'https://secure.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=4653030887001&expiration=1459933920000&token=399241f6724a42cff3e3ebd2c6329f747d7569b6':
Duration: 00:45:24.00, start: 9.945333, bitrate: 0 kb/s
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 190 kb/s
Output #0, mpegts, to 'All_Saints__Season_1__episode_46.ts':
Metadata:
encoder : Lavf57.21.101
Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc
Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, 190 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=68090 fps=369 q=-1.0 Lsize= 593767kB time=00:45:23.66 bitrate=1785.9kbits/s speed=14.8x
video:498566kB audio:43429kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 9.552109%

Anyway, I tested with youtube-dl as well and it works fine for me and downloads in whole. :confused: You guys are probably region restricted or something because Plus7 is intended for Australian viewers.

youtube-dl "https://au.tv.yahoo.com/plus7/all-saints-season-1/-/watch/27065009/all-saints-season-1-episode-46/#page1"
[generic] #page1: Requesting header
WARNING: Falling back on generic information extractor.
[generic] #page1: Downloading webpage
[generic] #page1: Extracting information
[generic] Brightcove video detected.
[download] Downloading playlist: Watch All Saints: Season 1, episode 46 - Yahoo7
[generic] playlist Watch All Saints: Season 1, episode 46 - Yahoo7: Collected 1 video ids (downloading 1 of them)
[download] Downloading video 1 of 1
[brightcove:legacy] ref:27065009: Downloading webpage
[brightcove:legacy] ref:27065009: Extracting information
[download] Destination: All Saints - Season 1, episode 46-4652682300001.mp4
ffmpeg version N-77715-gfc703f5 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 12.100 / 55. 12.100
libavcodec 57. 21.100 / 57. 21.100
libavformat 57. 21.101 / 57. 21.101
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 23.100 / 6. 23.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, hls,applehttp, from 'https://secure.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=4653030887001&expiration=1459933500000&token=77b461ba3bfe1dbaa582d1a2f445632b2ce9a461':
Duration: 00:45:24.00, start: 9.945333, bitrate: 0 kb/s
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 190 kb/s
[mp4 @ 06028b40] Codec for stream 0 does not use global headers but container format requires global headers
[mp4 @ 06028b40] Codec for stream 1 does not use global headers but container format requires global headers
Output #0, mp4, to 'file:All Saints - Season 1, episode 46-4652682300001.mp4.part':
Metadata:
encoder : Lavf57.21.101
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc
Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 190 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=68090 fps=250 q=-1.0 Lsize= 542625kB time=00:45:23.66 bitrate=1632.1kbits/s speed= 10x
video:498566kB audio:42556kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.277707%
[ffmpeg] Downloaded 555648166 bytes
[download] 100% of 529.91MiB
[download] Finished downloading playlist: Watch All Saints: Season 1, episode 46 - Yahoo7

meisa
04-03-2016, 08:01 AM
Yes , perhaps it's belong my region that isn't in Australia .
But I'm using hotspot shield to change my country and ip to Australian one . I thought this work with this command solution !

nyancat
04-04-2016, 04:40 AM
I don't know, maybe Hotspot Shield is being detected :confused: You may want to try spoofing your IP using youtube-dl (do not use Hotspot Shield or any VPN).

youtube-dl --add-header X-Forwarded-For:144.140.108.23 "https://au.tv.yahoo.com/plus7/all-saints-season-1/-/watch/27065009/all-saints-season-1-episode-46/#page1"

If you are wondering whose IP it is, don't worry, it's the IP to the website of telstra.com (Australian ISP).

meisa
04-04-2016, 10:21 AM
I don't know, maybe Hotspot Shield is being detected :confused: You may want to try spoofing your IP using youtube-dl (do not use Hotspot Shield or any VPN).

youtube-dl --add-header X-Forwarded-For:144.140.108.23 "https://au.tv.yahoo.com/plus7/all-saints-season-1/-/watch/27065009/all-saints-season-1-episode-46/#page1"

If you are wondering whose IP it is, don't worry, it's the IP to the website of telstra.com (Australian ISP).

you mean I must add this part after youtube-dl and before my link :
--add-header X-Forwarded-For:144.140.108.23
in my command ?
Is It exactly what I copied above ? because I tried that and it still doesn't work .

nyancat
04-04-2016, 05:24 PM
you mean I must add this part after youtube-dl and before my link :
--add-header X-Forwarded-For:144.140.108.23
in my command ?
Is It exactly what I copied above ? because I tried that and it still doesn't work .

Well I don't know, find another VPN. :confused: