PDA

View Full Version : Downloading from Yahoo TV


mrswhite
12-12-2014, 05:14 PM
Hi again!

I'm trying to download this video: https://tv.yahoo.com/blogs/tv-news/martin-freeman-saturday-night-live-debut-165750720.html (it's the first one after the annoying ad)

With Yahoo I know a method (namely this: http://blog.hd-trailers.net/tutorials/how-to-download-hd-trailers-from-yahoo/) but that works with "movies" or "trailers" Yahoo URLs.

In this case it's a "TV" url. However I imagined it was similar, so what I tried to do is to find the m3u8 playlist file for this video. Generally Yahoo sends a json type of file with a bunch of m3u8 urls for their different versions of the video (different qualities).

I was able to find one of this json files but strangely enough it doesn't contain the video I'm looking for. This is the json file i was able to get: https://video.media.yql.yahoo.com/v1/video/sapi/streams/063fb76c-6c70-38c5-9bbc-04b7c384de2b?format=m3u8%2Cmp4%2Cflv%2Cf4m&protocol=http%2Crtmp&rt=flash&plrs=1ISQfuVHWYvHXK4h9P4U67&acctid=24&plidl=&pspid=&offnetwork=false&site=tv&lang=en-US&region=US&override=none&plist=&hlspre=true&ssl=false&synd=&callback=YUI.Env.JSONP.yui_3_18_1_1_1418425662813_ 2656


Wireshark didn't show me any results searching with the "HTTP" protocoll filter - which was strange I suppose?

The same goes with URLSnooper. Nothing useful.

So I just use my chrome's "network" examination and I was able to see a bunch of "mp2t" files being downloaded in this form:
https://yahoo.hs.llnwd.net/primetimetv/lotus/828f0ebf-cd2b-429c-a0a6-4e56bef26f16_GG60mBpzBMMnSBA0rmqAEFwir8CiC82IrMTEX S6Ff7C65_I78HR78FAqfpGjnb_eNswUyH2niVI-_3_0_xx.ts?a=primetimetv&m=video%2fmp2t&mr=0&ns=num+e+h&yh=1&e=1418687038&h=e957831bc48a1a3d6bb191fa3c0227ab&num=0


That is actually the first of the 17 segments of the complete video! However it's not the best of qualities.

I analysed different ".ts" urls also from yahoo and i thought that changing the "_3_0" (which for other videos, the highest quality is _10_0) would work, also changing the "h" attribute. But nope... it doesn't.

At the moment I was able to download this video in low quality, do you know how to get a better quality one?

Sorry if this is a bit long, just wanted to tell you all the process I've been through.

Thanks in advance!
mrswhite

mrswhite
12-12-2014, 05:59 PM
I was able to download it at last!

I searched for m3u8 on the source code as was advised on another post but I noticed that there were RTMPS urls JUST for this video, right in the source code.

Wireshark never works for the rtmp protocol - for me at least. I always get "unknown" so I was just going to give it ago with a very basic rtmpdump command line using the information that was provided right there in the source code of the page and to my surprise it worked!

This is the command line I used (both parameters were obtained just by looking at the source code - it's a json - and i got the ones that belonged to a HD download):

rtmpdump -r "rtmps://ci-3c363c9a7c-bec1b2f7.rtmp.atlas.cdn.yimg.com" -y "/primetimetv/lotus/828f0ebf-cd2b-429c-a0a6-4e56bef26f16_GG60mBpzBMMnSBA0rmqAEFwir8CiC82IrMTEX S6Ff7C65_I78HR78FAqfpGjnb_eNswUyH2niVI-_11_0?a=primetimetv&b=41920&m=video%2fmp4&x=1419034687&" -o "output.mp4"

I'm still surprised :)

But anyway, if you know how to get the m3u8 for that video that would be lovely. It always helps to have more than one method just in case the other doesn't work.

drbmn
12-12-2014, 07:56 PM
ffmpeg -i "https://ci-1d2bce27ee-7a3d7b79.http.atlas.cdn.yimg.com/primetimetv/lotus/c0929757-f161-4782-a071-42a27eddb44b_z-UG8swjBMQmFRGKy2n9dOJ5a46boDNh8Dz58nuN7A_RmoIZMSqk zwfz5DcNEAgMNymFwIFE5uc-_10_0.m3u8?a=primetimetv&b=31290&m=application%2fvnd.apple.mpegurl&mr=0&ns=ps&ps=Cdz1rmE4vHXGdz8rM0n6DWZHlxoMe5PLXpsrZuXz0FU&x=1419044044&" -c copy out.ts

:)

blimey
12-12-2014, 08:50 PM
I'm trying to download this video: https://tv.yahoo.com/blogs/tv-news/martin-freeman-saturday-night-live-debut-165750720.html
(it's the first one after the annoying ad)

With Yahoo I know a method (namely this: http://blog.hd-trailers.net/tutorials/how-to-download-hd-trailers-from-yahoo/) but that works with "movies" or "trailers" Yahoo URLs.

The method from your link above works. Search the source of the video for "media_id"

The media_id for this video is: ae740836-5653-3e51-a34c-3b7e2fc84e81

For m3u8, insert the media id in this template;

http://hls.video.query.yahoo.com/ae740836-5653-3e51-a34c-3b7e2fc84e81.m3u8?site=tv&region=US&lang=en-US


Same for the mp4, using the same instructions;

http://video.query.yahoo.com/v1/public/yql?q=SELECT%20*%20FROM%20yahoo.media.video.stream s%20WHERE%20id=%22ae740836-5653-3e51-a34c-3b7e2fc84e81%22%20AND%20format=%22mp4%22%20AND%20p rotocol=%22http%22%20AND%20rt=%22html%22%20AND%20p lrs=%22%22%20AND%20acctid=%22%22%20AND%20plidl=%22 %22%20AND%20pspid=%22%22%20AND%20offnetwork=%22fal se%22%20AND%20site=%22tv%22%20AND%20lang=%22en-US%22%20AND%20region=%22US%22%20AND%20override=%22 none%22%20AND%20plist=%22%22%20AND%20ssl=%22false% 22%20AND%20synd=%22%22;&env=prod&format=json

mrswhite
12-12-2014, 08:54 PM
(omg did i misread the instructions from the link i posted?!?! the horror!)

Thank you very much blimey!! :)