[FFmpeg-user] How can I extract m3u8 URL for use with ffmpeg on this site?

Bo Berglund bo.berglund at gmail.com
Tue Apr 12 18:54:32 EEST 2022


On Tue, 12 Apr 2022 01:42:14 +0200, Reino Wijnsma <rwijnsma at xs4all.nl> wrote:

>If you insist on using Xidel 0.9.8, then use:
>

So I am not insisting on any particular version...
I am now on the latest available.

>$ xidel -s "http://www.freeintertv.com/view/id-2565" -e 'x:request({"post":request-combine({"url":()},{"chname":string-to-base64Binary(extract(//meta[@property="og:image"]/@content,"([a-z_]+)\.jpg",1)),"ch":"http://www.freeintertv.com/externals/tv-russia/smotret-tv3-online","html5":"11"})/url,"url":"http://www.freeintertv.com/myAjax/get_item_m3u8/"})/extract(raw,"http.+m3u8")'
>

Anyway, the command above used with the latest xidel yields an erroneous URL for
the 2565 video:
http://livedoc.cgtn.com/500d/prog_index.m3u8
This is for a documentary site with wildlife footage. No MSNBC anywhere.

The correct 2565 m3u8 extracted with Firefox right now is:
http://1128480543.rsc.cdn77.org/ZzaSg9XJexGJKIy-kt2Mxg==,1649784902/1128480543/tracks-v1a1/mono.m3u8

And currently the correct Firefox url for 2308 is:
https://nbcnews3.akamaized.net/hls/live/723429/NBCNewsNowa418c506/clear/hdntl=exp=1649865178~acl=%2f*~data=hdntl~hmac=5480897632ddf98d23bf870098333af5055752c54d28764b8c894711086d1266/VIDEO_1_4596000.m3u8


-- 
Bo Berglund
Developer in Sweden



More information about the ffmpeg-user mailing list