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

Is it possible to use ffmpeg instead for video playback? #1265

Open barracuda156 opened 5 months ago

barracuda156 commented 5 months ago

The issue is that all the rest are broken for older macOS, while ffmpeg works fine (something got broken in v. 6, but hopefully will be fixed; 4 and 5 are known to work).

iamtalhaasghar commented 1 month ago

Please drop details of your operating system & yewtube version info.

barracuda156 commented 1 month ago

@iamtalhaasghar Thank you for responding!

I use 10.6 on PowerPC myself and consider supporting 10.5–10.6 on ppc and x86 (in MacPorts). Ideally we would want to have the latest release of yewtube working on every supported OS. If that is unfeasible at some point, older systems can be pegged to some specific legacy version.

I have seen that in players section there are support files for mpv, mplayer and VLC, which is what I referred to in the issue. Since then I have kinda fixed VLC, but it is not really reliable at the moment. Latests mpv and mplayer are hopelessly broken and respective upstreams not really interested to fix them. Some more or less old versions should work, but I am not sure if those will be compatible. I have noticed there is a generic player template: https://github.com/mps-youtube/yewtube/blob/0c1e39d51f5d4c6e1bea25b72c00900aab991e37/mps_youtube/players/GenericPlayer.py That might work perhaps with QMPlay2 or directly ffmpeg, both of which work fine on PowerPC.

iamtalhaasghar commented 1 month ago

@barracuda156 can you share bug reports what happens if you run a youtube video directly using vlc & mpv? If a youtube video runs fine directly then that would mean something is not right with yewtube and i can investigate the issue further. But if the video doesn't work directly with vlc or mpv then I am afraid I won't be able to help you out much but i will try my best to make yewtube compatible with macos 10.6.

Just open a terminal and do type: mpv <youtube_url>

do the same with vlc as well: vlc <youtube_url> and share results & your observations.

edit: added code to help you out how to run youtube video directly on mpv.