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 09-09-2022, 05:12 PM
Chemist925 Chemist925 is offline
Senior Member
 
Join Date: May 2014
Posts: 138
Chemist925 is on a distinguished road
Question

How to record from this site BBC One?


I am not sure which code to use for streamlink to record the stream from this site

http://ds.freestreams-live1.com/bbc-one/

Can someone tell me how should the synthax be like?. I am intending to record this but I don't know how. Please understand that I am requesting how to record using streamlink.
Reply With Quote
  #2  
Old 09-10-2022, 01:32 AM
confused.com confused.com is offline
Senior Member
 
Join Date: Jan 2017
Posts: 165
confused.com is on a distinguished road
Default

Re: How to record from this site BBC One?


https://github.com/streamlink/streamlink/discussions
Reply With Quote
  #3  
Old 09-10-2022, 07: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: How to record from this site BBC One?


You need referer and hls url. How easy you get it depends on your skill.
In firefox press F12 key, select network monitor tab, right click on hls url and select "Copy Value" > "Copy as Fetch"

Code:
await fetch("https://s6.merizaat.com:8080/hls/hdchnl1.m3u8?md5=hU_czdD3GkayEi1VmXKKXw&expires=1662860389", {
    "credentials": "omit",
    "headers": {
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0",
        "Accept": "*/*",
        "Accept-Language": "en-GB,en;q=0.5",
        "Sec-Fetch-Dest": "empty",
        "Sec-Fetch-Mode": "cors",
        "Sec-Fetch-Site": "cross-site",
        "If-Modified-Since": "Sat, 10 Sep 2022 23:40:52 GMT",
        "If-None-Match": "\"631d2084-234\""
    },
    "referrer": "https://noob4cast.com/",
    "method": "GET",
    "mode": "cors"
});
This is how my batch file looks like:

Code:
set referer="Referer=https://noob4cast.com/"
set url="https://s6.merizaat.com:8080/hls/hdchnl1.m3u8?md5=hU_czdD3GkayEi1VmXKKXw&expires=1662860389"
streamlink.exe --http-header %referer% %url% best
Code:
[cli][info] Found matching plugin hls for URL https://s6.merizaat.com:8080/hls/hdchnl1.m3u8?md5=hU_czdD3GkayEi1VmXKKXw&expires=1662860389
[cli][info] Available streams: live (worst, best)
[cli][info] Opening stream: live (hls)
[cli][info] Starting player: C:\P\VLC\vlc.exe
Hls url appears to be static but I don't know for how long it is.


Reply With Quote
  #4  
Old 09-13-2022, 04:53 PM
Chemist925 Chemist925 is offline
Senior Member
 
Join Date: May 2014
Posts: 138
Chemist925 is on a distinguished road
Question

Re: How to record from this site BBC One?


Quote:
Originally Posted by j_cool View Post
You need referer and hls url. How easy you get it depends on your skill.
In firefox press F12 key, select network monitor tab, right click on hls url and select "Copy Value" > "Copy as Fetch"

Code:
await fetch("https://s6.merizaat.com:8080/hls/hdchnl1.m3u8?md5=hU_czdD3GkayEi1VmXKKXw&expires=1662860389", {
    "credentials": "omit",
    "headers": {
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0",
        "Accept": "*/*",
        "Accept-Language": "en-GB,en;q=0.5",
        "Sec-Fetch-Dest": "empty",
        "Sec-Fetch-Mode": "cors",
        "Sec-Fetch-Site": "cross-site",
        "If-Modified-Since": "Sat, 10 Sep 2022 23:40:52 GMT",
        "If-None-Match": "\"631d2084-234\""
    },
    "referrer": "https://noob4cast.com/",
    "method": "GET",
    "mode": "cors"
});
This is how my batch file looks like:

Code:
set referer="Referer=https://noob4cast.com/"
set url="https://s6.merizaat.com:8080/hls/hdchnl1.m3u8?md5=hU_czdD3GkayEi1VmXKKXw&expires=1662860389"
streamlink.exe --http-header %referer% %url% best
Code:
[cli][info] Found matching plugin hls for URL https://s6.merizaat.com:8080/hls/hdchnl1.m3u8?md5=hU_czdD3GkayEi1VmXKKXw&expires=1662860389
[cli][info] Available streams: live (worst, best)
[cli][info] Opening stream: live (hls)
[cli][info] Starting player: C:\P\VLC\vlc.exe
Hls url appears to be static but I don't know for how long it is.


Can you please share the whole synthax to guide myself?.

What i've been doing is like this:

Code:
 streamlink "hls://s6.merizaat.com:8080/hls/hdchnl1.m3u8" best
Is this way correct?. Please answer. What am I missing?.
I am using latest Chrome version and I have also installed ublock add on. I guess using F12 or ublock can allow to get the information you mentioned but I don't know exactly where to find that referrer. Please help me.
Reply With Quote
  #5  
Old 09-13-2022, 06:09 PM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

Re: How to record from this site BBC One?


The whole syntax is in batch file. Referer is https://noob4cast.com/ and it doesn't change.
Hls url is changing.

Code:
set referer="Referer=https://noob4cast.com/"
set url="https://s6.merizaat.com:8080/hls/hdchnl1.m3u8?md5=hU_czdD3GkayEi1VmXKKXw&expires=1662860389"
streamlink.exe --http-header %referer% %url% best
is the same as:

Code:
streamlink.exe --http-header "Referer=https://noob4cast.com/" "https://s6.merizaat.com:8080/hls/hdchnl1.m3u8?md5=hU_czdD3GkayEi1VmXKKXw&expires=1662860389" best
Run this url in Chrome:

http://gy.freestreams-live1.com/bbc-one/

Press F12, select "Network" tab, right click on m3u8 url:

'https://s6.merizaat.com:8080/hls/hdchnl1.m3u8?md5=F4iCbjwhgKLTLqT7JJ2cqA&expires=16 63116671'

select "Copy" > "Copy as fetch"

Then open Notepad, and paste (content from clipboard). You get this:

Code:
fetch("https://s6.merizaat.com:8080/hls/hdchnl1.m3u8?md5=F4iCbjwhgKLTLqT7JJ2cqA&expires=1663116671", {
  "headers": {
    "accept": "*/*",
    "accept-language": "en-US,en;q=0.9",
    "if-modified-since": "Tue, 13 Sep 2022 22:51:41 GMT",
    "if-none-match": "\"6321097d-218\"",
    "sec-ch-ua": "\"Google Chrome\";v=\"105\", \"Not)A;Brand\";v=\"8\", \"Chromium\";v=\"105\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "cross-site"
  },
  "referrer": "https://noob4cast.com/",
  "referrerPolicy": "strict-origin-when-cross-origin",
  "body": null,
  "method": "GET",
  "mode": "cors",
  "credentials": "omit"
});
All this can be done with script and that is what I ment by quote: How easy you get it depends on your skill.
Hls url is changing and doing this without scripting skills is a pain.
Reply With Quote
  #6  
Old 09-14-2022, 08:04 PM
Chemist925 Chemist925 is offline
Senior Member
 
Join Date: May 2014
Posts: 138
Chemist925 is on a distinguished road
Question

Re: How to record from this site BBC One?


Quote:
Originally Posted by j_cool View Post
The whole syntax is in batch file. Referer is https://noob4cast.com/ and it doesn't change.
Hls url is changing.

Code:
set referer="Referer=https://noob4cast.com/"
set url="https://s6.merizaat.com:8080/hls/hdchnl1.m3u8?md5=hU_czdD3GkayEi1VmXKKXw&expires=1662860389"
streamlink.exe --http-header %referer% %url% best
is the same as:

Code:
streamlink.exe --http-header "Referer=https://noob4cast.com/" "https://s6.merizaat.com:8080/hls/hdchnl1.m3u8?md5=hU_czdD3GkayEi1VmXKKXw&expires=1662860389" best
Run this url in Chrome:

http://gy.freestreams-live1.com/bbc-one/

Press F12, select "Network" tab, right click on m3u8 url:

'https://s6.merizaat.com:8080/hls/hdchnl1.m3u8?md5=F4iCbjwhgKLTLqT7JJ2cqA&expires=16 63116671'

select "Copy" > "Copy as fetch"

Then open Notepad, and paste (content from clipboard). You get this:

Code:
fetch("https://s6.merizaat.com:8080/hls/hdchnl1.m3u8?md5=F4iCbjwhgKLTLqT7JJ2cqA&expires=1663116671", {
  "headers": {
    "accept": "*/*",
    "accept-language": "en-US,en;q=0.9",
    "if-modified-since": "Tue, 13 Sep 2022 22:51:41 GMT",
    "if-none-match": "\"6321097d-218\"",
    "sec-ch-ua": "\"Google Chrome\";v=\"105\", \"Not)A;Brand\";v=\"8\", \"Chromium\";v=\"105\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "cross-site"
  },
  "referrer": "https://noob4cast.com/",
  "referrerPolicy": "strict-origin-when-cross-origin",
  "body": null,
  "method": "GET",
  "mode": "cors",
  "credentials": "omit"
});
All this can be done with script and that is what I ment by quote: How easy you get it depends on your skill.
Hls url is changing and doing this without scripting skills is a pain.
Yes, I made it work but I did not required to use the full text from copy as fetch.

I mean I've just copied from the example you mentioned at the bottom of your message.

I still don't get it right. What's the purpose of the whole copy as fetch text from developer mode?. Do I need to save that as a separate file or something?. I am not very savvy with script skills but I can follow instructions as I have some basic knowledge in that.

In your answer you say that the code is as follows

Code:
set referer="Referer=https://noob4cast.com/"
set url="https://s6.merizaat.com:8080/hls/hdchnl1.m3u8?md5=hU_czdD3GkayEi1VmXKKXw&expires=1662860389"
streamlink.exe --http-header %referer% %url% best
But should it be written as that on CMD? (I'm on Windows 7 btw, yes I know but this laptop is some outdated).

I say this because the code from above has three lines this confuses me. Does the copy as fetch text be saved as a file and then be retreived from the code from above?. Can you please explain this part because I am stuck at trying to understand that.
Reply With Quote
  #7  
Old 09-15-2022, 03:37 AM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

Re: How to record from this site BBC One?


You have a line of code that works.
Some part of that code is changing over short period of time.
There are different ways of getting what you want.
I tried to explain it in most basic way as a starting point.
In the end I do it all with script in more effective way but in this case BBC is not worth pulling my middle leg.

You ask should it be written as that in CMD?
It is up to you if you like it one way or another.
You write code how it is best readable and understandable to you.

If that code confuses you than you need to learn more about scripting to understand it.
Fetch text should not to be saved as file with working code.
Once in memory, process the data in memory. That way is less work and quicker way.
How would I show you what data am I talking about if I don't show you as text and you see it as text?

To understand it more is to learn more and it is the hardest thing to weed out what to learn and from where.
Your specific question is about CMD scripting.
Most of times you need some other programming language to do more with less pain.

https://www.robvanderwoude.com/batchstart.php

Last edited by j_cool : 09-15-2022 at 08:45 PM. Reason: lost in translation
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 10:14 AM.


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