I can use the following yt-dlp.exe command to download some live M3U8 link and save to local hard disk:
yt-dlp.exe https://m3u8.xyz/g#.m3u8 --downloader ffmpeg -o F:\Videows\1.mp4
There are different types of resolutions from time to time, like: 1280X720; 768X432; 720X406; etc.
How I can provide some parameters, so I always download the highest resolutions from the HLS stream.
I have tried something like:
yt-dlp.exe -f "best[height=720]" https://m3u8.xyz/g#.m3u8 --downloader ffmpeg -o F:\Videows\1.mp4
But this command will fail if there is no such resolution stream available to download.
I mean how I can add parameters so I always download the stream with highest resolution available: if 1280X720 is available, then download it, if not then try to download 768X432, etc.
+ Reply to Thread
Results 1 to 6 of 6
Default behaviour for yt-dlp is not the same as youtube-dl, so syntax could be different to get what you need.
Hi, did you manage to do this?