Botspot / pi-apps

Raspberry Pi App Store for Open Source Projects
GNU General Public License v3.0
1.93k stars 207 forks source link

App request for pipe-viewer - TUI youtube player #2328

Open ItsTerm1n4l opened 1 year ago

ItsTerm1n4l commented 1 year ago

What is the name of the app?

pipe-viewer

(Optional) Where is the app hosted?

https://github.com/trizen/pipe-viewer

About the app

pipe-viewer is a command line (and gtk) tool for playing youtube videos, it has playlist, no-video, and queueing support. it uses mpv or vlc to play videos.

pipe-viewer is a great program i have tested raspberry pi 4 and while it is fairly easy to install i think a pi-apps installer would be really helpful and would love to see created.

Thank you for your great work!

Confirmations

theofficialgman commented 1 year ago

@ItsTerm1n4l can you please explain what the difference is between the two projects both being updated and seem very similar by trizen. https://github.com/trizen/youtube-viewer https://github.com/trizen/pipe-viewer

I don't really understand but trizen states that pipe-viewer is a fork straw-viewer which itself was a fork of youtube-viewer. yet straw-viewer is deprecated (archived on github) and both pipe-viewer and straw-viewer are active

You opened an issue on pi-apps already for trizen's youtube-viewer but it was closed due to needing a youtube api key

https://github.com/Botspot/pi-apps/issues/2296 https://github.com/trizen/youtube-viewer

theofficialgman commented 1 year ago

ah I see. pipe-viewer parses the youtube website for its information youtube-viewer uses the youtube-api and hence needs a api key

Botspot commented 1 year ago

@ItsTerm1n4l, you may not know the answer to this question, but is there a way to force a lower resolution when playing the video? I was able to search and play a YT video using pipe-viewer without issue, but the mpv player spends more time loading than it spends playing. It is around 20 seconds of load time for every 5 seconds of playback. For obvious reasons, this is not ideal. Is there a simple way to reduce the video resolution so that it plays smoother?

ItsTerm1n4l commented 1 year ago

Sry for the late response, @theofficialgman The difference between pipe-viewer and youtube-viewer is that pipe-viewer doesnt need an API key whereas youtube-viewer does.
@Botspot yes you can reduce the video resolution or just play the audio, you can configure this in the config file (I had to add .txt to upload it) if you want to only stream audio you need to use the -n switch
youtube-viewer -n

ItsTerm1n4l commented 1 year ago

This is interesting though because I have used youtube-viewer with video without a lower resolution with mpv on my Raspberry Pi 4 and not issues.

@ItsTerm1n4l, you may not know the answer to this question, but is there a way to force a lower resolution when playing the video? I was able to search and play a YT video using pipe-viewer without issue, but the mpv player spends more time loading than it spends playing. It is around 20 seconds of load time for every 5 seconds of playback. For obvious reasons, this is not ideal. Is there a simple way to reduce the video resolution so that it plays smoother?

I usually just stream audio in the background which it can do fine because it is so fast and lightweight.

ItsTerm1n4l commented 1 year ago

what do you guys think?