youtube-viewer won't play videos

57 respostas [Última entrada]
GrevenGull
Desconectado
Joined: 12/18/2017

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".

SuperTramp83

I am a translator!

Desconectado
Joined: 10/31/2014

An easy and efficient way to search, browse, download and view youtube vids is you use mps-youtube.

https://github.com/mps-youtube/mps-youtube

Time4Tea
Desconectado
Joined: 07/16/2017

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.

chaosmonk

I am a member!

I am a translator!

Desconectado
Joined: 07/07/2017

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.

Time4Tea
Desconectado
Joined: 07/16/2017

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?

GrevenGull
Desconectado
Joined: 12/18/2017

Hm, I think I'll try to mainly stick to applications that are obtainable through repo or package manager for now :) thanks though!

chaosmonk

I am a member!

I am a translator!

Desconectado
Joined: 07/07/2017

It is in the repo.$ sudo apt install mps-youtube

It has a cli. Start it with$ mpsytset its video player to vlc with> set player vlcsearch for 'query' with> .queryand play the nth result with> n

GrevenGull
Desconectado
Joined: 12/18/2017

Hmm, I got "E: Unable to locate package" when I tried installing it through LXTerminal

chaosmonk

I am a member!

I am a translator!

Desconectado
Joined: 07/07/2017

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

GrevenGull
Desconectado
Joined: 12/18/2017

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

snapshot3.png
chaosmonk

I am a member!

I am a translator!

Desconectado
Joined: 07/07/2017

It could be that you're using Python 2 and mps-youtube expects 3. Install Python 3

$ sudo apt install python3

and try again.

GrevenGull
Desconectado
Joined: 12/18/2017

Did that and got this (see screenshot)

than I tried again to search and play.

And it opened in VLC after I gave it permission, but it was only audio :/

chaosmonk

I am a member!

I am a translator!

Desconectado
Joined: 07/07/2017

I think you forgot to attach the screenshot.

GrevenGull
Desconectado
Joined: 12/18/2017

oops

snapshot8.png
chaosmonk

I am a member!

I am a translator!

Desconectado
Joined: 07/07/2017

Okay, that means you already had Python 3 installed.

Try switching to a different player with > set player name-of-the-player

Repeat until one of them works or you've tried all of the players you have installed. I'm running out of ideas.

SuperTramp83

I am a translator!

Desconectado
Joined: 10/31/2014

>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

chaosmonk

I am a member!

I am a translator!

Desconectado
Joined: 07/07/2017

I see, thanks.

chaosmonk

I am a member!

I am a translator!

Desconectado
Joined: 07/07/2017

If you still want to try to get youtube-viewer working, run it from a terminal$ gtk-youtube-viewerattempt to play a video, and copy/paste any errors you get here.

GrevenGull
Desconectado
Joined: 12/18/2017

Can I ask how you get those nice yellow boxes in your comments that you use to highlight terminal commands?

chaosmonk

I am a member!

I am a translator!

Desconectado
Joined: 07/07/2017

[code]this is code[/code]

Change '[' and ']' to '<' and '>' and you get

this is code

GrevenGull
Desconectado
Joined: 12/18/2017

awesome! :D

GrevenGull
Desconectado
Joined: 12/18/2017

So I dud all the steps over again and after the terminal had worked long and hard at the "sudo apt upgrade" command it showed this thing as attached screenshot, what does this actually mean and what do you recommend here?

snapshot4.png
SuperTramp83

I am a translator!

Desconectado
Joined: 10/31/2014

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..

GrevenGull
Desconectado
Joined: 12/18/2017

So I was asking for a recommendation in regards to get the youtube-viewer up and running :)

SuperTramp83

I am a translator!

Desconectado
Joined: 10/31/2014

hehe, but I still have no idea what youtube-viewer is.. :P

GrevenGull
Desconectado
Joined: 12/18/2017

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 :)

chaosmonk

I am a member!

I am a translator!

Desconectado
Joined: 07/07/2017

Your question about the grub config file was unrelated to youtube-viewer.

GrevenGull
Desconectado
Joined: 12/18/2017

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.

chaosmonk

I am a member!

I am a translator!

Desconectado
Joined: 07/07/2017

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

GrevenGull
Desconectado
Joined: 12/18/2017

Gotcha!

I typed that and got this (see screenshot)

snapshot7.png
chaosmonk

I am a member!

I am a translator!

Desconectado
Joined: 07/07/2017

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

GrevenGull
Desconectado
Joined: 12/18/2017

So I did that and tried to run youtube-viewer from terminal again, and it didn't work :/

chaosmonk

I am a member!

I am a translator!

Desconectado
Joined: 07/07/2017

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.

GrevenGull
Desconectado
Joined: 12/18/2017

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

loldier
Desconectado
Joined: 02/17/2016

Go with the default Trisquel DE.

Install mpv

sudo apt install mpv

Then launch mvp with URL (links to a Trisquel video on Youtube)

mpv https://youtu.be/tIecaLF_-x4

Or install youtube-dl.

sudo apt install youtube-dl

And download most videos.

youtube-dl https://youtu.be/tIecaLF_-x4

youtube_dl.png
GrevenGull
Desconectado
Joined: 12/18/2017

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

loldier
Desconectado
Joined: 02/17/2016

Search, right-click get URL (link location). Or Youtube video, copy link.

Basically, just like you would find any other URL or website.

search.png get_url.png
GrevenGull
Desconectado
Joined: 12/18/2017

What's the point then if I have to go to youtube.com to get the url?

loldier
Desconectado
Joined: 02/17/2016

What's the point going to Youtube? I dunno. You decide. I gave an option to watch it out of the browser and download, all on your own volition. I thought you had trouble watching vids.

I search DuckDuckGo to grab the URL. I rarely go to the Youtube web page.

trisquel.png
GrevenGull
Desconectado
Joined: 12/18/2017

I see! :) cheers m8! I misunderstood your message, pardon.

chaosmonk

I am a member!

I am a translator!

Desconectado
Joined: 07/07/2017

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.

loldier
Desconectado
Joined: 02/17/2016
chaosmonk

I am a member!

I am a translator!

Desconectado
Joined: 07/07/2017

Startpage appears to be fully functional without JavaScript. Cool!

davidpgil
Desconectado
Joined: 08/26/2015

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

GrevenGull
Desconectado
Joined: 12/18/2017

Nice!

GrevenGull
Desconectado
Joined: 12/18/2017

Btw, on StartPage.com it says "enhanced by Google". What does that mean? Are they some sort of daughter company?

Magic Banana

I am a member!

I am a translator!

Desconectado
Joined: 07/24/2010

[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

GrevenGull
Desconectado
Joined: 12/18/2017

Cheers m8

Ignacio.Agullo
Desconectado
Joined: 09/29/2009

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

GrevenGull
Desconectado
Joined: 12/18/2017

Yeah, I had no luck with minitube either :/

chaosmonk

I am a member!

I am a translator!

Desconectado
Joined: 07/07/2017

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