gtk-youtube-viewer (for lots of pups)

Browsers, email, chat, etc.
Message
Author
sindi
Posts: 1087
Joined: Sun 16 Aug 2009, 13:30
Location: Ann Arbor MI USA

updating youtube-dl

#421 Post by sindi »

Firefox 68 ESR (works with updated Precise 5.7.1 Light) has a Youtube Adblocker (Palemoon does not yet) but no sound. I changed permissions as instructed (allow youtube autoplay) but it may need Pulseaudio. There is now a Youtube Saver but it does not work (as reported by many reviewers - no icon to start it).

Palemoon 28.8.1 plays Youtube videos with ads at 360p. Which uses over 100% of my 1.4GHz single core CPU for browser/youtube/X so I cannot even change setting to 240p. There is no Youtube ad blocker for Palemoon.. I don't know how to use the recently fixed Youtube Downloader.

The youtube-dl updater failed, as mentioned. There is a 2020.01.24 youtube-dl. Maybe too many others are downloading and it times out.

So I tried tubemate on our newest android phone. The small fast EC browser refuses to save Tubemate 2 or 3. Chrome refuses to install 2, or to run 3 unless I download something to display 1080p and it HAS to be done using a google account. We can watch streaming without download, on half of the screen, with ad across the bottom.

User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#422 Post by Smithy »

Hey Sindi, with your single core 1.4, you could be pushing it a bit to have smooth youtube experience, I would have thought, especially if you have multiple browsers open.

You might have better luck just not bothering with browsers and using the gtk app as intended. It browses fine.

This one updates, plays in terminal, plays in mplayer or mpv and downloads the youtube item if required, taking the pressure off the ram and cpu. And it still updates as from today and always has done.

Not sure if it works in precise, but there isn’t a great deal of difference, perl5, python stuff maybe.

http://www.smokey01.com/Smithy/Artful%2 ... l_m2go.pet

westwest
Posts: 72
Joined: Fri 10 Apr 2015, 04:32

youtube

#423 Post by westwest »

Using Palemoon, it is possible to add uBlock Origin from the "Classic Add-On Archives" (itself a Palemoon Add-On), which will remove all ads from Youtube.

Also in Palemoon, disabling MSE from "Options>Content>Video" will greatly reduce CPU cycles on youtube, and allow you to download any video directly by double-right-clicking on it and selecting "Save Video" from the menu. There's even a Palemoon Add-On ("HTML5 Media Tuner") to toggle between HTML5+MSE, HTML5 only, and No HTML5.

sindi
Posts: 1087
Joined: Sun 16 Aug 2009, 13:30
Location: Ann Arbor MI USA

youtube in browser, youtube-dl

#424 Post by sindi »

How do I update the youtube-dl in (gtk)-youtube-viewer?
The old one from two weeks ago cannot find URLs.

I found a deb for the Jan 24 2020 version but need ar to unpack it.
Precise puppy has no ar. I installed binutils - still no ar.
I could compile my own busybox with it. Uextract expects it.

I tried to update it with ...... youtube-dl -U and it said it updated but I still have the same version of youtube-dl.
(Ran youtube-dl from cde-root with cde-exec).

Could someone post a link to an un-debbed un-rpmed version?

--------------


Nice that ublock origin firefox legacy is back. It works!

Tested going to youtube.com with palemoon 28.8.2, old Poirot video, turn off Autoplay.

Without MSE:
"Your browser does not recognize any of the video formats available".

With MSE, the half circle starts to spin and after a few minutes I get an extremely jerky video at 360p.
Top shows VSZ 171% (of 1GB total available RAM, which is all many of my computers can hold).
Download barely or not ahead of play. Very out of synch sound. Non-expanded, same size picture as large phone.
A LOT of swapping to disk sound.

With MSE, no MSE webM but with MSE mp4, VSZ only 131%, with some out of sync and stopping.

With MSE, no MSE webM or MSE mp4, VSZ 103%, still some out of sync and stopping, download behind play.

If I stop the video, VSZ only 101% while download gets ahead of play.

I can then change from 360p to 240p and play fuzzy videos non-expanded without ads.
Or expanded, even fuzzier and out of synch.

I did not figure out download, but this is a time-consuming way to get at a video.

There are ways to download without going to youtube.com, I think by typing in the URL to another site.

-----------

smtube used to work.


With (working) youtube-viewer, DELL 600M plays 360p just fine, full screen, in X, or audio only from a vt.
On 2002-3 computers with discrete video cards I get 720p. 480p always comes out as 720p.

I could probably download with newpipe on a phone (android 4.1), connect to computer via USB, transfer the file, then play
the downloaded video with mpv, faster than using a linux browser. Or play with Newpipe Legacy on the 7" 2012 Nook Color
Tablet that boots Android 4.1 from microSD card. Newpipe failed to run on my newest (2009 HP dv2) laptop with
Android-x86. You need to use gmail to report the error which I refuse to do.

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#425 Post by Mike Walsh »

@ sindi:-
sindi wrote:Firefox 68 ESR (works with updated Precise 5.7.1 Light) has a Youtube Adblocker (Palemoon does not yet) but no sound. I changed permissions as instructed (allow youtube autoplay) but it may need Pulseaudio. There is now a Youtube Saver but it does not work (as reported by many reviewers - no icon to start it).
Install 'apulse' from here, at OscarTalks' repo. Then start Firefox from the terminal with

Code: Select all

apulse firefox
Perhaps easier to modify your Firefox .desktop launcher to read the same on the 'Exec' line followed by running 'fixmenus' in the terminal and restarting 'X'.

If you use my portable version from here, and follow the instructions for use, it has the necessary PulseAudio/apulse stuff built-in. You can, if you want, keep this on a flash drive and run it from there; it's perfectly happy to run like that.


Mike. :wink:

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#426 Post by fredx181 »

Hi sindi,

EDIT: I've read previous posts better now after posting the below, I'm not sure what exactly you're using and what could cause the problems, sorry if below is useless info...
----------------------------------------------------------------------------------------------------

There's no youtube-viewer .pet for Precise (perl version in precise is too old), but there is for Tahr, see here: http://murga-linux.com/puppy/viewtopic. ... 59#1009159
(note that the pet package name is 3.5.3 but in reality it's gtk-youtube-viewer v3.5.0)
EDIT: see also older version and info: http://murga-linux.com/puppy/viewtopic. ... 18#1007818

If you're depending on a cde-package try (if you don't have that version already):
https://dl.dropboxusercontent.com/s/sxo ... ar.gz?dl=1
Shared here: http://murga-linux.com/puppy/viewtopic. ... 85#1008585
It proved to be the best working cde-package (after some failed attempts, see earlier pages)
Extracts to folder: yt-viewer-3.5.0_youtube-dl
Updating youtube-dl from version 2018.10.29 to latest works for me:

Code: Select all

root@live:/mnt/sda5/yt-viewer-3.5.0_youtube-dl# ./youtube-dl.cde --version
2018.10.29
root@live:/mnt/sda5/yt-viewer-3.5.0_youtube-dl# ./youtube-dl.cde -U
Updating to version 2020.01.24 ...
Updated youtube-dl. Restart youtube-dl to use the new version.
root@live:/mnt/sda5/yt-viewer-3.5.0_youtube-dl# ./youtube-dl.cde --version
2020.01.24
Or try the .pet or .sfs based on it from Argolance, see http://murga-linux.com/puppy/viewtopic. ... 65#1010065 (cde-package, as .pet or .sfs)

EDIT:
How do I update the youtube-dl in (gtk)-youtube-viewer?
The old one from two weeks ago cannot find URLs.

I tried to update it with ...... youtube-dl -U and it said it updated but I still have the same version of youtube-dl.
(Ran youtube-dl from cde-root with cde-exec).
Download with curl and make executable:

Code: Select all

curl -L https://yt-dl.org/downloads/latest/youtube-dl -o youtube-dl
chmod a+rx youtube-dl
and manually replace in cde-root/usr/local/bin

Fred

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

Seems broken

#427 Post by vtpup »

Aspire 5349 Laptop
Distro: tahrpup 6.0.5
Window Manager: JWM vgit-976
Desktop Start: xwin jwm
gtk-youtube-viewer 3.5.0

gtk-youtube-viewer worked great for several months for me, but for the last week or so, I get a "403 Forbidden" error on any search.

I did see one auto-update occur this week on startup, but it didn't fix the problem.

Typical error message (for search term "cnn"):

[Wed Mar 4 19:27:31 2020]: [403 Forbidden] Error occured on URL: https://www.googleapis.com/youtube/v3/s ... ration=any

Thanks.
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

User avatar
Smithy
Posts: 1151
Joined: Mon 12 Dec 2011, 11:17

#428 Post by Smithy »

Yes it seems to be broken again.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#429 Post by fredx181 »

Smithy wrote:Yes it seems to be broken again.
Yes, very sad, is this the end of youtube-viewer ?? https://github.com/trizen/youtube-viewer/issues/308
Can still be used with latest version 3.7.4, but only when you create api key (you need google account) and edit /root/.config/youtube-viewer/api.json by adding the api key.

Also, trizen (the author) made a fork of youtube-viewer straw-viewer which depends on gtk3.
I installed it and it works well from what I tested, it's using the invidious api https://invidio.us/

Fred

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#430 Post by rcrsn51 »

My build of youtube-dl-gui is still OK, but it may work differently.

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#431 Post by vtpup »

fredx181 wrote:
Smithy wrote:Yes it seems to be broken again.
Also, trizen (the author) made a fork of youtube-viewer straw-viewer which depends on gtk3.
I installed it and it works well from what I tested, it's using the invidious api https://invidio.us/
Fred, can you give steps to install? thx.
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#432 Post by fredx181 »

Hi vtpup,
Fred, can you give steps to install? thx.
You use Tahr right ?
I installed it on Tahr, but sadly it won't run, looks like it needs newer gtk3.

Code: Select all

root# gtk-straw-viewer
/usr/share/perl5/auto/share/dist/WWW-StrawViewer/gtk-straw-viewer.glade: required gtk+ version 3.20, current version is 3.10 at /usr/lib/perl5/Glib/Object/Introspection.pm line 59.
root# 
I think even Xenial wouldn't be new enough to run gtk-straw-viewer (by looking at the gtk3 version required)

Fred

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#433 Post by vtpup »

Thanks Fred.

I've looked into moving up in Puppies, but still have some issues where a couple of essential programs seem to require an older pup, like Tahr.

But I'll find a way in coming months, I hope.
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#434 Post by fredx181 »

*** gtk-youtube-viewer v3.7.4 ***
earlier, fredx181 wrote:Can still be used with latest version 3.7.4, but only when you create api key (you need google account) and edit /root/.config/youtube-viewer/api.json by adding the api key.


I included my own youtube api key (in /root/.config/youtube-viewer/api.json) in the package , probably it's working for anyone else too, I see no reason why not.
(hopefully I won't regret sharing that key, oh well.. :roll: )
EDIT: To be able to login in your Youtube account, it's required to get client ID, edit api.json, see also here:
https://github.com/trizen/youtube-viewer#logging-in

Note: This package has no (perl) dependencies included, which means that it's required to have installed already one of the packages I shared here:
http://murga-linux.com/puppy/viewtopic. ... 59#1009159 and here (Stretch): http://murga-linux.com/puppy/viewtopic. ... 73#1025673

So far I tested only on Tahrpup, but may work on other Puppies too (again, only to update when earlier package is installed first)

Update 2020-03-12: v3.7.4-1. Added (most of) the missing icons to the .pet, became just a little too big to attach.
EDIT: Updated again, v3.7.4-2
https://dl.dropboxusercontent.com/s/jh5 ... h.pet?dl=1

Fred
Last edited by fredx181 on Thu 12 Mar 2020, 20:35, edited 4 times in total.

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#435 Post by vtpup »

Thank you very much Fred. It works!

Please let me know if there is are any issues for you re. api key, and I will uninstall the .pet.
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#436 Post by fredx181 »

vtpup wrote:Thank you very much Fred. It works!
Great !
Please let me know if there is are any issues for you re. api key, and I will uninstall the .pet.
I think the worst thing that can happen is that the key will be disabled by google, possibly because of limits / quota (amount of users per sec or whatever).
Then gtk-youtube-viewer will stop working. But I don't expect many people would use it, so it's probably ok.
To be safe I'd advice to get your own personal api key, your choice of course.

Fred

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#437 Post by vtpup »

Sorry Fred, I spoke too soon, without adequately testing:

Yesterday, I did a simple search with gyv and it did put up a lot of video thumbnails in the main panel. But I didn't try to play any videos. I just assumed that since they were now available, gyv was functioning

Today, I went to try to play a video, but the play function, and most others were blanked out.

Play didn't work.

The comments function was not blanked out, and for some reason, that works.
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#438 Post by fredx181 »

vtpup wrote:...it did put up a lot of video thumbnails in the main panel. But I didn't try to play any videos.
Any error message when you run gtk-youtube-viewer from terminal ?
Which player you use and is it set correct in the preferences?
Is youtube-dl the latest version ? (run Gtk-youtube-update from menu)
I don't think it has to do with the api key, btw, since it does show the search results (otherwise will show 404 error message)
I tested in Tahrpup 6.0.6 and works fine using mpv player.

EDIT: i see now what you mean with right-click 'Play" is blank, it's just that the matching icon is missing (and lots of other icons too)

Fred

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#439 Post by vtpup »

Thanks Fred,

I did already update the viewer with the menu updater.

Output below from running in terminal. The first 3 error lines ocurred at startup.

The last line about VLC Player occurred after I tried to play a video. The player window opened momentarily then closed immediately.

I do remember reading something somewhere about needing MVP(?) as a player and problem with VLC?

Code: Select all

root# gtk-youtube-viewer
[Wed Mar 11 17:11:35 2020]: [!] Invalid client_id:
[Wed Mar 11 17:11:35 2020]: [!] Invalid client_secret:
[Wed Mar 11 17:11:35 2020]: Use of uninitialized value in subroutine entry at /usr/bin/gtk-youtube-viewer line 1427.
VLC media player 2.1.6 Rincewind (revision 2.1.6-0-gea01d28)
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#440 Post by fredx181 »

vtpup wrote:I do remember reading something somewhere about needing MVP(?) as a player and problem with VLC?
Yes, try mpv, I can't make it work with vlc too, here's a mpv pet that should work on tahr:
https://dl.dropboxusercontent.com/s/63i ... e.pet?dl=1
Got it from here, thanks to jist !
http://www.murga-linux.com/puppy/viewto ... 332#859332

Btw, did vlc earlier work for you ?

Fred

Post Reply