(Trisquel Mini) Loading/buffering into eternity when selecting SMPlayer YouTube Browser in repository

49 replies [Last post]
GrevenGull
Offline
Joined: 12/18/2017

So when I click on SMPlayer YouTube Browser to install it through the repository, the cursor turns into this loading wheel and spins and spins and spins etc :)

chaosmonk

I am a member!

I am a translator!

Offline
Joined: 07/07/2017

If I recall correctly, while SMPlayer is free software, the SMTube plugin that allows it to stream from YouTube is not, so it is disabled in Trisquel.

EDIT: I misunderstood your post. It sounds like you're having trouble installing SMPlayer itself. When that happens, try installing the application in a terminal$ sudo apt install smplayerand see if you get any errors.

GrevenGull
Offline
Joined: 12/18/2017

Oh well, but if I need unfree software to stream from youtube, I'll just drop it.

FindEssential
Offline
Joined: 08/23/2017

On the rare occasion I need to view a video on Youtube I simply fire up IceCat, use DownThemAll to download the video, and then play it in VLC.

GrevenGull
Offline
Joined: 12/18/2017

That's a great tip, but I am trying to not be supportive to the concept of youtube, while still watch films in their storage.

I am not sure why, but I think Richard Stallman warns against youtube.

FindEssential
Offline
Joined: 08/23/2017

Whether you use a viewer on just download the video you are still supporting the platform, there is no function difference between the two approaches. Youtube is part of the one ring of Google, which is why it is bad. There is also javascript issues with it and they sell your information while tracking you.

This is why I generally don't use it and never put my own content on it. I host my content on the Internet Archive, though they have some javascript issues too. I also share directly via Torrent and have been watching both Media Goblin and BitChute for some time. Right now BitChut is more ready. But alternatives are out there.

GrevenGull
Offline
Joined: 12/18/2017

I see:)

CalmStorm

I am a member!

Offline
Joined: 12/31/2014

Try avideo its like youtube-dl only deblobbed.

davidpgil
Offline
Joined: 08/26/2015

I had no idea Youtube-dl was blobbed... Are you sure? Ive only heard it ran Javascript.

> -------- Original Message --------
> Subject: Re: [Trisquel-users] (Trisquel Mini) Loading/buffering into eternity when selecting SMPlayer YouTube Browser in repository
> Local Time: December 29, 2017 8:08 PM
> UTC Time: December 30, 2017 1:08 AM
> From: name at domain
> To: name at domain
>
> Try avideo its like youtube-dl only deblobbed.

Magic Banana

I am a member!

Offline
Joined: 07/24/2010

The JavaScript can be proprietary software.

GrevenGull
Offline
Joined: 12/18/2017

What does that mean? That JavaScript can be? How can one not be sure if something is proprietary or not?

Magic Banana

I am a member!

Offline
Joined: 07/24/2010

I mean JavaScript programs can be proprietary software. Or not. JavaScript is a programming language. You can write proprietary software in it. Or free software: https://www.gnu.org/software/librejs/free-your-javascript.html

GrevenGull
Offline
Joined: 12/18/2017

If nobody knows if it's proptietary or free, then why the heck is it in Trisquel?

Damn, I came here through FSF, but there's so many things here popping up.

Should this be reported in issues?

chaosmonk

I am a member!

I am a translator!

Offline
Joined: 07/07/2017

You might be under the impression that JavaScript is a program in your browser, when it is in fact a programming language. Like any other programming language, it can be used to create libre or proprietary software.

When you allow JavaScript on a webpage, your browser is installing and running software from the developer of the website. The software is not included in Trisquel. You should complain to the owner of the website.

chaosmonk

I am a member!

I am a translator!

Offline
Joined: 07/07/2017

I recommend that you use one of these Firefox/Abrowser/IceCat addons.

(1) NoScript (installed by default in Tor Browser) will block JavaScript code from all webpages unless you explicitly choose to allow it on a particular page.

(2) LibreJS (installed by default in IceCat) will allow JavaScript code if it is trivial or if it can determine that it is free software. Otherwise you will have to explicitly choose to allow it on a particular page.

GrevenGull
Offline
Joined: 12/18/2017

Oh yeah, in that case I get it. So people here are referring to every program that runs JavaScript as "blobbed"?

Magic Banana

I am a member!

Offline
Joined: 07/24/2010

Try to understand what we are explaining to you. JavaScript is a programming language. A program written in that language can be free software or proprietary software. It can even be both if it is released under two different licenses! The same holds for any other programming language: C, Python, etc. The programming language a program is written in does not turn it free or proprietary. That distinction is not technical.

GrevenGull
Offline
Joined: 12/18/2017

Yeah I understand now. But I still don't understand why you call youtube-dl "blobbed" becasue it runs javascript, aren't you just downloading videos, or are you also visiting the site in some way and using the youtube javascript?

Magic Banana

I am a member!

Offline
Joined: 07/24/2010

CalmStorm wrote that. Not me. youtube-dl downloads and executes JavaScript from the site, to be able to then download YouTube videos behind DRM. avideo is youtube-dl minus the JavaScript interpreter (which is not a "blob": it is free software that can execute proprietary JavaScript). See https://notabug.org/GPast/avideo/src/master/README.md

GrevenGull
Offline
Joined: 12/18/2017

cheers, I guess I kinda understand now, but how does avideo solve this?

Magic Banana

I am a member!

Offline
Joined: 07/24/2010

As far as I understand, the avideo project remove's youtube-dl's JavaScript interpreter... and YouTube's video behind DRM cannot be read.

GrevenGull
Offline
Joined: 12/18/2017

So basically avideo just makes it impossible to download videos which "are behind DRM"?

Well, I guess that is better in a way

Magic Banana

I am a member!

Offline
Joined: 07/24/2010

Yes.

GrevenGull
Offline
Joined: 12/18/2017

Allrighty! Thank you so much for taking your time to answer my basic questions, you are a hero to me! Cheers

chaosmonk

I am a member!

I am a translator!

Offline
Joined: 07/07/2017
calher

I am a member!

Offline
Joined: 06/19/2015

youtube-dl runs proprietary JS in the background, which we don't want to
do, so avideo was created to avoid this.

GrevenGull
Offline
Joined: 12/18/2017

I see, what does it actually mean that it runs "proprietary javasript in the background"?

How does avideo avoid that and getting the same results?

calher

I am a member!

Offline
Joined: 06/19/2015

Someone (maybe Grace Past?) needs to update it so it works.

GrevenGull
Offline
Joined: 12/18/2017

Any good sites for torrents?:)

SuperTramp83

I am a translator!

Offline
Joined: 10/31/2014

>if I need unfree software to stream from youtube, I'll just drop it

But you don't. :)
Streaming any yt link is as simple as opening your terminal and typing:

mpv 'url'

GrevenGull
Offline
Joined: 12/18/2017

Hmm, that didn't seem to work for various reasons.

I tried mpv *insert url to youtube video here*

to which I got "bash: mpv: command not found".

Then I tried to substitute mpv for VLC which then opened VLC with two separate windows warning about youtube being an unknown source etc etc with options to "abort" etc.

I attached some screenshots:

snapshot5.png snapshot6.png
SuperTramp83

I am a translator!

Offline
Joined: 10/31/2014

Is mpv installed, mate Graven?

which mpv

It would appear from 'mpv: command not found' it is not.

sudo apt-get install mpv

GrevenGull
Offline
Joined: 12/18/2017

I think you were quite correct in your assumption Senior Super. It also seems as though I only need to type:

sudo apt install mpv

to install the package.

Edit

So I tried now and got this (see screenshot). Does this mean that the video is behind DRM or something? Or is it anything other I'm missing?:)

Screenshot at 2018-01-12 16:12:17.png
SuperTramp83

I am a translator!

Offline
Joined: 10/31/2014

>It also seems as though I only need to type:

Oh, I thought you were using Trisquel 7.0..

>Does this mean that the video is behind DRM or something?

As far as I understand something is wrong with your youtube-dl. Well, is it installed? :)

sudo apt install youtube-dl

GrevenGull
Offline
Joined: 12/18/2017

Hey, I do appreciate all the help and guidance here that I have been on the receiving end of, but after ADFENO's comment in this https://trisquel.info/en/forum/summary-which-youtube-applications-does-what-and-how-free-they-are post, I no longer have a desire to get these packages running.

PS. How do I link to comments?

Magic Banana

I am a member!

Offline
Joined: 07/24/2010

Right-click on the post number (in its upper-right corner, prefixed with "#"), copy the link and paste it in your post.

GrevenGull
Offline
Joined: 12/18/2017

Cheers! :)

chaosmonk

I am a member!

I am a translator!

Offline
Joined: 07/07/2017

ADFENO is right as usual. We should not allow Google to control our access to videos or information in any other form. Try to acquire information from other sources when you can, and if you have videos or other media to share I recommend MediaGoblin as a replacement for YouTube, DeviantArt, and similar sites. However, in situations where for some reason you must access YouTube to watch a video, I suggest avoiding youtube.com and using one of the other methods that have been suggested to you.

calher

I am a member!

Offline
Joined: 06/19/2015

On Sat, 2018-01-13 at 23:30 -0800, name at domain wrote:
> ADFENO is right as usual. We should not allow Google to control our access to videos or information in any other form. Try to acquire information from other sources when you can, and if you have videos or other media to share I recommend MediaGoblin as a replacement for YouTube, DeviantArt, and similar sites. However, in situations where for some reason you must access YouTube to watch a video, I suggest avoiding youtube.com and using one of the other methods that have been suggested to you.

I archive all watched YouTube videos in WebM, so people don't have to
run proprietary JavaScript programs or break US patent law to watch
videos I recommend.

--
Caleb Herbert
OpenPGP public key: http://bluehome.net/csh/pubkey

CalmStorm

I am a member!

Offline
Joined: 12/31/2014

Try avideo that's a better method to do this.

GrevenGull
Offline
Joined: 12/18/2017

Where do I get avideo?:)

Magic Banana

I am a member!

Offline
Joined: 07/24/2010

Here is a DEB package: https://notabug.org/GPast/avideo/raw/archive/2017.9.27/avideo-2017.9.27.deb

With GDebi installed (the package "gdebi" is in Tisquel's repository, ready to be installed from the package manager), you can install a DEB package by double-clicking on it.

GrevenGull
Offline
Joined: 12/18/2017

I am currently running Trisquel 8 live from DVD, do you have any knowledge about whether it is possible or not to install packages on live Trisquel 8?

I tried to install the avideo using this method, and got this message:

"Error: Conflicts with the installed package 'avideo'".

Do you have any knowledge about whether this error occurs because of something I have done wrong, or if it simply happens because it is not possible to install further packages to a live running Trisquel 8?

Magic Banana

I am a member!

Offline
Joined: 07/24/2010

It looks like avideo is already installed.

GrevenGull
Offline
Joined: 12/18/2017

Lol, you're absolutely correct.

I got this error"

ERROR: hMVYIE3_XJ0: YouTube said: Invalid parameters.

Any idea what that means?

GrevenGull
Offline
Joined: 12/18/2017

Update:

It worked, I just copied the link, so I guess there was some typos, thanks :)

J.B. Nicholson-Owens
Offline
Joined: 06/09/2014

name at domain wrote:
> But you don't. :)
>  Streaming any yt link is as simple as opening your terminal and typing:
>
> mpv 'url'

Does mpv execute nonfree JS to get YouTube videos?

It would be possible for any program that downloads YouTube-hosted videos
to do precisely what youtube-dl does. Such a program could include
youtube-dl code in multiple ways. This approach would provide considerable
convenience to the user and thus recapitulate all the problems which avideo
solves by not executing YouTube's DRM-implementing JS.

Perhaps you'd be better off using avideo
(https://notabug.org/GPast/avideo/) and finding another way to see the
videos avideo can't download, or just skipping those videos altogether.

I too don't recommend hosting anything with Google. I also don't want users
to think that some other video downloader program will grant a user the
freedom from DRM or freedom from executing arbitrary JS which (it's my
understanding) avideo was written to do.

-J

calher

I am a member!

Offline
Joined: 06/19/2015

mpv uses youtube-dl in the background, and will automatically start
using avideo in the background if avideo is installed. Using mpv is
fine as long as you use avideo to avoid proprietary Google scripts.

SuperTramp83

I am a translator!

Offline
Joined: 10/31/2014

>Does mpv execute nonfree JS to get YouTube videos?

Mpv uses youtube-dl and that one executes the bad bad javascript which needs to die from violent death.
Don't use it.

calher

I am a member!

Offline
Joined: 06/19/2015

On Fri, 2017-12-29 at 22:14 +0100, name at domain wrote:
> >if I need unfree software to stream from youtube, I'll just drop it
>
> But you don't. :)
> Streaming any yt link is as simple as opening your terminal and typing:
>
> mpv 'url'

mpv uses youtube-dl in the background, which runs proprietary Google
code in the background.

--
Caleb Herbert
OpenPGP public key: http://bluehome.net/csh/pubkey