antoniy / mpv-youtube-dl-binding

94 stars 20 forks source link

changing video quality? #37

Open kempol opened 7 years ago

kempol commented 7 years ago

can you change the video quality ? i have a slow internet and im used to watching youtube in 480p,

baizon commented 7 years ago

In the options window u can use the Additional player parameters. There you can set the video quality. With youtube-dl --list-formats https://www.youtube.com/watch?v=<videohash> you can get the format codes. An example:

format code  extension  resolution note
249          webm       audio only DASH audio   72k , opus @ 50k, 5.49MiB
250          webm       audio only DASH audio   86k , opus @ 70k, 6.93MiB
171          webm       audio only DASH audio  128k , vorbis@128k, 10.30MiB
140          m4a        audio only DASH audio  132k , m4a_dash container, mp4a.40.2@128k (44100Hz)
251          webm       audio only DASH audio  151k , opus @160k, 12.93MiB
160          mp4        256x144    DASH video  123k , avc1.4d400c, 30fps, video only
278          webm       256x144    144p  130k , webm container, vp9, 30fps, video only, 11.09MiB
133          mp4        426x240    DASH video  285k , avc1.4d4015, 30fps, video only
242          webm       426x240    240p  302k , vp9, 30fps, video only, 23.33MiB
243          webm       640x360    360p  526k , vp9, 30fps, video only, 43.97MiB
134          mp4        640x360    DASH video  639k , avc1.4d401e, 30fps, video only
244          webm       854x480    480p  955k , vp9, 30fps, video only, 78.44MiB
135          mp4        854x480    DASH video 1169k , avc1.4d401f, 30fps, video only
247          webm       1280x720   720p 1835k , vp9, 30fps, video only, 154.76MiB
136          mp4        1280x720   DASH video 2335k , avc1.4d401f, 30fps, video only
248          webm       1920x1080  1080p 3302k , vp9, 30fps, video only, 280.79MiB
137          mp4        1920x1080  DASH video 4544k , avc1.640028, 30fps, video only
17           3gp        176x144    small , mp4v.20.3,  mp4a.40.2@ 24k
36           3gp        320x180    small , mp4v.20.3,  mp4a.40.2
43           webm       640x360    medium , vp8.0,  vorbis@128k
18           mp4        640x360    medium , avc1.42001E,  mp4a.40.2@ 96k
22           mp4        1280x720   hd720 , avc1.64001F,  mp4a.40.2@192k (best)

Then you select the quality. An example for the additional player parameters would be --ytdl-format=134.