mps-youtube / yewtube

yewtube, forked from mps-youtube , is a Terminal based YouTube player and downloader. No Youtube API key required.
GNU General Public License v3.0
8.12k stars 642 forks source link

Force mps-youtube to use a stream with specific encoding #1003

Closed yamsu closed 5 years ago

yamsu commented 5 years ago

Is there a way to make mps-youtube get a H264 encoded stream from youtube. There is a plugin that provides this feature on Chrome called H264ify.

Issue / Suggestion

This would be useful for many users that use Graphics H/W acceleration with mpv. However, acceleration is limited to MPEG2 H264 decoding on many intel based graphics card, which majority of users are stuck with especially with laptops. By default youtube provides Vo9/Vo8 encoding for many videos and barring high end graphics cards there is not HW acceleration for this kind of encoding.

Already mps-youtube does this kind of thing through the download menu, where one can select for all the possible stream type available with youtube. Hence, we only need such a option while we play a video but selecting the video number. If there is a default preferred encoding than its even better.

Your Environment

yamsu commented 5 years ago

The option set video_format=mp4 already takes care of this requirement. Thanks, mps-youtube is really good.