Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Choose YouTube videos quality in IINA?

Tags:

youtube-dl

IINA is a good player. You can even play videos from YouTube (via youtube-dl) But how to choose videos quality?

By default youtube-dl uses best possible quality. If video is 4K – you'll get 4K. Sometimes it is overkill for notebooks.

like image 300
ckesc Avatar asked Dec 26 '17 12:12

ckesc


People also ask

How do I restrict YouTube quality?

Change the resolution of the video you're watching by clicking the gear icon and selecting a setting. Choose from 1080p, 720p, 480p, 360p, 240p and 144p. You cannot choose a high-definition setting if the video you are watching was uploaded in standard definition.


1 Answers

You can configure youtube-dl inside of IINA.

IINA settings page 2020

To set up max qulity of youtube videos:

  1. Go to Settings / Network / Youtube-dl

  2. Write in Raw options section

    format="bestvideo[height<=?1440]+bestaudio/best[height<=?1440]"

    Where 1440 is maximum height that you want (it equals to 1440p).

    This parameter tells player:

    • bestvideo[height<=?1440] — to pick best video up to width=1440px

    • +bestaudio — mix it with best audio available in source.

    • /best[height<=?1440] — if something goes wrong - take just best video&audio pair (under 1440px of height)

  3. Restart IINA


You can view more details about format selction in youtube-dldocumentation

Also you can read documentation for IINA & youtube-dl

like image 178
ckesc Avatar answered Sep 24 '22 17:09

ckesc