PDA

View Full Version : Need your help with HTTPS Stream recording via FFMPEG (Key File, Cookies)


snasdkind
07-25-2016, 12:12 PM
Hey guys,

i need your professional help with one of my biggest problems nowadays :) which is :

I got a payed account on a commercial website (adult content).
For some years, everything was fine and I could download the videos from the site. Since some months, they do not offer download any
more but just streaming - which is a big problem as my internet connection sucks and I want to collect the best movies on my disk.

I tried so many things to download the vids (from different browser plugins to ffmpeg) but unfortunately i did not succeed - although i'm pretty sure there's a way do grab the vods with ffmpeg, but i did not find out the syntax how to do that :( The problem seems to be a combination of cookies, a php key file and https protocol. Maybe you guys can help me out? That would be reeeealy reeeealy great.

Here's the things i found out so far:

1) When i log in to the site (lets say aaa.xxx - i anonymized the data as i got an payed account with my creditcard data and the admins there might not be very amused about my answer here), cookies are stored, which are (anonymized):

_ga=GA1.2.6133819222.1417281722

_gat=1

PHPSESSID=s7a8as6dsa87sa8765ds876as

wordpress_dcd8sd8asd9sda7fd98fssd8fd8=username%7F7 a8dssdfsd3%8df97sdf7ds9f8ds7fds9fds8f7ds98f7dsdbda

wordpress_logged_in_dcd8sd8asd9sda7fd98fssd8fd8=us ername%7F7a8fdsfsaaa3%8df97sdf7ds9fasdsadasas8f7ds 98f7dsdbda



2) Klicking on a video, the site first opens a file
https://stream.xxxxxxxx.com/003_XXX_HALA/003_XXX_HALA.m3u8?token=dsa09dsa8sad0sa9d8sad09sad 8sadsa98dsa9d8sa9d8sa9dsa8
sending the cookie _ga=GA1.2.6133819222.1417281722

the answer is
#EXTM3U
#EXT-X-STREAM-INF:BANDWIDTH=3652608,RESOLUTION=1920x1080,CODECS="avc1.66.30,mp4a.40.2"
1080p/003_XXX_HALA.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1909760,RESOLUTION=1280x720,CODECS="avc1.66.30,mp4a.40.2"
720p/003_XXX_HALA.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=691200,RESOLUTION=854x480,CODECS="avc1.66.30,mp4a.40.2"
480p/003_XXX_HALA.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=359424,RESOLUTION=640x360,CODECS="avc1.66.30,mp4a.40.2"
360p/003_XXX_HALA.m3u8


3) then a file https://stream.xxxxxxxx.com/003_XXX_HALA/360p/003_XXX_HALA.m3u8 is opened
with same cookie _ga=GA1.2.6133819222.1417281722

which returns

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:18
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-KEY:METHOD=AES-128,URI="https://xxx.com/members/security/003_XXX_HALA/key.php"
#EXTINF:10.110100,
003_XXX_HALA0.ts
#EXTINF:10.944267,
003_XXX_HALA1.ts
#EXTINF:16.649967,
003_XXX_HALA2.ts
#EXTINF:8.341667,
003_XXX_HALA3.ts
............
#EXTINF:4.337667,
003_XXX_HALA123.ts
#EXT-X-ENDLIST


4) Next, a file https://xxx.com/crossdomain.xml is opened with cookies
PHPSESSID=s7a8as6dsa87sa8765ds876as and
_ga=GA1.2.6133819222.1417281722

which returns

<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from domain="*" to-ports="80,443" secure="false"/>
<site-control permitted-cross-domain-policies="master-only" />
</cross-domain-policy>


5) and the file https://xxx.com/members/security/003_XXX_HALA/key.php gets opened with cookies
PHPSESSID=s7a8as6dsa87sa8765ds876as,
_ga=GA1.2.6133819222.1417281722 and
wordpress_logged_in_dcd8sd8asd9sda7fd98fssd8fd8=us ername%7F7a8fdsfsaaa3%8df97sdf7ds9fasdsadasas8f7ds 98f7dsdbda

which returns the string

8Gn2yvXRl4/tFfeCAEgQVw==


6) then, the .ts files are being played..........


I already tried to reconstruct the local m3u8 file (Nr. 3) with replacing the ts-files with full url of the .ts files
(003_XXX_HALA2 -> https://stream.xxx.com/003_XXX_HALA2/360p/003_XXX_HALA2.ts and so on)
and changed the key.php file to a local file in which i stored the given string.

then i tried to open the m3u8 file with
ffmpeg.exe -i "file.m3u8" -c copy video.ts

Error when loading first segment 'https://stream.xxx.com/003_XXX_HALA/360p/003_XXX_HALA0.ts'
file.m3u8: Invalid data found when processing input

I also already tried to directly load from the m3u8 online, with and without sending cookies (maybe the syntax was wrong?)

after several hours of trying all i could do i have no more idea how to solve my problem. But i think there should be a way to download this with ffmpeg?

Pleeeeeease help me :))

snasdkind
07-30-2016, 12:59 PM
... noone an idea :( ?

chap
07-30-2016, 04:16 PM
link video

j_cool
08-01-2016, 02:32 AM
If everything fails, try this:

WMCapture6.2.2

Quality of picture will be good, and file size small.
"Camtazia" pales in comparison to this.

Some time ago I made some recordings using those programs
and today this is gold.

You cannot go back in time.

post the answer here if you find it out.

snasdkind
08-01-2016, 01:29 PM
unfortunately, not working as playback is too slow. I need to capture the stream itself.. and i cannot imagine this is not possible with ffmpeg :confused: :confused:

j_cool
08-01-2016, 02:48 PM
There may be RTMP stream as well.

Are you sure there is not any ?

If I was you I would log in to site's thread here (chaturbate?)
and ask questions little by little, one by one, and peep-show admin
can do you nothing for asking one technical question about one thing.

j_cool
08-02-2016, 12:04 AM
You ask too clever questions for a beginner, not knowing basics?

Aren't you PEEP-SHOW ADMIN yourself ?

Your post stinks.

Johnny.

khanhpham353
08-02-2016, 01:14 AM
Má»?i c??c bá??n gh?© thÄ?m Magiamgiaadayroi.com Ä‘á»? nhá?*n vá»? thá?*t nhiá»?u m?? giá??m gi?? adayroi (http://magiamgiaadayroi.com/) vá»? cho m?¬nh Ä‘á»? mua sá??m nh?©

snasdkind
08-02-2016, 09:06 AM
@j_cool: u drunk?

If I was you I would log in to site's thread here (chaturbate?)
and ask questions little by little, one by one, and peep-show admin
can do you nothing for asking one technical question about one thing.
...

You ask too clever questions for a beginner, not knowing basics?

Aren't you PEEP-SHOW ADMIN yourself ?

Your post stinks.

Johnny.

... and no, there obviosly is no RTMP Stream

j_cool
08-02-2016, 11:02 AM
you may be right about me.

The fact is that peep-show admins are sending shivers down the spine
mebers of this forum.

you did not name the site.