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.14k stars 643 forks source link

Implemented option to pipe url directly to mpv #1284

Open thatonearchguy opened 3 months ago

thatonearchguy commented 3 months ago

Hi!

Thanks for this project, it's been of great use on my ancient 2007 Macbook Pro - I can use mpv with --hwdec and --vo flags to get hardware accelerated video playback, which on a 17 year old CPU is a very welcome help.

However I was running into the 640x360 issue as in #942, so I decided to write this little patch to allow the URL to be piped directly to mpv and the --ytdl-format player args to be used to control the output instead (in my case limiting the resolution to 720p as the GPU runs out of VRAM)

Happy to make any changes needed (what default values would you suggest setting for the stream dict?)

barracuda156 commented 2 weeks ago

@thatonearchguy Is it possible to support custom players? I would like to use QMPlay2 for video output, and have the same issue with only low-res video playing.