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

Bo Berglund bo.berglund at gmail.com
Thu Apr 14 11:30:06 EEST 2022


On Thu, 14 Apr 2022 00:15:16 +0200, Reino Wijnsma <rwijnsma at xs4all.nl> wrote:

>On 2022-04-13T23:49:26+0200, Reino Wijnsma <rwijnsma at xs4all.nl> wrote:
>> Or minified:
>>
>> $ xidel -s "http://www.freeintertv.com/view/id-2565" -e 'x:request({"post":request-combine((),{"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"})/substring(url,2),"url":"http://www.freeintertv.com/myAjax/get_item_m3u8/"})/extract(raw,"http.+m3u8")'
>Alternatively, instead of using x:request() in-query, you could use the command-line option --post / -d, which I guess more resembles curl:
>
>$ xidel -s -d '{request-combine((),{"chname":string-to-base64Binary(doc("http://www.freeintertv.com/view/id-2565")//meta[@property="og:image"]/extract(@content,"([a-z_]+)\.jpg",1)),"ch":"http://www.freeintertv.com/externals/tv-russia/smotret-tv3-online","html5":"11"})/substring(url,2)}' "http://www.freeintertv.com/myAjax/get_item_m3u8/" -e 'extract($raw,"http.+m3u8")'
>
>$ xidel -s \
>  -d '{
>    request-combine(
>      (),
>      {
>        "chname":string-to-base64Binary(
>          doc("http://www.freeintertv.com/view/id-2565")//meta[@property="og:image"]/
>          extract(@content,"([a-z_]+)\.jpg",1)
>        ),
>        "ch":"http://www.freeintertv.com/externals/tv-russia/smotret-tv3-online",
>        "html5":"11"
>      }
>    )/substring(url,2)
>  }' \
>  "http://www.freeintertv.com/myAjax/get_item_m3u8/" \
>  -e 'extract($raw,"http.+m3u8")'

This also works to get the URL for video source 2565.


-- 
Bo Berglund
Developer in Sweden



More information about the ffmpeg-user mailing list