Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 06-17-2018, 02:43 PM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

i24NEWS Live


https://en.wikipedia.org/wiki/I24NEWS

They are not much arround on the internet.

http://uk.play.tv/live-tv/1110/i24-news-uk/

This is m3u8 url from http shiffer:

"https://edge-01.playmedia-cdn.net/origin02/amlst:i24-eng/playlist.m3u8?dar=ws&t=18ddf1b11ff0fbb27659a265b39 d112682c0d61962b62eacd7f69f98b392579cedb609bb3033b 737c4d6cc309dbbbb0e4ccc969004171b8764b6915f5c6229f 39bb0faf84e5e19c781546086987227be8fb5651d121608b7d a4940ededc50c74513ae3673049acfd9b33bbe246e3ab75721 8e96d0263ebb7e5a784349608c55c0f05e3434b243351"

It is similar to what was before on dailymotion:

https://www.dailymotion.com/i24news-en

Problem with that m3u8 url is that it doesn't last long, it is changing after a few minutes.

Any idea how to get this m3u8 url with CURL or some other means without opening the browser ?
Reply With Quote
  #2  
Old 06-18-2018, 05:12 AM
troller12 troller12 is offline
Senior Member
 
Join Date: Sep 2013
Posts: 433
troller12 is on a distinguished road
Default

Re: i24NEWS Live


Hi j_cool,

Code:
http://uk.play.tv/player/play/i24-news-uk/?format=hls&language=en
if you call this address then you get json content with entire streamlink you can use.Just need to read it right (format) (see it FF).Not sure about the command you can use with CURL now.Just check that out or maybe you can use anything else to read the content etc.

greetz
Reply With Quote
  #3  
Old 06-18-2018, 01:16 PM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

Re: i24NEWS Live


Troller,

you put Streamlink to shame.

They have a plugin for play.tv and it doesn't work more often than it does work.

[cli][info] Found matching plugin play for URL http://uk.play.tv/player/play/i24-news-uk/
[plugin.play][error] invalid username
error: No playable streams found on this URL: http://uk.play.tv/player/play/i24-news-uk/
Press any key to continue . . .

Here is what I make out of "http://uk.play.tv/player/play/i24-news-uk/?format=hls&language=en"

i24.au3

Code:
#include <AutoItConstants.au3>
$s = "http://uk.play.tv/player/play/i24-news-uk/?format=hls^&language=en"
Local $iPID = Run('cmd.exe /c curl.exe ' & $s,'',@SW_HIDE,$STDOUT_CHILD)
ProcessWaitClose($iPID)
Local $s = StdoutRead($iPID)
$s = StringReplace($s,'\/','/')
$s = StringReplace($s,'{"url":"','')
$s = StringReplace($s,'"}','')
$s = StringReplace($s,'\u0026','&')
$header = '--http-header-fields="Accept-Encoding: gzip, deflate","Accept-Language: en-GB,en;q=0.5","Connection: keep-alive","Origin: http://uk.play.tv","Referer: http://uk.play.tv/live-tv/1110/i24-news-uk/","User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"'
$s = $header & ' "' & $s & '"'
ShellExecute('mpv.exe',$s,'','','')
Replace mpv.exe with another player if you want and specify full path if it is not in %PATH%.
curl should also be on %PATH%, if it is not specify path in script.

Code:
#include <AutoItConstants.au3>
$s = "http://uk.play.tv/player/play/i24-news-uk/?format=hls^&language=en"
Local $iPID = Run('cmd.exe /c curl.exe ' & $s,'',@SW_HIDE,$STDOUT_CHILD)
ProcessWaitClose($iPID)
Local $s = StdoutRead($iPID)
$s = StringReplace($s,'\/','/')
$s = StringReplace($s,'{"url":"','')
$s = StringReplace($s,'"}','')
$s = StringReplace($s,'\u0026','&')
$s = '"' & $s & '"'
ShellExecute('C:\path\YOURPLAYER.exe',$s,'','','')
Save this code as txt file and name it i24.au3

Download autoit-v3.zip from https://www.autoitscript.com/site/autoit/downloads/ and extract it.



Open i24.au3 with scite.exe ( autoit editor and compiler ) and compile i24.au3 to get i24.exe by pressing Ctrl+F7
or choosing compile from tools menu.



Double click on i24.exe and here is screenshot of player working.


Last edited by j_cool : 06-19-2018 at 06:25 AM.
Reply With Quote
  #4  
Old 06-21-2018, 07:01 PM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

Re: i24NEWS Live


Troller,

How can I work out what parameters come after url to get json output, like: ?format=hls&language=en

I tried to replicate your trick on "http://play.tv/live-tv/908/i24-news-english/?format=hls&language=en" and result:

message : "Une erreur est survenue. Veuillez réessayer un peu plus tard."

That url plays the same stream as "http://uk.play.tv/player/play/i24-news-uk/" and params ?format=hls&language=en don't work.



Html source:

Code:
App.Data = {"playerParameters":{
"initialize":"http:\/\/play.tv\/player\/initialize\/i24-news-english\/",
"play":"http:\/\/play.tv\/player\/play\/i24-news-english\/","lang":"en",
"autoPlay":true,"assets":{"player":"http:\/\/play.tv\/assets\/swf\/player.swf",
"clipboard":"http:\/\/play.tv\/assets\/swf\/zeroclipboard.swf"},
"tracking":{"label":"i24 News English"}
,"features":{"progress":{"enabled":false,"options":{"url":"http:\/\/play.tv\/player\/broadcast\/i24-news-english\/","preload":{"progress":"","startAt":"","endAt":"","program":{"title":"","genre":"","subgenre":""}}}},"requireCheck":{"enabled":false,"options":{"url":"http:\/\/play.tv\/player\/check\/"}},"channelLogo":{"enabled":false},"whiteLabel":{"enabled":false},"volume":{"enabled":true},"bitrate":{"enabled":true},"popup":{"enabled":true,"options":{"url":"http:\/\/play.tv\/live-tv\/908\/i24-news-english\/?popup=1"}},"switchHd":{"enabled":false},"sales":{"enabled":false,"options":{"url":"http:\/\/play.tv\/nos-offres\/","first":{"url":"http:\/\/play.tv\/nos-offres\/pack-premium\/","alias":"pack-premium"},"second":{"url":"http:\/\/play.tv\/nos-offres\/pack-informations\/","alias":"pack-informations"}}},"export":{"enabled":true,"options":{"embedCode":"<iframe width=\"610\" height=\"384\" src=\"http:\/\/play.tv\/player\/embed\/i24-news-english\/\" allowfullscreen=\"true\" webkitallowfullscreen=\"true\" mozallowfullscreen=\"true\"><\/iframe>","linkTo":"http:\/\/play.tv\/live-tv\/908\/i24-news-english\/"}},"facebook":{"enabled":true,"options":{"url":"http:\/\/play.tv\/player\/share\/i24-news-english\/"}},"twitter":{"enabled":true,"options":{"url":"http:\/\/play.tv\/player\/share\/i24-news-english\/"}}}},"uniroll":{"flashUrl":"http:\/\/play.tv\/uniroll\/assets\/swf\/uniroll-0.16.4.swf","requestUrl":"http:\/\/play.tv\/uniroll\/request\/","version":"0.16.4","zoneUid":"prerollliveplaytvuk","requestParams":{"tid":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpYXQiOjE1Mjk2MjA1NTgsImN1c3RvbUNvbnRlbnQiOiJ7XCJhY2NvdW50SWRcIjowLFwiY2hhbm5lbElkXCI6OTA4LFwiZG9tYWluXCI6XCJwbGF5LnR2XCIsXCJpc1NlY3VyZVwiOmZhbHNlLFwiaXNUZXN0XCI6ZmFsc2UsXCJ1c2VySXBcIjpcIjg2LjE4Mi41NC4xMDlcIixcInZlcnNpb25cIjpcIjAuMTYuNFwiLFwiem9uZVVpZFwiOlwicHJlcm9sbGxpdmVwbGF5dHZ1a1wiLFwiY29uZmlnXCI6ZmFsc2V9In0.mTE12HJ5IpwIcdLZXaYjb-NV1U9Vm4rwix41tmDUgR0EVqg4_M2T1ldwcIBEajoB7u5TOdAkYTVkhmEalfWOww"},"forceHtmlVideo":true},"streamLanguage":"fr","uniadsParameters":{"adblocker":"adb=1","lang":"en","channelId":908,"appZone":"play-tv-uk.preroll","features":{"rollAds":{"enabled":true},"skipAds":{"enabled":false,"options":{"url":"http:\/\/play.tv\/nos-offres\/pack-premium\/","alias":"pack-premium"}}}}}
Result from "initialize":

Code:
curl.exe -H "Referer: http://play.tv/live-tv/908/i24-news-english/" "http://play.tv/player/initialize/i24-news-english/"
{"hasHd":false,"id":908,"imageUrl":"https:\/\/static.playmedia-cdn.net\/img\/tv_channels\/908_medium.png",
"productsUrl":"\/nos-offres\/","products":[{"alias":"pack-premium","label":"-","price":0,
"url":"\/nos-offres\/pack-premium\/"},{"alias":"pack-informations","label":"-","price":0,
"url":"\/nos-offres\/pack-informations\/"},{"alias":"prepaid-1m","label":"Play TV Premium","price":0,
"url":"\/nos-offres\/prepaid-1m\/"},{"alias":"prepaid-6m","label":"Play TV Premium","price":0,
"url":"\/nos-offres\/prepaid-6m\/"},{"alias":"prepaid-unlimited","label":"Play TV Premium","price":0,
"url":"\/nos-offres\/prepaid-unlimited\/"}],
"streams":{"fr":{
"flash":{"bitrates":[{"label":"0.8 Mbps","value":800,"default":true},{"label":"0.3 Mbps","value":300}]},
"rtsp":{"bitrates":[{"label":"0.8 Mbps","value":800,"default":true},{"label":"0.3 Mbps","value":300}]},
"hds":{"bitrates":[{"label":"0.8 Mbps","value":800,"default":true},{"label":"0.3 Mbps","value":300}]},
"dash":{"bitrates":[{"label":"0.8 Mbps","value":800,"default":true},{"label":"0.3 Mbps","value":300}]},
"hls":{"bitrates":[{"label":"0.8 Mbps","value":800},{"label":"0.3 Mbps","value":300},{"label":"Auto","value":0,"default":true}]}}}}
Result from "play":

Code:
curl.exe -H "Referer: http://play.tv/live-tv/908/i24-news-english/" "http://play.tv/player/play/i24-news-english/?format=hls^&language=en" 
{"message":"Une erreur est survenue. Veuillez r\u00e9essayer un peu plus tard."}

Last edited by j_cool : 06-22-2018 at 05:29 AM.
Reply With Quote
  #5  
Old 06-22-2018, 11:21 AM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

Re: i24NEWS Live


Streamlink plays this url: "http://play.tv/live-tv/908/i24-news-english/"

[cli][info] Found matching plugin playtv for URL http://play.tv/live-tv/908/i24-news-english/
[cli][info] Available streams: 300k (worst), 800k (best)
[cli][info] Opening stream: 800k (hls)
[cli][info] Starting player: mpv.exe

This is how plugin starts:

class PlayTV(Plugin):
FORMATS_URL = 'http://playtv.fr/player/initialize/{0}/'
API_URL = 'http://playtv.fr/player/play/{0}/?format={1}&language={2}&bitrate={3}'

and I don't get json output in browser with these urls:

"http://playtv.fr/player/play/i24-news-english/?format=hls&language=en&bitrate=800"

"http://play.tv/player/play/i24-news-english/?format=hls&language=en&bitrate=800"

message "Une erreur est survenue. Veuillez réessayer un peu plus tard."
Reply With Quote
  #6  
Old 06-22-2018, 01:00 PM
troller12 troller12 is offline
Senior Member
 
Join Date: Sep 2013
Posts: 433
troller12 is on a distinguished road
Default

Re: i24NEWS Live


Hi j_cool,

in the pagesource of each channel of that site you can find a streamlanguage info.
Code:
http://play.tv/live-tv/908/i24-news-english/
"streamLanguage":"fr"

http://play.tv/live-tv/30/fashion-tv/
"streamLanguage":"en"
If you check that first then you know what language you can use to call it with language paramter for the json link.

If the language dosent work then you get 400 Bad Request as response back instead of 200 OK.

If I see it right then only fr & en language types are used.Just switch to other language (en or fr) if one of them did fail (400 Bad Request) and and request json link again.Just try it again.

greetz
Reply With Quote
  #7  
Old 10-21-2024, 05:08 PM
askokanbekov askokanbekov is offline
Junior Member
 
Join Date: Jan 2013
Posts: 20
askokanbekov is on a distinguished road
Default

Pretty Womans from your town for night - True Females


Search Beautiful Girls in your town for night
Reply With Quote
  #8  
Old 11-04-2024, 05:37 AM
kuros kuros is offline
Junior Member
 
Join Date: Nov 2014
Location: Usa
Posts: 15
kuros is on a distinguished road
Default

Sexy Girls from your town - Verified Females


Find Sexy Womans in your town for night
Reply With Quote
  #9  
Old 11-10-2024, 12:27 PM
kuros kuros is offline
Junior Member
 
Join Date: Nov 2014
Location: Usa
Posts: 15
kuros is on a distinguished road
Default

Pretty Girls from your city - Actual Women


Sexy Girls from your city for night
Reply With Quote
  #10  
Old 10-07-2020, 01:46 AM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

Re: i24NEWS Live


Now back to main topic.
I want to watch this stream in player without opening web browser.
Saving the stream will be the same as watching if anybody wants to save some of it.

It appears to be the same problem with source of this stream as it was with play.tv.
I get stream url with http sniffer and then it doesn't play with player and I have to figure out
why it doesn't play. Is it protected in a way unknown to me and no player can play it
or I have to be as quick as before with my script and get url with script in a player.
Before it worked with Troller's tip. Any related information is welcome.



Quote:
Originally Posted by troller12 View Post
Hi j_cool,

Code:
http://uk.play.tv/player/play/i24-news-uk/?format=hls&language=en
if you call this address then you get json content with entire streamlink you can use.Just need to read it right (format) (see it FF).Not sure about the command you can use with CURL now.Just check that out or maybe you can use anything else to read the content etc.

greetz


https://www.i24news.tv/ar/%D9%85%D8%...A7%D8%B4%D8%B1


Code:
https://i24alive2.akamaized.net/773a2fa387914315ad11e6957cd54f6e/eu-central-1/5377161796001/playlist-all_dvr.m3u8?__nn__=5476555825001&hdnea=st=1602055800~exp=1602059400~acl=/773a2fa387914315ad11e6957cd54f6e/eu-central-1/5377161796001/*~hmac=2fdfe3e3a70099795b3d18c5d9f0c9fd932e8ceb0349d607e00a59de2f4024c1&__nn__=5476555825001&hdnea=st=1593502200~exp=1593505800~acl=/773a2fa387914315ad11e6957cd54f6e/eu-central-1/5377161796001/*~hmac=e10085a246c4608e9f04e7d4b925449af4c8477024068d6ca8e4e3f9de7364b1&__nn__=5476555825001&hdnea=st=1579100400~exp=1579104000~acl=/773a2fa387914315ad11e6957cd54f6e/eu-central-1/5377161796001/*~hmac=c186cee77d80e35d26659b79813e3945270ce3339b49292ac0a39914dba1ffc5

Code:
C:\>youtube-dl.exe --verbose --list-formats --no-check-certificate "https://i24alive2.akamaized.net/773a2fa387914315ad11e6957cd54f6e/eu-central-1/5377161796001/playlist-all_dvr.m3u8?__nn__=5476555825001&hdnea=st=1602055800~exp=1602059400~acl=/773a2fa387914315ad11e6957cd54f6e/eu-central-1/5377161796001/*~hmac=2fdfe3e3a70099795b3d18c5d9f0c9fd932e8ceb0349d607e00a59de2f4024c1&__nn__=5476555825001&hdnea=st=1593502200~exp=1593505800~acl=/773a2fa387914315ad11e6957cd54f6e/eu-central-1/5377161796001/*~hmac=e10085a246c4608e9f04e7d4b925449af4c8477024068d6ca8e4e3f9de7364b1&__nn__=5476555825001&hdnea=st=1579100400~exp=1579104000~acl=/773a2fa387914315ad11e6957cd54f6e/eu-central-1/5377161796001/*~hmac=c186cee77d80e35d26659b79813e3945270ce3339b49292ac0a39914dba1ffc5"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '--list-formats', '--no-check-certificate', 'https://i24alive2.akamaized.net/773a2fa387914315ad11e6957cd54f6e/eu-central-1/5377161796001/playlist-all_dvr.m3u8?__nn__=5476555825001&hdnea=st=1602055800~exp=1602059400~acl=/773a2fa387914315ad11e6957cd54f6e/eu-central-1/5377161796001/*~hmac=2fdfe3e3a70099795b3d18c5d9f0c9fd932e8ceb0349d607e00a59de2f4024c1&__nn__=5476555825001&hdnea=st=1593502200~exp=1593505800~acl=/773a2fa387914315ad11e6957cd54f6e/eu-central-1/5377161796001/*~hmac=e10085a246c4608e9f04e7d4b925449af4c8477024068d6ca8e4e3f9de7364b1&__nn__=5476555825001&hdnea=st=1579100400~exp=1579104000~acl=/773a2fa387914315ad11e6957cd54f6e/eu-central-1/5377161796001/*~hmac=c186cee77d80e35d26659b79813e3945270ce3339b49292ac0a39914dba1ffc5']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2020.09.20
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17763
[debug] exe versions: ffmpeg 4.3.1-2020-10-01-full_build-www.gyan.dev, ffprobe 4.3.1-2020-10-01-full_build-www.gyan.dev, rtmpdump 2.4
[debug] Proxy map: {}
[generic] *~hmac=c186cee77d80e35d26659b79813e3945270ce3339b49292ac0a39914dba1ffc5: Requesting header
[generic] *~hmac=c186cee77d80e35d26659b79813e3945270ce3339b49292ac0a39914dba1ffc5: Downloading m3u8 information
[info] Available formats for *~hmac=c186cee77d80e35d26659b79813e3945270ce3339b49292ac0a39914dba1ffc5:
format code  extension  resolution note
452          mp4        320x180     452k , avc1.77.21, mp4a.40.2
657          mp4        480x270     657k , avc1.77.30, mp4a.40.2
1015         mp4        640x360    1015k , avc1.77.31, mp4a.40.2
1323         mp4        854x480    1323k , avc1.77.32, mp4a.40.2
2083         mp4        960x540    2083k , avc1.77.41, mp4a.40.2
2347         mp4        1280x720   2347k , avc1.77.41, mp4a.40.2 (best)

Last edited by j_cool : 10-07-2020 at 02:37 AM.
Reply With Quote
Reply Post New Thread
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons