Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Need your help with HTTPS Stream recording via FFMPEG (Key File, Cookies)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=dsa09dsa8sad0sa9d8sad09sad8sadsa98dsa9d8sa9d8sa9ds a8 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="av c1.66.30,mp4a.40.2" 480p/003_XXX_HALA.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=359424,RESOLUTION=640x360,CODECS="av c1.66.30,mp4a.40.2" 360p/003_XXX_HALA.m3u8 3) then a file https://stream.xxxxxxxx.com/003_XXX_...p/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...3_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 ) |
Tags: cookies, ffmpeg, https, key |
Thread Tools | |
Display Modes | |
|
|