gtk-youtube-viewer (for lots of pups)

Browsers, email, chat, etc.
Message
Author
User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#321 Post by greengeek »

Hi Fred, thanks for the links - yes it is the cde package i am using so that info appears to address my problem. I hope to work through that after work tonight.
cheers!

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#322 Post by greengeek »

fredx181 wrote: for example to update youtube-dl (and to download, see below):
Code:

Code: Select all

./youtube-dl.cde -U
But I don't know if this will solve the problem though.
Hi Fred,

I installed my cde pet then opened a terminal inside the /root/youtube-viewer directory and did the following:

Code: Select all

# ./youtube-dl.cde -U
bash: ./youtube-dl.cde: No such file or directory
# 
I can only assume that I must be using an older version of the pet that does not use youtube-dl

I will scan back through the thread.

cheers!

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

#323 Post by fredx181 »

Hi greengeek, sorry, I don't know which .pet you mean.
The youtube cde "package" is a tar.gz archive, when extracted you get folder "yt-viewer-3.1.5_youtube-dl".
In that folder open a terminal and update youtube-dl like this:

Code: Select all

root@live:~/yt-viewer-3.1.5_youtube-dl# ./youtube-dl.cde -U
WARNING: Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this.
Updating to version 2018.09.18 ...
Updated youtube-dl. Restart youtube-dl to use the new version.
Fred

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#324 Post by greengeek »

fredx181 wrote:The youtube cde "package" is a tar.gz archive, when extracted you get folder "yt-viewer-3.1.5_youtube-dl".
Thanks - I had made a pet of the previous version that you made. I have now downloaded the 315 version, untarred it, made a pet of it, loaded it, and run your syntax:

Code: Select all

# ./youtube-dl.cde -U 
Updating to version 2018.09.18 ...
Updated youtube-dl. Restart youtube-dl to use the new version.
# 
and now it works again.

Many thanks!

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

#325 Post by Smithy »

Could someone make a pet of this that looks and functions like Phil's picture on page one of this thread, or is that too sensible a request..

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

#326 Post by fredx181 »

Smithy wrote:Could someone make a pet of this that looks and functions like Phil's picture on page one of this thread, or is that too sensible a request..
Not sure if you mean: to run gtk-youtube-viewer ?
Yes, not a pet, but tar.gz:
https://dl.dropboxusercontent.com/s/kux ... ar.gz?dl=1
Same as i earlier shared Here (download at bottom of post)
Extract to someplace and click on "gtk-youtube-viewer.cde" inside folder "yt-viewer-3.1.5_youtube-dl"
(EDIT: greengeek mentioned above that he made a pet from this, maybe he wants to share?)

See pic, looks a bit different than Phil's picture but functions the same.

EDIT: See here for a pet made for D-pup Stretch:
http://murga-linux.com/puppy/viewtopic. ... 065#988065
(but probably it doesn't work on other puppies)

Fred
Attachments
gtk-youtube-viewer.png
Gtk-youtube-viewer
(167.49 KiB) Downloaded 276 times

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#327 Post by greengeek »

fredx181 wrote:(EDIT: greengeek mentioned above that he made a pet from this, maybe he wants to share?)
Hi Fred, yes I will certainly share my pet - although I need to mention some cautions first:
- This is the CDE "terminal display" version and does not look anything like Phil's interface. (EDIT : See the note below about Gtk (Gui) method)
- This is only tested on Slacko 5.6 (although should be fine in many other systems)
- It is only intended for use with JWM as it makes minor modifications to the file /root/.config/rox.sourceforge.net/ROX-Filer/globicons so that the View and Download buttons have nice icons.
- I run with no persistence so this lets me test my .pets without ongoing risk to a savefile or to personal data (which I keep on another partition). Please take a savefile backup before testing my pets

HowTo:

- Install the pet
- Look inside the directory /root/youtube-viewer
- Use the Videoplay icon if you just want to view the YT video, or else click the Videodownload icon if you want to download the video (see pic below)
- You will see a terminal open up requesting the search terms for the video you want to locate (see pic below)
- Type the number of the video that matches your needs (and hit enter)
- The video will play (if you selected the videoplay icon) or download if you clicked the videodownload icon.
- Locate the downloaded video inside the /root/youtube-viewer/cde-root directory (see pic below)

....................................................................................
NOTE: - To run Gtk-youtube-viewer in GUI mode, just click on /root/youtube-viewer/gtk-youtube-viewer.cde
(You might find this simpler than using the text-based terminal method above)
....................................................................................

The pet can be downloaded here:
EDIT : Newer version of pet (includes auto updater script) available here:
http://www.murga-linux.com/puppy/viewto ... 73#1007673

original version archived here:
https://www.mediafire.com/file/m3n7upnp ... 0.5555.pet
Attachments
root_youtube-viewer_contents.jpg
(52.24 KiB) Downloaded 270 times
Download_Terminal_interface.jpg
(46.03 KiB) Downloaded 263 times
Downloaded_Vid_found_in_CDE-Root_Directory.jpg
(31.24 KiB) Downloaded 275 times
Last edited by greengeek on Fri 19 Oct 2018, 05:42, edited 5 times in total.

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

#328 Post by fredx181 »

@greengeek, thanks !
Your how-to is mostly focused on "youtube-viewer" command line program.
Added at the end: how to run gtk-youtube-viewer (GUI)
(I think that;s what Smithy asked for)

HowTo:

- Install the pet
- Look inside the directory /root/youtube-viewer
- Use the Videoplay icon if you just want to view the YT video, or else click the Videodownload icon if you want to download the video (see pic below)
- You will see a terminal open up requesting the search terms for the video you want to locate (see pic below)
- Type the number of the video that matches your needs (and hit enter)
- The video will play (if you selected the videoplay icon) or download if you clicked the videodownload icon.
- Locate the downloaded video inside the /root/youtube-viewer/cde-root directory (see pic below)
....................................................................................
- To run Gtk-youtube-viewer (GUI), just click on /root/youtube-viewer/gtk-youtube-viewer.cde
....................................................................................
The pet can be downloaded here:
https://www.mediafire.com/file/m3n7upnp ... 0.5555.pet

Fred

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#329 Post by greengeek »

fredx181 wrote:Added at the end: how to run gtk-youtube-viewer (GUI)
(I think that;s what Smithy asked for)
Thanks Fred - i have now edited my post to include your GTk viewer comment.
cheers!

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

#330 Post by Smithy »

Thanks fred and greengeek, I gave your fred version a go earlier, and whilst it searches and finds videos, when I right click to play, it does some internet activity and then something flashes like a quick terminal attempt and then nothing.
Same with download. I tried switching preferences to lxterm and mplayer but no joy.
It worked with Phil's version a few years ago and then that stopped lol.

Would be good to get this working as the state of browsers now is bad, FF 50's and 60's seems to disappear sometimes at the drop of a hat and warnings about " it seems you need to use pulse audio" total rubbish. And apulse is conflicting when one uses linux with lots of multimedia.
They do seem to be very intrusive now, but I do have a list of about:configs if you want to break 'em (fix 'em lol)

I don't think tint 2 is flaking out, but it will cause problems with shittily written apps like zynaddsubfx, but they belong as container plugins anyway imo. Yoshimi seems more solid.

I haven't had a working mpv yet so maybe that is a problem, but since your app is portable with all the libs etc it should just pick it up ok?

I will try greengeeks job see if I can get a vid to play.
I'm on Artful at the moment, thinking of trying Bionic at some point in the future. But it runs well, very very well in fact.

What you up to greengeek, a rudolph hess attempt? spark ignition.

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

#331 Post by fredx181 »

Smithy wrote:Thanks fred and greengeek, I gave your fred version a go earlier, and whilst it searches and finds videos, when I right click to play, it does some internet activity and then something flashes like a quick terminal attempt and then nothing.
I always double-click on one of the results and it plays in mpv (yes indeed mpv is included in the package) did you try that ?
It could be that you need to update youtube-dl first (gtk-youtube-viewer combined with mpv depends on it):
From terminal in directory "yt-viewer-3.1.5_youtube-dl" :

Code: Select all

./youtube-dl.cde -U
@greengeek, does video play in gtk-youtube-viewer work for you ?

Fred

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

#332 Post by Smithy »

Oh, that's done it, yes it updated and now it is running, with audio too.
Thanks very much!
Do you know the location where it puts the update?
And just wondering where I can tart it up a bit. The icons seem to be missing for a few buttons. Ah usr/share/icons seems a bit sparse with just a yad.png.
Attachments
Screenshot.png
(121.77 KiB) Downloaded 832 times

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#333 Post by greengeek »

fredx181 wrote:@greengeek, does video play in gtk-youtube-viewer work for you ?
Funny you should ask - I have not tried the gtk interface for a very long time (I had problems with it and stopped using it...).
However - I just tried it again now and yes, it works perfectly. No reason for me to avoid it now :-) (Using it straight from my pet - no additional update).
EDIT : - seems that the first search works fine, but subsequent searches don't. I have to close the gui and start all over again. Don't have the same problem with the terminal version.
EDIT 2 : Ok - it seems that the second search DOES work but does not clear the first search results out of the way. The second search results just appear below the first search results, in the "next page" section.

thanks for all the help!
Smithy wrote:What you up to greengeek, a rudolph hess attempt? spark ignition.
I'm looking at methods to ignite a petrol/air mixture in a turbine that has no interruptions to the flame front (unlike an Otto cycle engine). Not sure what Hess did, but, no - I don't think I'm following in his footsteps.

cheers!

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

#334 Post by fredx181 »

Smithy wrote:Oh, that's done it, yes it updated and now it is running, with audio too.
Thanks very much!
Do you know the location where it puts the update?
And just wondering where I can tart it up a bit. The icons seem to be missing for a few buttons. Ah usr/share/icons seems a bit sparse with just a yad.png.
Ok, nice !
The youtube-dl script replaces itself after updating (in cde-root/usr/local/bin)
See attached for the missing icons, just extract in cde-root/usr/share/icons (or cde-root/usr/share/pixmaps) and they should show in gtk-youtube-viewer.
BTW,I re-uploaded the cde-package with the missing icons included, see EDIT here:
http://murga-linux.com/puppy/viewtopic. ... 640#991640
greengeek wrote:fredx181 wrote:
@greengeek, does video play in gtk-youtube-viewer work for you ?
Funny you should ask - I have not tried the gtk interface for a very long time (I had problems with it and stopped using it...).
However - I just tried it again now and yes, it works perfectly. No reason for me to avoid it now Smile (Using it straight from my pet - no additional update).
Ah great, I was wondering already why you mentioned only youtube-viewer command line options in your how-to.

Fred
Attachments
gtk-youtube-viewer_missing-icons.tar.gz
Extract in cde-root/usr/share/icons
(5.81 KiB) Downloaded 158 times

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#335 Post by greengeek »

New version of my pet available - now includes the missing icons from Fredx above, and also adds an updater script & icon alongside the play and download scripts.

PLEASE REMEMBER : Backup your savefile before testing my pet.

https://www.mediafire.com/file/7elt2th7 ... g-0.75.pet
(HowTo posted on previous page)
Attachments
icons.jpg
(6.04 KiB) Downloaded 736 times
Last edited by greengeek on Fri 19 Oct 2018, 05:43, edited 1 time in total.

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

#336 Post by Smithy »

Nice touch on the updater greengeek, I just threw in a different gtk than the Raleigh just to see on Fred's.
It seemed to take on a quick Polished Blue gtk transplant.

Still on fred's with the icons, but will give yours a whirl at weekend.

Just wondering if all the libs are specific to the app.
I suppose the youtube viewer would have to be compiled to the specific puppy in order for it to use the libs already in the puppy. (I think I have quite a bit already in the puppy but will have a look).

Not too bad at 60 mb considering it is a good quick app though!

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

#337 Post by fredx181 »

*** Gtk-youtube-viewer pets for UPup Bionic Beaver and BionicPup64 ***
(not a cde-package)
Version is 3.5 (currently latest)
==============================================================
EDIT 2018-10-21 Download links replaced with fixed version:
Added HTTP::Headers perl modules, this should fix the problem not remembering authentication when logged in
EDIT: and fixed naming issue, removed "-bionic" from name), see also here:
http://murga-linux.com/puppy/viewtopic. ... 29#1007929
==============================================================
EDIT: download here newest version 3.5.3:
http://murga-linux.com/puppy/viewtopic. ... 59#1009159

32-bit (UPup Bionic Beaver):
https://dl.dropboxusercontent.com/s/syy ... 6.pet?dl=1
64-bit (BionicPup64)
https://dl.dropboxusercontent.com/s/nek ... 4.pet?dl=1

For UPup Bionic Beaver I'd recommend to install also youtube-dl but not from PPM (somehow doesn't work)
Download newest version directly from github:

Code: Select all

curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
chmod a+rx /usr/local/bin/youtube-dl
If youtube-dl is not installed then not all videos will play from (gtk-)youtube-viewer.

BionicPup64 has youtube-dl already installed by default.

Run Gtk-youtube-viewer from Menu > Multimedia

Also command-line application "youtube-viewer" is included in the pet packages.
Just example, run from terminal:

Code: Select all

youtube-viewer --res=480p  # resolution 480p
Or for download:

Code: Select all

youtube-viewer --res=480p -d   # resolution 480p and download only video
Fred
Last edited by fredx181 on Mon 05 Nov 2018, 20:54, edited 4 times in total.

User avatar
fabrice_035
Posts: 765
Joined: Mon 28 Apr 2014, 17:54
Location: Bretagne / France

#338 Post by fabrice_035 »

gtk-youtube-viewer not work for me, log :

Code: Select all

 [Fri Oct 19 21:09:26 2018]: [501 Protocol scheme 'https' is not supported (LWP::Protocol::https not installed)] Error occured on URL:
Search in PPM

Code: Select all

libcrypt-ssleay-perl
Install

now :

Code: Select all

=>> Previous warnings:
[Fri Oct 19 21:18:32 2018]: [500 Can't connect to www.googleapis.com:443 (Crypt-SSLeay can't verify hostnames)] Error occured on URL: https://www.googleapis.com/youtube/v3/search?key=AIza ...............
Bionicpup64-8.0 _ Kernel 5.4.27-64oz _ Asus Rog GL752

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

#339 Post by fredx181 »

fabrice_035 wrote:gtk-youtube-viewer not work for me, log :
.......
On which Puppy ?

User avatar
fabrice_035
Posts: 765
Joined: Mon 28 Apr 2014, 17:54
Location: Bretagne / France

#340 Post by fabrice_035 »

fredx181 wrote: On which Puppy ?
Tarhpup 6.0.6

the continuation of the adventure :

Code: Select all

perl -MCPAN -e 'upgrade'
... after a very long time ...

> Reboot computer

gtk work better, can find vidéo but when i try play video :

Code: Select all


root# /usr/bin/perl /usr/bin/gtk-youtube-viewer
Can't load '/usr/share/perl5/auto/JSON/XS/XS.so' for module JSON::XS: /usr/share/perl5/auto/JSON/XS/XS.so: undefined symbol: Perl_xs_boot_epilog at /usr/local/lib/perl/5.18.2/XSLoader.pm line 96.
 at /usr/share/perl5/JSON/XS.pm line 1747.

mplayer: could not connect to socket
mplayer: No such file or directory

Bionicpup64-8.0 _ Kernel 5.4.27-64oz _ Asus Rog GL752

Post Reply