Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

How do i record this steam? Can I schedule it?

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

ser_Zone 06-22-2016 04:53 PM

How do i record this steam? Can I schedule it?


 
I'm trying to record a local news stream from this site:
http://abc7news.com/live/

Digging around in the code for the page I found this url:
Code:

http://content.uplynk.com/channel/ext/4413701bf5a1488db55b767f8ae9d4fa/KGOwatch.m3u8?tc=1&exp=1466635774096&rn=4904.781713486257&ct=c&oid=4413701bf5a1488db55b767f8ae9d4fa&eid=KGOwatch&ad=watchkgolive&ad.kv=station%2Ckgo&ad.adUnit=midroll&ad.flex=0&ad._v=2&sig=75760240b6f88fb5e9f583ba27053b487f2a1adb55f9eaebbc554f168951f61f
I'm not sure if that's are the URL I need to use or not, but VLC wouldn't open it. I'm trying to capture the stream and, if it's indeed possible to capture it, I'd like to schedule the capture so that it starts the caputre let's say every day at 6pm and ends at 7pm. Can that be done? Where do I start?

Thank you!

nambac 06-22-2016 08:18 PM

Re: How do i record this steam? Can I schedule it?


 
Skmobile thay m?*n h?¬nh LG KS660
Dịch vá»? thay m?*n h?¬nh LG KS660, thay thá?? m?*n h?¬nh LG KS660, sá»*a chá»?a LG KS660 ch?*nh h??ng gi?? rá?» chỉ c?? duy nhá??t tá??i SkMobile - địa chỉ thay thá?? v?* bá??o h?*nh Ä‘iện thoá??i uy t?*n tr??n địa b?*n H?* Ná»™i. Ä?iện thoá??i LG KS660 cá»§a bá??n Ä‘ang gá?·p phá??i c??c lá»—i vá»›i cá??m ứng v?* Ä‘ang bÄ?n khoÄ?n kh?´ng biá??t Ä‘em Ä‘á??n trung t??m n?*o c?? dịch vá»? uy t?*n Ä‘á»? sá»*a. H??y Ä‘á??n ngay SKmobile, Ä‘á??m bá??o qu?? kh??ch sá?? thá??y h?*i l??ng sau khi sá»* dá»?ng dịch vá»? thay thá?? cá??m ứng LG KS660 chuy??n nghiệp cá»§a h?*ng ng?© nh??n vi??n l??u nÄ?m tá??i SkMobile.
Chuy??n thay cá??m ứng LG KS660
Cam ká??t cá»§a Skmobile vá»›i dịch vá»? thay thá?? má?·t k?*nh LG KS660
♦ Trung t??m Skmobile c?? mức gi?? cá??nh tranh nhá??t thị tr?°á»?ng hiện nay
♦ H?*ng ng?© ká»? thuá?*t c?? tay nghá»? cao, lu?´n lu?´n sá?µn s?*ng gi??p Ä‘á»? kh??ch h?*ng tá»›i sá»*a chá»?a
♦ Dịch vá»? thay má?·t k?*nh LG KS660 c?? chi ph?* phá??i chÄ?ng, tiện Ä‘?°á»?ng Ä‘i lá??i
♦ Dịch vá»? sá»*a chá»?a c?? ch?*nh s??ch bá??o h?*nh d?*i há??n chá??t l?°á»?ng tốt nhá??t
♦ Ä?á»™i ng?© nh??n vi??n ká»? thuá?*t c?? tay nghá»? cao
Dịch vá»? thay thá?? m?*n h?¬nh LG KS660

mrberni 06-24-2016 05:55 PM

Re: How do i record this steam? Can I schedule it?


 
That m3u8 link you found should work (works for me at least), but it could be, that it expires, so you have to experiment how long you can access the m3u8 file, before you have to update it.

To download the stream you have to do the following:
Download the m3u8 file, or open it in your browser (in Firefox write "view-source:" in front of it). Now take the complete URL for your desired resolution (probably 720p which is the k.m3u8). Download ffmpeg and use the following command:

Code:

ffmpeg -i "YOUR M3U8 URL" -c copy "your path\output.ts"
Of course replace "YOUR M3U8 URL" with the m3u8 you copied before and "your path\output.ts" wherever you want it to save the file and which name (but keep the .ts ending).

Important: when you have recorded the desired length don't just close the window. Stop the encoding with pressing "q" first.

example:
Code:

ffmpeg -i "http://content-aeuf2.uplynk.com/channel/0194acb14e714610b2598d206811d951/k.m3u8?tc=1&exp=1466810449802&rn=4520.329983492225&ct=c&oid=4413701bf5a1488db55b767f8ae9d4fa&eid=KGOwatch&ad=watchkgolive&ad.kv=station%2Ckgo&ad.adUnit=midroll&ad.flex=0&ad._v=2&sig=d383f219bc78be6a8c969393eba0da9255ac8b73f3fd400d73953cfda8878791&pbs=8e1ef53f24a74277951ba0dbf8736d80" -c copy "news.ts"

Now how you could schedule it (if you have Windows):
First modify the ffmpeg command with the -t parameter. It will tell ffmpeg how long it will record and then stops it. Here for one hour:

Code:

ffmpeg -i "YOUR M3U8 URL" -c copy -t 01:00:00.000 "your path\output.ts"
Now create a .bat file containing the ffmpeg command. Replace ffmpeg with the full path to the ffmpeg.exe (just to be safe) and now VERY important: replace every % in the m3u8 URL with %%.

Then you open the "Task Scheduler" (click on Start and search for "Task Scheduler"), and plan a new task starting at 6pm and take the .bat file to start. Here a tutorial I found: http://www.digitalcitizen.life/how-c...ic-task-wizard

The only problem is, that you have to move your recording everyday to another folder, or ffmpeg will override it.

nguyentuanhhn06 06-24-2016 07:20 PM

Re: How do i record this steam? Can I schedule it?


 
http://caobanlong.org/tac-dung-cua-c...oi-voi-tre-nho


All times are GMT -6. The time now is 01:33 AM.