pi-apps icon indicating copy to clipboard operation
pi-apps copied to clipboard

App request for pipe-viewer - TUI youtube player

Open ItsTerm1n4l opened this issue 1 year ago • 6 comments

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

  • [X] I have confirmed that this app is legal and not piracy.
  • [X] I have read the app eligibilty rubric https://github.com/Botspot/pi-apps/issues/185 and confirmed this app is suitable for addition in Pi-Apps.
  • [X] I have confirmed that this app has never been discussed in https://github.com/Botspot/pi-apps/issues and https://github.com/Botspot/pi-apps/pulls, and it is not in the Pi-Apps app list.
  • [X] I have confirmed that this app can run on Raspberry Pi.

ItsTerm1n4l avatar May 16 '23 14:05 ItsTerm1n4l

@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 avatar May 16 '23 14:05 theofficialgman

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

theofficialgman avatar May 16 '23 14:05 theofficialgman

@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?

Botspot avatar May 16 '23 14:05 Botspot

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 avatar May 16 '23 15:05 ItsTerm1n4l

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 avatar May 16 '23 15:05 ItsTerm1n4l

what do you guys think?

ItsTerm1n4l avatar Jun 09 '23 11:06 ItsTerm1n4l