Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   (French | Français) Récuperer des streams audio et video (http://stream-recorder.com/forum/forumdisplay.php?f=65)
-   -  

Un coup de main pour AdobeHDS.php

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

ImPesto 11-15-2017 12:33 PM

Un coup de main pour AdobeHDS.php


 
Bonjour,

Quelqu'un pour me guider sur la procédure a suivre pour lire cette vidéo https://www.histoire.fr/actualités/h...iale-moyen-âge avec
Code:

php AdobeHDS.php --manifest "manifest_url" --play | vlc --file-caching=10000 -
Le manifeste est
Code:

https://web-wat-ssl.tf1.fr/2/USP-0x0...m/13490468.f4m?vk=MTM0OTA0NjguZjRt&st=9eEg3eVykyHaVGJKPVcN5w&e=1510900650&t=1510771050&bu=TF1&login=histoire-videos&i=10.247.38.20&u=352816f8c11a98639ce99ef2c7a7dff3&sum=5fffd33f143de9bdf64c2cee372443e8&min_bitrate=400000&max_bitrate=700000&seek=wat&hdcore=2.11.3&g=NDVYNUKKHEFD
Ce qui donne :
Code:

php AdobeHDS.php --manifest "https://web-wat-ssl.tf1.fr/2/USP-0x0/04/68/13490468/ssm/13490468.ism/13490468.f4m" --play | vlc --file-caching=10000 -
VLC se lance mais c'est tout.

EDIT : le lien de la vidéo https://www.wat.tv/embedframe/658770chuPP3r13490468?

troller12 11-15-2017 04:12 PM

Re: Un coup de main pour AdobeHDS.php


 
Hi,

you need to use "your" User Agent paramter and some paramters after f4m link (read webconsole).Example below...
Code:

streamlink --http-header "User-Agent=Mozilla/5.0 (Windows NT 6.1; rv:56.0) Gecko/20100101 Firefox/56.0" "hds://https://web-wat-ssl.tf1.fr/2/USP-0x0/04/68/13490468/ssm/13490468.ism/13490468.f4m?vk=MTM0OTA0NjguZjRt&st=*&e=*" best
For the * enter your datas or use the entire link you got.If you did something wrong then you get status "403 Forbidden" as response.If you do it right then the stream starts to play in VLC.

Au revoir & greetz

TubeDigger 11-15-2017 04:18 PM

Re: Un coup de main pour AdobeHDS.php


 
Open Network Stream (Ctrl+N) in VLC:
Code:

https://das-q1-ssl.tf1.fr/2/USP-0x0/04/68/13490468/ssm/13490468.ism/13490468.m3u8?vk=MTM0OTA0NjgubXBk&st=l6-ezah6MWtoV7DQl2z59Q&e=1510797716&t=1510786916&min_bitrate=100000&max_bitrate=1600001

ImPesto 11-16-2017 02:21 AM

Re: Un coup de main pour AdobeHDS.php


 
Thanks bros for answering me on local forum ...

Quote:

Originally Posted by troller12 (Post 95290)
For the * enter your datas or use the entire link you got.

I tried to follow you step by step and now i'm coping a 403 error as you mentionned it in your post. I can't understand properly what you're meaning with your datas or the entire link

I suppose that if you 've been using * here
Code:

*&e=*
, it means that my first post was not containing neither my datas nor my entire link. So where/how should I extract them ?


So here's the poor result of my attempts :


@TubeDigger
Your solution is really fine; would you mine decrypting me the way you build this line code ? (a link would be appreciated ...)

We, french people, are unfortunately not gifted for any foreign languages ... forgive my poor english

EDIT : @troller12
My mistake : I forgot to give this link https://www.tf1.fr/embedframe/658770chuPP3r13490468? in my first post. Maybe this is the mysterious entire link you were refering to. Nevertheless, I can't get rid of it.

TubeDigger 11-16-2017 03:43 AM

Re: Un coup de main pour AdobeHDS.php


 
Quote:

Originally Posted by ImPesto (Post 95298)
@TubeDigger
Your solution is really fine; would you mine decrypting me the way you build this line code ? (a link would be appreciated ...)

Perhaps someone here may provide more detailed instructions, but the idea is to change User-Agent string in Google Chrome (or Chromium) to Android, then open developer tools (F12), start video to play, search for pattern '.mpd' and in found URL replace '.mpd' with '.m3u8'.

ImPesto 11-16-2017 06:01 AM

Re: Un coup de main pour AdobeHDS.php


 
Thanks a lot TubeDigger, explanation is perfect ;)

confused.com 11-17-2017 05:04 PM

Re: Un coup de main pour AdobeHDS.php


 
Code:

https://ios-wat-ssl.tf1.fr/2/USP-0x0/04/68/13490468/ssm/13490468.ism/13490468.m3u8

ami_go 11-19-2017 01:03 PM

Re: Un coup de main pour AdobeHDS.php


 
Bonjour ,

2 cas de figures :

Code:

set "ua=Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16"

livestreamer --http-header "User-Agent=%ua%" "hlsvariant://https://ios-wat-ssl.tf1.fr/2/USP-0x0/04/68/13490468/ssm/13490468.ism/13490468.m3u8" 360p
---
[cli][info] Available streams: 225p, 272p, 360p (best), 50k (worst)
[cli][info] Opening stream: 360p (hls)

ou

streamlink --http-header "User-Agent=%ua%" "hls://https://ios-wat-ssl.tf1.fr/2/USP-0x0/04/68/13490468/ssm/13490468.ism/13490468.m3u8" 360p
---
[cli][info] Available streams: 50k (worst), 225p_alt, 225p, 272p, 360p (best)
[cli][info] Opening stream: 360p (hls)

Cordialement .

tranglinhdn1 11-20-2017 06:27 AM

Quote:

Originally Posted by ImPesto (Post 95282)
Bonjour, Quelqu'un pour me guider sur la proc�dure a suivre pour lire cette vid�o https://www.histoire.fr/actualit&#65...yen-�ge avec
Code:

php AdobeHDS.php --manifest "manifest_url" --play | vlc --file-caching=10000 -
Le manifeste est
Code:

https://web-wat-ssl.tf1.fr/2/USP-0x0...m/13490468.f4m?vk=MTM0OTA0NjguZjRt&st=9eEg3eVykyHaVGJKPVcN5w&e=1510900650&t=1510771050&bu=TF1&login=histoire-videos&i=10.247.38.20&u=352816f8c11a98639ce99ef2c7a7dff3&sum=5fffd33f143de9bdf64c2cee372443e8&min_bitrate=400000&max_bitrate=700000&seek=wat&hdcore=2.11.3&g=NDVYNUKKHEFD
Ce qui donne :
Code:

php AdobeHDS.php --manifest "https://web-wat-ssl.tf1.fr/2/USP-0x0/04/68/13490468/ssm/13490468.ism/13490468.f4m" --play | vlc --file-caching=10000 -
VLC se lance mais c'est tout. EDIT : le lien de la vid�o https://www.wat.tv/embedframe/658770chuPP3r13490468?

Bá??n c?? bị k?*ch th?*ch kh?´ngâ?¤?¸?â?¤?¸???
Poodle l?´ng trá??ng, má?·t xinh ???©???©
L?´ng xoÄ?n d?*y.
M?µm tr??n ngá??n.
Khoá?» má??nh, nÄ?ng động, nịnh ná»?t, nh?°ng dá»… bá??o
???¶ Ä??? tá?©y giun v?* ti??m vacxin Ä‘á?§y đủ, Ä?n c??m v?* há??t Ä‘á»?u Ä‘?°á»?câ?¨


Sức khá»?e cá»±c tốt sá?µn s?*ng vá»? nh?* má»›i vá»›i chá»§ y??u th?°??ng

H?¬nh c??c b?© tá??i petstore th?? c?°ng KPETMART









Xem th??m h?¬nh c??c b?© tá??i link facebook cá»§a shop á??

https://www.facebook.com/KPetMart.net/posts/1877326659246159

Má»?i chi tiá??t xin vui l??ng li??n hệ:

#KPETMART- thá?? giá»›i th?? c?°ng
Trá??i ch?? cá??nh uy t?*n- chá??t l?°á»?ng tá??i Ä‘?* ná?µng
Ä?ịa chỉ: 19 nguyá»…n ph?°á»›c th??i, thanh kh??, Ä?N
Hotline: 0989.288.470
- Website: www.petdn.com


like page gi??p m?¬nh nh?© cá?? nh?*
https://www.facebook.com/KPetMart.net/

ImPesto 11-26-2017 10:13 AM

Re: Un coup de main pour AdobeHDS.php


 
Bonsoir ami_go,

Merci de ta réponse; tes 2 lignes de commande fonctionnent correctement.
Code:

livestreamer --http-header "User-Agent=%ua%" "hlsvariant://https://ios-wat-ssl.tf1.fr/2/USP-0x0/04/68/13490468/ssm/13490468.ism/13490468.m3u8" 360p
et
Code:

streamlink --http-header "User-Agent=
%" "hls://https://ios-wat-ssl.tf1.fr/2/USP-0x0/04/68/13490468/ssm/13490468.ism/13490468.m3u8" 360p

J'en ai fait 2 batchs simplissimes :

Code:

@echo off
echo =======================
echo Livestreamer Entrer URL
echo =======================
echo.
set /p "URL=URL (m3u8): "

set "ua=Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16"

livestreamer --http-header "User-Agent=ua%" "hlsvariant://%URL%" best
pause

et
Code:

@echo off
echo =======================
echo Streamlink Entrer URL
echo =======================
echo.
set /p "URL=URL (m3u8): "

set "ua=Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16"

streamlink --http-header "User-Agent=ua%" "hls://%URL%" best
pause

Le 1er marche parfaitement; le second, quasi "copie conforme", ne parvient pas a traiter correctement la ligne de commande streamlink ...

Une idée ?!?

PS : Grrr, pour une raison inconnue, le caractere % crée un désordre dans ma ligne de code batch; il faut ajouter % devant la chaîne de caractere ua%. J'espere etre suffisamment clair

ami_go 11-26-2017 02:47 PM

Re: Un coup de main pour AdobeHDS.php


 
Bonjour ,

oui => %ua%

Cordialement .

EDIT :
======
Lecture du sujet :
http://stream-recorder.com/forum/sho...46&postcount=1
===
Latest release: 0.9.0
https://github.com/streamlink/stream...ases/tag/0.9.0
===
"plugins for dailymotion"
https://github.com/streamlink/stream...dailymotion.py
======

ImPesto 11-27-2017 06:23 AM

Re: Un coup de main pour AdobeHDS.php


 
Formidable la maj vers la v0.9.0 a tout réglé.

Pour bien comprendre, le tweak du User Agent (moz iphone safari), c'est uniquement nécessaire pour wat.tv ? ou bien ça sert a gruger tous les plateformes vidéos ?

Merci bcp ami_go

ami_go 11-27-2017 09:23 AM

Re: Un coup de main pour AdobeHDS.php


 
Bonjour ,

> User Agent (moz iphone safari), ... nécessaire
En général pas utile .
Si ça ne passe pas relancer la Cde avec .

Cordialement .


All times are GMT -6. The time now is 07:24 AM.