+ Reply to Thread
Results 1 to 5 of 5

Thread: How to always download the highest resolution M3U8 links?

  1. #1
    Member
    Join Date
    Sep 2021
    Location
    Valencia
    Posts
    88

    How to always download the highest resolution M3U8 links?

    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. #2
    Member
    Join Date
    Feb 2006
    Location
    United States
    Posts
    2,844

    Re: How to always download the highest resolution M3U8 links?

    does the url list the formats available ?? use yt-dlp -F URL
    Quote Quote  

  3. #3
    Member LZAA's Avatar
    Join Date
    Dec 2017
    Posts
    1,978

    Re: How to always download the highest resolution M3U8 links?

    yt-dlp -f bestvideo+bestaudio URL
    Quote Quote  

  4. #4
    Member
    Join Date
    Sep 2021
    Location
    Valencia
    Posts
    88

    Re: How to always download the highest resolution M3U8 links?

    Hello:
    I found the answer, something like this:
    yt-dlp -S "res:1280" URL
    Quote Quote  

  5. #5
    Banned
    Join Date
    Aug 2018
    Posts
    755

    Re: How to always download the highest resolution M3U8 links?

    Quote 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  

+ Reply to Thread

Similar Threads

  1. [francetelevisions.fr] Can play/record M3U8 links, but not "HLS_V5" links
    By abolibibelot in forum Video Streaming Downloading
    Replies: 5
    Last Post: 17th Jul 2020, 15:14
  2. [pluzz] Retrieve JSON or M3U8 links when streams availibility has expired
    By abolibibelot in forum Video Streaming Downloading
    Replies: 1
    Last Post: 7th Jul 2020, 07:06
  3. AdultSwim m3u8 links for Rick and Morty
    By brywin in forum Video Streaming Downloading
    Replies: 3
    Last Post: 25th May 2020, 21:29
  4. Best way to download U Tube videos at highest quality?
    By Canon GL-2 Guy in forum Newbie / General discussions
    Replies: 5
    Last Post: 27th Sep 2018, 08:09
  5. Download m3u8
    By quekkiefly in forum Video Streaming Downloading
    Replies: 0
    Last Post: 12th Jan 2017, 06:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts