Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

Help capturing from Fox.com.

(http://stream-recorder.com/forum/showthread.php?t=23507)

ehurdler 09-18-2017 04:24 PM

Help capturing from Fox.com.


 
Let me say, I have found a way to capture videos from fox.com since they made changes to their website. The process is rather long, but again, it does work. I was wondering if someone, anyone may be able to help to make the process easier and or faster.

Let me state, youtube-dl does work....but it also grabs the commercials and adds to final download.

Ok so here is my process.

This is for Fox's new show The Orville - s01e02 - https://www.fox.com/watch/3cecd74bcf...84a67c2bb1648/

Load video in question.
Got to Tools->Web Developer->Network
Use All Tab
Filter URLs - Search for link.

You will find for example:
Code:

https://link.theplatform.com/s/fox-dcg/media/rTAuVMt2lj_p?format=redirect&formats=m3u&assetTypes=uplynk-clean:uplynk-ivod-west:uplynk-ivod-mountain:uplynk-ivod-east:uplynk-ivod&sitesection=app.dcg-foxnow/web/fox&adenv=fw_prod
Take the number string after /media/ in the url, in this case “rTAuVMt2lj_p” add between /media/ and ?

Code:

https://link.theplatform.com/s/fox-dcg/media/rTAuVMt2lj_p?mbr=true&manifest=m3u&formats=MPEG4,FLV,M3U&format=SMIL
Paste in browser. Hit enter. Will download a file “rTAuVMt2lj_p”.
Open this file in a text editor.
Now look for
Code:

<param name="testPlayerUrl" value="http://content.uplynk.com/player5/6BMB892QnCASKGD1s1jgmIsa.html"/>
Change User Agent to iPhone 3, also Disable Flash. Now Paste url into browser, start playing the video.

Once starts streaming you can either save video of choice with “Video DownloadHelper”
Or you can copy the string from the video you would download with Video Download Helper into ffmpeg
Examples below:

Code:

ffmpeg -i "https://content-auso3.uplynk.com/6c68ec3ffc3c4df7972591ba15629fcf/j.m3u8?cid=6c68ec3ffc3c4df7972591ba15629fcf&oid=d8e6eec26bf544f084bad49a7fa2eac5&exp=1505767774&rn=3533087049&tc=1&ct=a&sig=e622eb6e2b90ad8d2ba82a16b0fc7023cc9e086cb3dde5ce0847ac3d43aba84d&pbs=0930c744592849efab20b8155b32bb87" -c:a copy -c:v copy "OUTPUT2.ts"


ffmpeg -i "https://content-ausc1.uplynk.com/6c68ec3ffc3c4df7972591ba15629fcf/j.m3u8?cid=6c68ec3ffc3c4df7972591ba15629fcf&oid=d8e6eec26bf544f084bad49a7fa2eac5&exp=1505770655&rn=1539958891&tc=1&ct=a&sig=66a38b69a01a32ecfc3d02f5305c62aa9df37404fe573726e6c42fb82986595e&pbs=93612c07ddd945b0b8b8ca314df9a02c" -c copy -absf aac_adtstoasc "name of file.mp4"

This works, I guess since it is reaching back to the "crypto server"/"key file" this is why the process is so slow? The process if you strictly use "Video DownloadHelper" takes maybe 10 minutes. The full process above takes 20-30 minutes. I wish i knew how Video DownloadHelper did the process so much faster.

Example of what ffmpeg spits out every few seconds:
Code:

[hls,applehttp @ 0x7f86fd800000] Opening 'crypto+https://stgec-ausw.uplynk.com/80C078/ausw/slices/6c6/d8e6eec26bf544f084bad49a7fa2eac5/6c68ec3ffc3c4df7972591ba15629fcf/J00000089.ts?pbs=93612c07ddd945b0b8b8ca314df9a02c&si=0' for reading
If anyone can help, point to a different way, or anything please respond or even PM me. Thank you!

lottery IcTv 09-20-2017 08:13 PM

Re: Help capturing from Fox.com.


 
Quote:

youtube-dl.exe "https://content-ause1.uplynk.com/6c68ec3ffc3c4df7972591ba15629fcf/k.m3u8?pbs=a8a398f1675e40b198216a1aefe8b0d8"


1080p Video Check If Any Issues
http://www84.zippyshare.com/v/5tCZcVgy/file.html
http://www84.zippyshare.com/v/LPtIKAl0/file.html
http://www84.zippyshare.com/v/sBnwfnUd/file.html
http://www84.zippyshare.com/v/IQNool1L/file.html
http://www84.zippyshare.com/v/zUczCOCt/file.html
http://www84.zippyshare.com/v/SOsUtWuJ/file.html
http://www84.zippyshare.com/v/89XIWFtK/file.html
http://www84.zippyshare.com/v/9q16ynqm/file.html
http://www84.zippyshare.com/v/MwDWAtw4/file.html

ehurdler 09-27-2017 12:12 PM

Re: Help capturing from Fox.com.


 
lottery IcTv thanks. This process which I thought I had tried before, and didnt work, well did this time. Unfortunately This no longer works. Youtube-dl or my long process i listed above. For example, the new episode of Brooklyn Nine-Nine https://www.fox.com/watch/5f5afb41c6...189e08c56e912/ When you simply use youtube-dl and one of the quality m3u8 files, it downloads everything but adds an advertisement in the beginning of the downloaded video. The advertisement also cuts off the beginning 15 seconds of the episode.

I will say, I am using a mac and when I use youtube-dl on certain sites I have to use the " --prefer-ffmpeg" option or it will error out. So what I tried is
Code:

youtube-dl https://content-ausw3.uplynk.com/e9ccef09f5234545aa67eacf0a1aadeb/j.m3u8?pbs=7d7129d55e794343be80df1da9944c1e --prefer-ffmpeg
I do get the video downloaded, but as I stated gets advertisement stuck to the beginning. Is there any way around this?

Yelloworanges 09-27-2017 03:43 PM

Re: Help capturing from Fox.com.


 
The youtube-dl contributors are probably working on it.

The steps described in the next to last post here:
https://github.com/rg3/youtube-dl/issues/14147

Seem to work.

1. Download/view theplatform request.
2. Look for the PlayURL in the request.
3. Edit the PlayURL and download with streamlink/livestreamer.

ehurdler 09-27-2017 08:04 PM

Re: Help capturing from Fox.com.


 
Can you explain further? I tried the process described in the github link you sent. I parsed the url, as what I thought was right. I was able to use livestreamer but I still get the commercials. Can you give detailed instructions if you got this working? Thank you.

Yelloworanges 09-27-2017 10:06 PM

Re: Help capturing from Fox.com.


 
Quote:

Originally Posted by ehurdler (Post 94418)
... For example, the new episode of Brooklyn Nine-Nine https://www.fox.com/watch/5f5afb41c6...189e08c56e912/ When you simply use youtube-dl and one of the quality m3u8 files, it downloads everything but adds an advertisement in the beginning of the downloaded video.

I just checked the above video using the github method. No ad at the beginning or anywhere else.

Quote:

Originally Posted by ehurdler (Post 94425)
Can you explain further? I tried the process described in the github link you sent. I parsed the url, as what I thought was right. I was able to use livestreamer but I still get the commercials. Can you give detailed instructions if you got this working? Thank you.

I really don't know how to make it any clearer. It is 3 steps.

Use the very long theplatform request made by the browser (no editing this or using an alternatively formed request).

Once you have this data, at the very top there is a very long uplink preplay json. Load that (again, no edits).

Once you have that, the PlayURL is at the very bottom of the preplay json. The PlayURL is the only item that needs to be edited. The pbs value at this particular location is important in determining what is sent in the m3u8. The m3u8 here is a parent m3u8 and not a quality m3u8.

If you are following these steps without doing any shortcuts or kludges, then I don't know what else to suggest.

confused.com 09-28-2017 12:56 AM

Re: Help capturing from Fox.com.


 
Quote:

Originally Posted by ehurdler (Post 94418)
I do get the video downloaded, but as I stated gets advertisement stuck to the beginning. Is there any way around this?

ffmpeg -ss 5 -i inputfile outputfile

discards the first five seconds of input.

If your input file was 60 seconds long, the output file will be 55 seconds long.

https://superuser.com/questions/5380...fset-in-ffmpeg

https://trac.ffmpeg.org/wiki/Seeking

ehurdler 09-28-2017 06:19 AM

Re: Help capturing from Fox.com.


 
OK, Yelloworanges. I got it working now. I swear I did what that github post said and I got the file with commercials. I tried it again this morning and I got the file without commercials. To be fair, I just didn't fully understand your instructions. At first I was trying to find "theplatform" thru Tools-Web Developer-Network. This does get what you search for, but it is missing I guess some of the header data. But using the Web Console, now I see how to get what is needed. I can also find it thru AdBlock Plus. Just have to toggle that on and off from blocking on fox.com or it won't load the videos for me initially.

I did try in a test also if to take and parse the link that hls stream detector finds in firefox. That didn't work last night when I tried it, but it did work this morning. So, Thank you for the instructions. I guess I needed a bit more detail. I appreciate the help!

Yelloworanges 09-28-2017 04:58 PM

Re: Help capturing from Fox.com.


 
Quote:

Originally Posted by ehurdler (Post 94434)
OK, Yelloworanges. I got it working now. ... I tried it again this morning and I got the file without commercials. To be fair, I just didn't fully understand your instructions.

I guess I needed a bit more detail.

Now that you can do it, how would you have explained it better? This might help others so they don't have to deal with my lousy unclear instructions.

cabulo 09-28-2017 11:45 PM

Re: Help capturing from Fox.com.


 
Solution that cannot be more straightforward, simply cut the commercial off the saved video with ffmpeg.

ehurdler 09-29-2017 10:48 AM

Re: Help capturing from Fox.com.


 
Quote:

Originally Posted by cabulo (Post 94454)
Solution that cannot be more straightforward, simply cut the commercial off the saved video with ffmpeg.

That wouldn't do it. There are commercials through-out, not just at beginning. Yelloworanges solution works perfectly.

ehurdler 09-29-2017 11:14 AM

Re: Help capturing from Fox.com.


 
Quote:

Originally Posted by Yelloworanges (Post 94449)
Now that you can do it, how would you have explained it better? This might help others so they don't have to deal with my lousy unclear instructions.

OK, Deal. Yelloworanges, I did a test and wrote up this little set of instructions for myself, so as you suggested I will post them here.

Open Browser (I’m using Firefox) Load up Tools->Web Developer->Web Console.
Put “theplatform” (without quotes) in the search box.
Open Fox video in question. I am using The Orville s01e04:
Code:

https://www.fox.com/watch/37b7c7ad4524caaa6218df213fe3119d/
Now the web console will give a result, in my example:
Code:

GET XHR https://link.theplatform.com/s/fox-dcg/media/XG9mfW7uoeKV
Expand this and you need to copy the full long “Location” url, the .json url.

Code:

https://content.uplynk.com/preplay/1974dbc0204741908baa92c3058fd9b8.json?v=2&rays=gkjihfedcb&ad=fw_prod&ad.csid=app.dcg-foxnow%2Fweb%2Ffox&ad.kv=fnl-affiliate,,fs-affiliate,,_fw_ae,nomvpd,_fw_did_idfa,,_fw_did_google_advertising_id,,_fw_did_android_id,,_fw_did,,_fw_nielsen_app_id,,_fw_vcid2,116450:463095-1506704124-64.121.15.7,aap_truex,true,adPackage,dai&expand=&tc=1&exp=1506704364&rn=932868&ct=a&cid=1974dbc0204741908baa92c3058fd9b8&sig=e05ff8d0f91a582f647d3ceb3f202343aad0b47ce11298f857428c70cf952e2a
Paste into Browser. Will load JSON Data in Firefox’s window. Copy the “playURL” url.

Code:

https://content-ausw2.uplynk.com/preplay2/1974dbc0204741908baa92c3058fd9b8/33e90a22fc6cfb1da5deda8abc584627/3JBHmgEmciqedx99zOZxbh6muDTYbpSQ59KZMqrwyIl4.m3u8?pbs=545529d1a7ed4e5eb1e032d042f949a0
Parse it to remove “/preplay2” as well as everything before .m3u8 but not as far as the first section of numbers. So original link edited down will look like:

Code:

https://content-ausw2.uplynk.com/1974dbc0204741908baa92c3058fd9b8.m3u8?pbs=545529d1a7ed4e5eb1e032d042f949a0
Take this url and run it with Livestreamer, and you will get the full Video, no Commercials at the beginning or through-out the video at all.


Code:

livestreamer "hlsvariant://https://content-ausw2.uplynk.com/1974dbc0204741908baa92c3058fd9b8.m3u8?pbs=545529d1a7ed4e5eb1e032d042f949a0" 720p -o "04 The Orville.mp4"
If my process is too long, or other plugins, or anything can be used to simplify the process.....Please let me know.

Thanks Again!

thanh thanh 09-30-2017 12:29 AM

Re: Help capturing from Fox.com.


 
C�M QUAY TAY D??ỚI M�I H??NH THỨC ^^

----------------------------------
































brunomoreno71 10-02-2017 01:48 AM

Re: Help capturing from Fox.com.


 
Quote:

ffmpeg -i "https://fbchdvod-f.akamaihd.net/i/video/Fox_Networks_Group_-_FOX_Broadcasting/313/903/OrvilleThe_1LAB03_104831392387,7_mp4_video_1280x72 0_4500000_primary_audio_10,6_mp4_video_1280x720_34 00000_primary_audio_9,5_mp4_video_1280x720_2500000 _primary_audio_8,4_mp4_video_1280x720_1800000_prim ary_audio_7,3_mp4_video_1024x576_1300000_primary_a udio_6,2_mp4_video_640x360_800000_primary_audio_5, 1_mp4_video_480x270_500000_primary_audio_4,0_mp4_v ideo_480x270_300000_primary_audio_3,8_mp4_video_40 0x0_150000_primary_audio_1,8_mp4_video_400x0_15000 0_primary_audio_1,.mp4.csmil/master.m3u8?__b__=300&amp;b=100-&amp;hdnea=st=1506930229~exp=1506930349~acl=/i/video/Fox_Networks_Group_-_FOX_Broadcasting/313/903/OrvilleThe_1LAB03_104831392387*~id=c86a2bd5-8ab2-46d0-a1f7-289237e87d3b~hmac=fa843fa2d98d4602d83d40d06d3d75ad 71c5b12985a425bdc9638eb77727aeab" -c copy mpegts.ts

Yelloworanges 10-02-2017 12:58 PM

Re: Help capturing from Fox.com.


 
Quote:

Originally Posted by brunomoreno71 (Post 94496)
Quote:

ffmpeg -i "https://fbchdvod-f.akamaihd.net/i/video/Fox_Networks_Group_-_FOX_Broadcasting/313/903/OrvilleThe_1LAB03_104831392387,7_mp4_video_1280x72 0_4500000_primary_audio_10,6_mp4_video_1280x720_34 00000_primary_audio_9,5_mp4_video_1280x720_2500000 _primary_audio_8,4_mp4_video_1280x720_1800000_prim ary_audio_7,3_mp4_video_1024x576_1300000_primary_a udio_6,2_mp4_video_640x360_800000_primary_audio_5, 1_mp4_video_480x270_500000_primary_audio_4,0_mp4_v ideo_480x270_300000_primary_audio_3,8_mp4_video_40 0x0_150000_primary_audio_1,8_mp4_video_400x0_15000 0_primary_audio_1,.mp4.csmil/master.m3u8?__b__=300&amp;b=100-&amp;hdnea=st=1506930229~exp=1506930349~acl=/i/video/Fox_Networks_Group_-_FOX_Broadcasting/313/903/OrvilleThe_1LAB03_104831392387*~id=c86a2bd5-8ab2-46d0-a1f7-289237e87d3b~hmac=fa843fa2d98d4602d83d40d06d3d75ad 71c5b12985a425bdc9638eb77727aeab" -c copy mpegts.ts

Interesting. It seems that the legacy sources "feed.theplatform.com/f/fox.com" and "link.theplatform.com/s/fox-mobile" are still active, at least for the mobile platform(s).

While the desktop platform has transisitioned to "link.theplatform.com/s/fox-dcg".

The legacy system might be easier to download than the new uplink system, although the old system doesn't have 1080p. The question is whether the legacy system will be ongoing for the mobile platform(s).

ehurdler 10-02-2017 04:34 PM

Re: Help capturing from Fox.com.


 
Thank you. This is awesome! But it seems that the videos you would have to login to a cable company login with do not work. Only works for older, or free access videos. Is this kind of feed setup available for other networks? NBC, ABC, CBS for example by chance?

Yelloworanges 10-04-2017 03:02 AM

Re: Help capturing from Fox.com.


 
the auth ones will work if the signature is included with the request.


All times are GMT -6. The time now is 07:11 PM.