VideoHelp Forum
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. Member
    Join Date
    Sep 2021
    Location
    Valencia
    Search Comp PM
    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,
    Quote Quote  
  2. Member
    Join Date
    Feb 2006
    Location
    United States
    Search Comp PM
    does the url list the formats available ?? use yt-dlp -F URL
    Quote Quote  
  3. yt-dlp -f bestvideo+bestaudio URL
    Quote Quote  
  4. Member
    Join Date
    Sep 2021
    Location
    Valencia
    Search Comp PM
    Hello:
    I found the answer, something like this:
    yt-dlp -S "res:1280" URL
    Quote Quote  
  5. Originally Posted by october262 View Post
    does the url list the formats available ?? use yt-dlp -F 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
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!