Re:Spongebob-CLI – Watch classic spongebob from the terminal
by proxycon on Sunday February 13, 2022 @06:31AM
(#30320997)
bit dissapointing that it doesn't actually render video into the terminal, just launches a video player
[ Parent
| on HN ]
Re:Spongebob-CLI – Watch classic spongebob from the terminal
by ginko on Sunday February 13, 2022 @06:46AM
(#30321084)
Adding "--vo=tct" after "mpv" in the argument list in line 55 of spongebob-cli should do the trick (haven't tested it myself).
https://github.com/trakBan/spongebob-cli/blob/main/spongebob...
edit: yep, works. You might also want to add "--quiet" to get rid of artifacts.
Re:Spongebob-CLI – Watch classic spongebob from the terminal
by factorymoo on Sunday February 13, 2022 @07:21AM
(#30321227)
Linux n00b over here...
apologies for the silly question but I can't seem to make this work
I enter spongebob-cli
Then when it prompts me to enter an episode number, I can't seem to get it to play from within the terminal itself
let's say I want to play episode 1:
1 --mpv --vo=tct --quiet
Doesn't seem to work. Any help to get past this would be greatly appreciated
Re:Spongebob-CLI – Watch classic spongebob from the terminal
by ginko on Sunday February 13, 2022 @07:28AM
(#30321264)
Did you add them as separate strings like this?
subprocess.run(["mpv", "--vo=tct", "--quiet", DirectLink])
Otherwise your terminal may be missing true-color terminal mode or the mpv in your distro doesn't have that output plugin. (You can check with "mpv --vo=help")
Re:Spongebob-CLI – Watch classic spongebob from the terminal
by kkirsche on Sunday February 13, 2022 @05:23PM
(#30326230)
If, like me, you forget where to split the command and arguments, shlex.split in the standard library can split the raw string for you.
Re:Spongebob-CLI – Watch classic spongebob from the terminal
by Doxin on Monday February 14, 2022 @07:29AM
(#30331202)
Rule of thumb is every space, except ones you'd normally put between quotes. so e.g.
foo quix-quiz "bar baz"
turns into ["foo", "quix-quiz", "bar baz"]
Though do note that you don't get an extra set of quotes on "bar baz" which is slightly confusing, but makes sense once you think about it a bit.
Re:Spongebob-CLI – Watch classic spongebob from the terminal
by jhugo on Sunday February 13, 2022 @11:21AM
(#30322793)
You need to edit spongebob-cli to add the arguments to the code where it calls mpv. It sounds like you're just running it and providing the arguments to its prompt.
Re:Spongebob-CLI – Watch classic spongebob from the terminal
by hiccuphippo on Sunday February 13, 2022 @05:47PM
(#30326387)
I remember watching the soccer world cup like that years ago, just connecting with netcat. It received the "video" 5 seconds earlier than my TV.
Re:Spongebob-CLI – Watch classic spongebob from the terminal
by Zhyl on Sunday February 13, 2022 @07:25AM
(#30321251)
Honestly, a terminal based search/browse with media player video would be my ideal replacement for youtube and similar
Re:Spongebob-CLI – Watch classic spongebob from the terminal
by aaaaaaaaata on Sunday February 13, 2022 @11:31AM
(#30322899)
look for projects that use youtube-dl