[FFmpeg-user] Can ffmpeg record video from this kind of URL?
Reino Wijnsma
rwijnsma at xs4all.nl
Sun Aug 29 18:41:49 EEST 2021
On 2021-08-29T17:10:29+0200, Bo Berglund <bo.berglund at gmail.com> wrote:
> https://www.livenewsmag.com/msnbc-news-live-stream/
>
> I have tried to use F12 in FireFox in order to be able to extract a video url,
> but failed to find anything (not really used to using the F12 view).
This one?
$ xidel -s "https://www.livenewsmag.com/msnbc-news-live-stream/" -e '
parse-json(
//script/extract(.,"playerInstance.setup\((.+)\)",1,"s"),
{"liberal":true()}
)
'
{
"file": "https://1420543146.rsc.cdn77.org/V8uAdAW-VTHZeQ0E-rxccA==,1630271176/LS-ATL-54548-10/index.m3u8",
"autostart": false,
"width": "100%",
"aspectratio": "16:10",
"androidhls": false,
"hlsjsdefault": true,
"logo": {
"file": "/wp-content/uploads/2016/10/live-news-logo-1.jpg",
"hide": "true",
"link": "http://www.livenewson.com/"
},
"abouttext": "LiveNewsOn",
"aboutlink": "http://www.livenewson.com",
"cast": {}
}
>From where I am I don't think I'm allowed to access the stream.
$ ffmpeg -hide_banner -i "$(xidel -s "https://www.livenewsmag.com/msnbc-news-live-stream/" -e 'parse-json(//script/extract(.,"playerInstance.setup\((.+)\)",1,"s"),{"liberal":true()})/file')"
[https @ 04f49bc0] HTTP error 403 Forbidden
https://1420543146.rsc.cdn77.org/V8uAdAW-VTHZeQ0E-rxccA==,1630271176/LS-ATL-54548-10/index.m3u8: Server returned 403 Forbidden (access denied)
--
Reino
More information about the ffmpeg-user
mailing list