youtube-viewer won't play videos
- Anmelden oder Registrieren um Kommentare zu schreiben
So I installed the gtk-youtube-viewer, some of you might remember from previous posts.
It won't play videos, either when I double click, right click down to "video" and then "play" nor when I "play in terminal".
An easy and efficient way to search, browse, download and view youtube vids is you use mps-youtube.
I don't seem to be able to stream vids with mps-youtube and I'm not quite sure what the problem is. Downloading and playing videos separately with mpv works fine. When I try to stream, I get a bunch of Python errors. I've tried re-installing the Python packages that seem relevant, but it didn't help.
Did you already set mps-youtube's default player to mpv with> set player mpv
? If so, try a different player. When I tried mpv I only got audio, no video. I then tried vlc which worked.
Yes, I have done that. I also tried smplayer and that didn't work for streaming either. Actually, when I try to stream, some sort of error flashes past on the input line, but it's so quick I can't read it. Is there some way I can output that, or does it get logged somewhere?
Hm, I think I'll try to mainly stick to applications that are obtainable through repo or package manager for now :) thanks though!
It is in the repo.$ sudo apt install mps-youtube
It has a cli. Start it with$ mpsyt
set its video player to vlc with> set player vlc
search for 'query' with> .query
and play the nth result with> n
Hmm, I got "E: Unable to locate package" when I tried installing it through LXTerminal
Okay, assuming you typed it correctly it might only be in the Trisquel 8 repo. You might have to install it via pip as suggested, but it really isn't too hard.
$ sudo apt install python3-pip
$ sudo pip3 install mps-youtube
Then follow the instructions in my previous comment starting with$ mpsyt
awesome, it worked all the way till I was typing 1 and enter to play the first video.
Screenshot of the last bit of the terminal output
It could be that you're using Python 2 and mps-youtube expects 3. Install Python 3
$ sudo apt install python3
and try again.
>sudo pip3 install mps-youtube
giving sudo is absolutely not necessary. Recent versions of pip without sudo will just rightly assume we want to do a local installation, which requires us giving no root privileges to nothing.. files will get written in .local. A .bashrc line to include such path will also be added automagically. If not, if you are on an older version, just use the option '--user' and add the path to .bashrc
I see, thanks.
If you still want to try to get youtube-viewer working, run it from a terminal$ gtk-youtube-viewer
attempt to play a video, and copy/paste any errors you get here.
Can I ask how you get those nice yellow boxes in your comments that you use to highlight terminal commands?
[code]this is code[/code]
Change '[' and ']' to '<' and '>' and you get
this is code
awesome! :D
The message is saying that you have a manually modified grub configuration file. In the past you made a change, you added something probably. Now the new version of the package associated with such configuration file is asking you if you want it to overwrite the file you modified or keep it.
To keep it - keep..
to overwrite it - install..
So I was asking for a recommendation in regards to get the youtube-viewer up and running :)
hehe, but I still have no idea what youtube-viewer is.. :P
It's supposed to be a GUI thingy where you can search, browse, download and stream youtube videos according to mason.
But I am struggling to get the streaming part going. But I was able to download a video and play it in VLC, so I got that goin' for me, which is nice :)
Your question about the grub config file was unrelated to youtube-viewer.
Oh yeah, I can see why this is getting confusing when I'm jumping from thread to thread like this.
I was referring to your guidance in installing the youtube-viewer where you mention in this comment:
https://trisquel.info/en/forum/custom-building-and-water-cooling-free-world#comment-125063
that I should:
1. $ sudo add-apt-repository ppa:nilarimogard/webupd8
2. $ sudo apt update
3. $ sudo apt install youtube-viewer
4. $ sudo apt upgrade
I'm sorry about the jumping from thread to thread and hastily creating new posts.
To clarify, 'apt update' updates the repository to see if upgrades are available. 'apt upgrade' installs any available upgrades.
In the comment you refer to, I suggested running both commands because you had already installed youtube-viewer and I wasn't sure if it was the latest version. Here, ran 'apt-update' before installing youtube-viewer, so it was already the latest version.
Running 'apt upgrade' installs all upgrades for programs you have installed, not just youtube-viewer, which is why you might get message related to other upgrades, like the grub config file.
youtube-viewer has some recommended and suggested packages. It's generally not a good idea to install all of them because you might end with a bunch of crap you don't need, but it's possible that I have one installed that you don't and that is why it works for me and not you, so let's install the ones I have installed and see if that helps.
$ sudo apt install liblwp-useragent-chicaching-perl liblwp-protocol-https-perl libtext-charwidth-perl libterm-readkey-perl libencode-perl mpv vlc wget
Hm. Perhaps this package is not in the Trisquel 7 repo. I don't know if that's the problem because I don't know what the package does. Let's remove that one from the list of packages we are installing and see if we can install everything else.
$ sudo apt install liblwp-protocol-https-perl libtext-charwidth-perl libterm-readkey-perl libencode-perl mpv vlc wget
So I did that and tried to run youtube-viewer from terminal again, and it didn't work :/
Sorry, I'm running out of ideas. I've had no problems with youtube-viewer in Trisquel 8 and never used it in Trisquel 7.
For now, you could just use gtk-youtube-viewer for searching, right click on the video you want to play, select 'more details', copy the URL and paste it into vlc.
Thank you anyway for all the help and guidance, much appreciated!:)
I tried copying the url into the "open network stream" in vlc, and then I got this message again "insecure something" and I had two options again, either to "check verification" or something and "abort". And then only the audio of the video starting playing again, like had happened before. But then something new happened. The whole pc kinda froze, it didn't completely freeze. I could move the mouse, and I could enter ctrl+alt+F1, but when I got there it was just ouputting lines and lines and lines of text and I couldn't do any commands. So I forced my pc to shut down, and when I turned it back on I couldn't use Midori browser again. So I guess it's time to wipe hard disk and reinstall again :P a man's gotta do what a man's gotta do, right? :P
Cool! Both of those methods worked like a charm :)
Only problem with this method is, how do I browse to know what url I want ? :P
What's the point then if I have to go to youtube.com to get the url?
I see! :) cheers m8! I misunderstood your message, pardon.
The JavaScript version of DuckDuckGo is non-free, and the HTML version does not have video search feature.
YouTube's JavaScript is also non-free.
If you use StartPage.com , do a search by video and there is a copy link option on any video you click on. Paste that link in and your golden. No need to go to Youtube.
> -------- Original Message --------
> Subject: Re: [Trisquel-users] youtube-viewer won't play videos
> Local Time: December 30, 2017 5:39 AM
> UTC Time: December 30, 2017 10:39 AM
> From: name at domain
> To: name at domain
>
> Cool! Both of those methods worked like a charm :)
>
> Only problem with this method is, how do I browse to know what url I want ?
> :P
Nice!
Btw, on StartPage.com it says "enhanced by Google". What does that mean? Are they some sort of daughter company?
[StartPage] fetches results from the Google search engine. This is done without saving the users' IP addresses or giving any personal user information to Google's servers.
https://en.wikipedia.org/wiki/Ixquick#Startpage.com
Cheers m8
On 30/12/17 11:15, wrote:
> mpv https://youtu.be/tIecaLF_-x4
Sought in the Trisquell Install/Remove menu, found the desktop
application "Minitube" which claims to show YouTube videos and thus
seemed to be the easiest way to watch them, installed it, opened it...
but I tried to enter a keyword, I got this result:
Error downloading
http://gdata.youtube.com/feeds/api/videos/?v=2&max-results=10&start-index=1&q=free%20software
- server replied: Gone
--
Ignacio Agulló · name at domain
Yeah, I had no luck with minitube either :/
Minitube no longer works unless it is compiled with a Google API key that you can only get with a Google account and would presumably identify you to Google every time you watch a video with your build.
If you have a 64-bit machine with Debian or Trisquel you could try the binaries from the developer, which I guess if it works must use his own key. https://flavio.tordini.org/minitube
- Anmelden oder Registrieren um Kommentare zu schreiben