Oh not THAT gimp
His source is way too open…
…and all of a sudden I’m slightly worried that I’ll mix up my favourite forums.
More impressive - it works with a Thai song I hardly knew - an untagged headache that Picard wouldn’t touch.
ไม่มีความรัก - Slot Machine - ไม่มีความรัก - Single
Truly amazing!!!
I fail to see the resemblance.
pipe-viewer
a powerful, lightweight, highly configurable CLI1 YouTube client with tons of advanced features, written in Perl. Lets you to search, play (using your favourite media player, like mpv
, smplayer
, etc…), and download (using youtube-dl
) YouTube videos from your favourite terminal emulator.
Written by the author of trizen
, a popular AUR helper.
This is an experimental fork of youtube-viewer by the same author, with the added support for invidio.us interface as well as parsing the youtube website directly, therefore not requiring a youtube API key.
Installation
It’s available from the AUR: https://aur.archlinux.org/packages/pipe-viewer-git/
Official git page: https://github.com/trizen/pipe-viewer
Some final notes
I highly recommend installing the following optional dependencies: perl-term-readline-gnu
and perl-unicode-linebreak
for a much better experience (in addition to the standard ffmpeg
, and mpv
). Also, the documentation is really well-written and concise, so I recommend RTFM (man pipe-viewer
) as well as running pipe-viewer -h
for help.
If you’re like me and use SMPlayer, apply this change to the config file (~/.config/pipe-viewer/pipe-viewer.conf
):
video_player_selected => "smplayer",
video_players => {
smplayer => {
arg => "-close-at-end -media-title *TITLE* *URL*",
cmd => "/usr/bin/smplayer",
fs => "-fullscreen",
srt => "-sub *SUB*",
},
},
The default config file includes settings for mpv
and VLC. If you’re using some other media player, you’ll have to figure out the settings for it. It’s fairly straightforward if you know how to use your media player from the CLI.
1 It also has an optional GTK+ GUI, but GUI is bloat
Just tried this and it works fine under the default, but I get the below then adding your edit. Can you please take a look? Thanks
[alienprober@TheMothership ~]$ pipe-viewer
Unmatched right curly bracket at /home/alienprober/.config/pipe-viewer/pipe-viewer.
conf line 90, at end of line
syntax error at /home/alienprober/.config/pipe-viewer/pipe-viewer.conf line 90, nea
r "}"
Unmatched right curly bracket at /home/alienprober/.config/pipe-viewer/pipe-viewer.
conf line 101, at end of line
Compilation failed in require at /usr/bin/pipe-viewer line 410.
[alienprober@TheMothership ~]$
Edited:
https://mega.nz/file/1gISFBJS#ChiaJgel3pO1OYhRJhTiXHxKe60RcQ4VPXBZOCiVBO4
Not edited:
https://mega.nz/file/w4wnxKjB#SIqSE92GWG0wQGrIkjfsJSE84OfsR1wQWG1mf4714bg
This section:
video_players => {
smplayer => {
arg => "-close-at-end -media-title *TITLE* *URL*",
cmd => "/usr/bin/smplayer",
fs => "-fullscreen",
srt => "-sub *SUB*",
},
},
arg => "--quiet --play-and-exit --no-video-title-show --input-title-format=*TITLE* *VIDEO*",
audio => "--input-slave=*AUDIO*",
cmd => "vlc",
fs => "--fullscreen",
novideo => "--intf=dummy --novideo",
srt => "--sub-file=*SUB*",
},
},
It goes:
Video player (smplayer) > args > cmd > fs > srt,
then args > cmd > fs > srt (NO VIDEO PLAYER)
So add a videoplayer???
video_players => {
smplayer => {
arg => "-close-at-end -media-title *TITLE* *URL*",
cmd => "/usr/bin/smplayer",
fs => "-fullscreen",
srt => "-sub *SUB*",
},
vlc => {
arg => "--quiet --play-and-exit --no-video-title-show --input-title-format=*TITLE* *VIDEO*",
audio => "--input-slave=*AUDIO*",
cmd => "vlc",
fs => "--fullscreen",
novideo => "--intf=dummy --novideo",
srt => "--sub-file=*SUB*",
},
},
Example.
OK it launches with that, but after I select a number it goes right back to “Select one or more videos to play (:h for help)”. With the default file it launches the video just fine.
alienprober@TheMothership ~]$ pipe-viewer
=>> Search for YouTube videos (:h for help)
> stay the night
1. Zedd - Stay The Night ft. Hayley Williams (Official Music Video) (by Zedd) [03:37]
2. Benjamin Orr - Stay the Night (Official Music Video) (by RHINO) [04:28]
3. Chicago - Stay The Night (Official Music Video) (by Chicago Band) [04:31]
4. Zedd Stay The Night Lyrics ft Hayley Williams (by Lyrics) [03:38]
5. Stay the Night (2006 Remaster) (by Chicago Band) [03:47]
6. Zedd - Stay The Night ft. Hayley Williams of Paramore (Acoustic from iTunes Session) (by Zedd) [03:21]
7. Stay The Night (by Mariah Carey) [03:58]
8. James Blunt - Stay The Night [OFFICIAL MUSIC VIDEO] (by James Blunt) [03:49]
9. Chicago - Stay The Night (by Chicago Infinity) [03:49]
10. IMx - Stay The Night (by IMxVEVO) [04:19]
11. Kyle Dion - Stay The Night [Official Audio] (by Kyle Dion) [03:41]
12. Green Day: "Stay The Night" - [Official Video] (by Green Day) [04:39]
13. The Internet - Stay the Night (Official Audio) (by The Internet) [04:24]
14. Only getting to stay home for the night (by SouthGeorgiaHotShot) [19:36]
15. Stay the Night (by Green Day) [04:37]
16. Billy Ocean - Stay the Night (Official Audio) (by Billy Ocean) [03:13]
17. Just Kiddin x Camden Cox - Stay The Night (by 3 Beat) [02:47]
18. Nightcore - Stay the Night (by NightcoreReality) [03:05]
19. Mariah Carey - Stay The Night (by dm) [03:58]
20. Zedd Ft. Daya, Alessia Cara, Hailee Steinfeld Stay The Night & Clarity 2016 Nickelodeon Halo Awards (by Hailee Steinfeld Vietnam) [04:28]
=>> Select one or more videos to play (:h for help)
> 9
=> Description
-----------------------------------------------------------------------------------
Chicago - Stay The Night by Chicago Infinity 5 years ago 3 minutes, 49
seconds 110,109 views
-----------------------------------------------------------------------------------
=> URL: https://www.youtube.com/watch?v=qLOG0z0EuVc
-----------------------------------------------------------------------------------
=>> Chicago - Stay The Night <<=
-> Channel : Chicago Infinity
-> ChannelID : UCysXpABNF80R8mPebOlRSJQ
-> VideoID : qLOG0z0EuVc
-> Duration : 03:49
-> Views : 110,109
-> Published : 5 years ago
-----------------------------------------------------------------------------------
Use of uninitialized value in join or string at /usr/bin/pipe-viewer line 3354.
sh: line 1: https://r5---sn-nx57ynld.googlevideo.com/videoplayback?expire=1609544297&ei=CV7vX4k0zLWTBrfmp-gM&ip=2601%3A1c2%3A1700%3Abdc0%3A0%3A0%3A0%3Abe6e&id=o-AG29wX_4pwLUa_aWPcdGH_eWA5jH-x2RTwdZswb7z0jF&itag=248&aitags=134%2C137%2C242%2C243%2C244%2C247%2C248%2C278&source=youtube&requiressl=yes&mh=Cr&mm=31%2C26&mn=sn-nx57ynld%2Csn-n4v7sn7z&ms=au%2Conr&mv=m&mvi=5&pl=31&initcwndbps=1917500&vprv=1&mime=video%2Fwebm&ns=kO2nXFB6eVm8w8H60-rTkX0F&gir=yes&clen=13438841&dur=228.027&lmt=1535631741700979&mt=1609522360&fvip=5&keepalive=yes&c=WEB&n=2wwGx2UGPvJ7WW2l&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgLWXqf_RR0CXplRYKej8-qweZ_63EUq1rVq-7tecNeNwCIQC2G5TMDXKQGQLTuxYb0wHvM6z7FHzNFbl5utHWe6riXw%3D%3D&sig=AOq0QJ8wRgIhAOfvxCQGbSJLBTyZsxLTQzLLIreWvGA5ZGKXIssBAa9WAiEAmOgWst7_tuXsqG4QhP8oiRcrXZFCIdOMJhRw9mAOT3I=&ratebypass=yes: No such file or directory
1. Zedd - Stay The Night ft. Hayley Williams (Official Music Video) (by Zedd) [03:37]
2. Benjamin Orr - Stay the Night (Official Music Video) (by RHINO) [04:28]
3. Chicago - Stay The Night (Official Music Video) (by Chicago Band) [04:31]
4. Zedd Stay The Night Lyrics ft Hayley Williams (by Lyrics) [03:38]
5. Stay the Night (2006 Remaster) (by Chicago Band) [03:47]
6. Zedd - Stay The Night ft. Hayley Williams of Paramore (Acoustic from iTunes Session) (by Zedd) [03:21]
7. Stay The Night (by Mariah Carey) [03:58]
8. James Blunt - Stay The Night [OFFICIAL MUSIC VIDEO] (by James Blunt) [03:49]
9. Chicago - Stay The Night (by Chicago Infinity) [03:49]
10. IMx - Stay The Night (by IMxVEVO) [04:19]
11. Kyle Dion - Stay The Night [Official Audio] (by Kyle Dion) [03:41]
12. Green Day: "Stay The Night" - [Official Video] (by Green Day) [04:39]
13. The Internet - Stay the Night (Official Audio) (by The Internet) [04:24]
14. Only getting to stay home for the night (by SouthGeorgiaHotShot) [19:36]
15. Stay the Night (by Green Day) [04:37]
16. Billy Ocean - Stay the Night (Official Audio) (by Billy Ocean) [03:13]
17. Just Kiddin x Camden Cox - Stay The Night (by 3 Beat) [02:47]
18. Nightcore - Stay the Night (by NightcoreReality) [03:05]
19. Mariah Carey - Stay The Night (by dm) [03:58]
20. Zedd Ft. Daya, Alessia Cara, Hailee Steinfeld Stay The Night & Clarity 2016 Nickelodeon Halo Awards (by Hailee Steinfeld Vietnam) [04:28]
=>> Select one or more videos to play (:h for help)
>
No idea, don’t watch youtube so it is of no use to me.
Got it was missing the very first line. Thanks you did actually help, much appreciated.
video_player_selected => "smplayer",
video_players => {
smplayer => {
arg => "-close-at-end -media-title *TITLE* *URL*",
cmd => "/usr/bin/smplayer",
fs => "-fullscreen",
srt => "-sub *SUB*",
},
vlc => {
arg => "--quiet --play-and-exit --no-video-title-show --input-title-format=*TITLE* *VIDEO*",
audio => "--input-slave=*AUDIO*",
cmd => "vlc",
fs => "--fullscreen",
novideo => "--intf=dummy --novideo",
srt => "--sub-file=*SUB*",
},
},
movie-cli, movie info in your terminal:
I just recently found kdiskmark. Basically QT clone of CrystalDiskMark. I’m enjoying benchmarking with pretty gui all my drives today…
Here’s the fairly low performance (for NVMe) 2230 drive that came in my Latitude 7410 2-in-1.
Cool numbers … but … it’s pink.
Well, yeah, pink’s sexy!!
And then enjoy benchmarking your pretty drives all tomorrow I use HD Sentinel on mine, fancy plotted graphs look very clever.
Not sure how unknown it is (probably not), but I find CherryTree to be a great note taking / organizing app.
Very customizable and lightweight.
This app has been mentioned on this forum in discussions about decentralized platforms, but given today’s corporate censorship and to garnish some support, I want to list it here.
LBRY
Alternative to: YouTube
Features: Open Source, Decentralized, Blockchain
Self-host: No
At the core, LBRY is a blockchain based decentralization protocol. On top of that protocol, you get a digital marketplace powered by its own cryptocurrency.
Though LBRY allows creators to offer l kind of digital content like movies, books and games, it is essentially promoted as an YouTube alternative.
You can find LBRY in AUR. It is a nice app, and content is slowly developing. I think we will see a bigger push to decentralized platforms going forward, as Big Brother pushes us all into censorship-free crevices.
I spend most of my time in the terminal. I also dislike file indexing services like baloo
. Thus, when I misplace a file, I look for it the usual way: using the find
utility.
Now, find
is a good program, but I was never completely satisfied with it. First, it is bloated1 with features I never use and rather slow. Second, its command arguments syntax is, to put it mildly, insane. Contrary to most other GNU utilities, the order of options matters, and long options are written with only one dash (-name
instead of --name
). This is inconsistent and drives me nuts.
Luckily, there exists a great replacement for the default find
command. Introducing:
fd
A simple, fast and user-friendly alternative to find
. Its main features that make it better than the find
utility:
- considerably faster
- mostly sensible syntax (no need for
-iname
, etc…) - TWO FEWER CHARACTERS TO TYPE!!!1!
It is in the community
repo, so just install it with
sudo pacman -S fd
Official github, with detailed readme and benchmarks:
https://github.com/sharkdp/fd
Oh yeah, and it’s written in Rust, so you get extra hipster points for using it
1 The manpage for find
is 1427 lines long and contains 11292 words. That, ladies and gentlemen, is bloat.
Glad you asked! fd
integrates well with fzf
and can be used as its backend, for even faster searching.