does the url list the formats available ?? use yt-dlp -F URL
Hello:
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.
Please advise!
Thanks,
does the url list the formats available ?? use yt-dlp -F URL
yt-dlp -f bestvideo+bestaudio URL
Hello:
I found the answer, something like this:
yt-dlp -S "res:1280" URL
Yes, do this and post results.
Default behaviour for yt-dlp is not the same as youtube-dl, so syntax could be different to get what you need.
https://github.com/yt-dlp/yt-dlp#differences-in-default-behavior