PDA

View Full Version : Record live streaming from livestream.com?


pepper dion
08-02-2014, 06:50 PM
Can anyone please help me with how to record this livestream?
http://new.livestream.com/accounts/1164825/events/3228592

Replay Media Catcher only records segments of about 5 mb..

Is there a way to record this stream live partially?

Which command should I use?

Thanks for reading.

drbmn
08-02-2014, 11:34 PM
ffmpeg -i "http://livestream-f.akamaihd.net/1164825_3228592_3be38d0c_1_198@73929?v=3.0.3&fp=WIN%2014,0,0,145&r=WKXSP&g=JXAMYLDCRGBC" -acodec copy -vcodec copy out.flv

zer00
08-03-2014, 02:44 AM
Try livestreamer with the file output option:

livestreamer "http://new.livestream.com/accounts/1164825/events/3228592" best -o RECORD.flv

peterpan
08-03-2014, 03:42 AM
Getting Error :(

http://i.imgur.com/1z2AkPy.png

zer00
08-03-2014, 04:03 AM
You have a problem with the certificate.

Try one of the options:



--http-no-ssl-verify

Don’t attempt to verify SSL certificates.
Usually a bad idea, only use this if you know what you’re doing.

--http-ssl-cert FILENAME

SSL certificate to use.
Expects a .pem file.

--http-ssl-cert-crt-key CRT_FILENAME KEY_FILENAME

SSL certificate to use.
Expects a .crt and a .key file.

peterpan
08-03-2014, 04:27 AM
For option 2 & 3...

What goes into FILENAME? where do I find .pem file?
same thing for .crt and .key files? what do I put in there? where do I find those files?

Thanks!

blimey
08-03-2014, 04:52 AM
You can also specify "720p_hls" instead of "best" on the command line. The default "best" is the non-hls http 720p source.

The m3u8 url is right in the source page of the video. It works with ffmpeg.

peterpan
08-03-2014, 05:06 AM
Specifying "720p_hls" instead of "best" in the livestreamer command above did not work :(

Also, I'm getting a 403 error with this :(

http://livestream-f.akamaihd.net/i/1164825_3228592_b7c1fdef_1@73929/index_2320_av-p.m3u8?sd=10&dw=100&rebase=on

blimey
08-03-2014, 05:28 AM
In the source of the video page;

http://new.livestream.com/accounts/1164825/events/3228592

There is a hls link like;

h..p://api.new.livestream.com/broadcasts/58207386.m3u8?dw=100&hdnea=st=1407064637~exp=1407065537~acl=/i/1164825_3228592_b7c1fdef_1@73929/*~hmac= <some code>

Using the entire string, including fresh hmac code, should work with ffmpeg. This is also what livestreamer uses with 720p_hls quality parameter.

If you want to use the url with "index_2320_av-p.m3u8" directly, you'll need to append fresh hmac code (from the end of the previously mentioned hls link from the page source) like this;

h..p://livestream-f.akamaihd.net/i/1164825_3228592_b7c1fdef_1@73929/index_2320_av-p.m3u8?dw=100&hdnea=st=1407031098~exp=1407031998~acl=/i/1164825_3228592_b7c1fdef_1@73929/*~hmac= <some code>


Value here also changes (in multiple locations), adjust it if you change hmac code;

1164825_3228592_xxxxxxxx_1@73929

peterpan
08-03-2014, 05:37 AM
Got It...Thank You blimey!

happysad
05-27-2015, 01:28 AM
I cant find a link to use in vlc from this:


Original channel: https://livestream.com/accounts/11436227/events/3998452/player?width=560&height=315&autoPlay=true&mute=false

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=678000,RESOLUTION=768x432,CODECS="avc1.77.30, mp4a.40.2"
http://livestream-f.akamaihd.net/i/11436227_3998452_58ae8c73_1@317400/index_678_av-p.m3u8?sd=10&dw=100&rebase=on

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=198000,RESOLUTION=480x270,CODECS="avc1.66.30, mp4a.40.2"
http://livestream-f.akamaihd.net/i/11436227_3998452_58ae8c73_1@317400/index_198_av-p.m3u8?sd=10&dw=100&rebase=on

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1756000,RESOLUTION=864x486,CODECS="avc1.77.30, mp4a.40.2"
http://livestream-f.akamaihd.net/i/11436227_3998452_58ae8c73_1@317400/index_1756_av-p.m3u8?sd=10&dw=100&rebase=on

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=48000,CODECS="mp4a.40.2"
http://livestream-f.akamaihd.net/i/11436227_3998452_58ae8c73_1@317400/index_198_a-p.m3u8?sd=10&dw=100&rebase=on

Usher1008
06-16-2015, 04:18 AM
Actually, you don’t have to perform such a complicated procedure to record this live streaming video. By using a screen recorder, you can capture it easily. As for me, I like using free online screen recorder (http://www.apowersoft.com/free-online-screen-recorder). It’s very easy to use, click record button and then just drag the recording frame on live streaming is okay. This tool works well on my computer, I think it will be workable for you as well.