[FFmpeg-user] Can ffmpeg record video from this kind of URL?

Reino Wijnsma rwijnsma at xs4all.nl
Thu Nov 4 02:40:07 EET 2021


On 2021-11-04T01:00:52+0100, Bo Berglund <bo.berglund at gmail.com> wrote:
> https://vsd79.mycdn.me/dash/stream_1146644400798/stream.manifest/sig/RcfEI7wlP-c/expires/1636066246262/srcIp/158.174.104.130/clientType/0/srcAg/GECKO/mid/2125507010206/frag-high-6827906.dash

I hope you realize your IP-address is now out in the open!

> youtube-dl -F https://msnbcdailyshows.com/
> After some thinking it returns:
>
> [info] Available formats for 2125507010206:
> format code extension resolution note
> hls-109 mp4 864x488 109k
> hls-175 mp4 640x360 175k
> hls-485 mp4 428x240 485k
> hls-782 mp4 1280x720 782k (best)
>
> [...]
>
> Is there any possibility to use ffmpeg itself to download from this kind of
> stream and if so what would the argument for the stream be?

$ ffmpeg -i "$(youtube-dl -g https://www.livenewsmag.com/msnbc-news-live-stream/)" -c copy [...]

or with xidel:

$ ffmpeg -i "$(xidel -s https://msnbcdailyshows.com/ -f '//iframe/@src' -e 'parse-json(//@data-options)/flashvars/parse-json(metadata)/hlsMasterPlaylistUrl')" -map 0:p:0 -c copy [...]

-- 
Reino



More information about the ffmpeg-user mailing list