gtk-youtube-viewer (for lots of pups)
Hi Fred,fredx181 wrote: for example to update youtube-dl (and to download, see below):
Code:But I don't know if this will solve the problem though.Code: Select all
./youtube-dl.cde -U
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 will scan back through the thread.
cheers!
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:
Fred
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.
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:fredx181 wrote:The youtube cde "package" is a tar.gz archive, when extracted you get folder "yt-viewer-3.1.5_youtube-dl".
Code: Select all
# ./youtube-dl.cde -U
Updating to version 2018.09.18 ...
Updated youtube-dl. Restart youtube-dl to use the new version.
#
Many thanks!
Not sure if you mean: to run gtk-youtube-viewer ?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..
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
Hi Fred, yes I will certainly share my pet - although I need to mention some cautions first:fredx181 wrote:(EDIT: greengeek mentioned above that he made a pet from this, maybe he wants to share?)
- 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.
@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
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
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.
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.
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 ?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.
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
Fred
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.
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
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...).fredx181 wrote:@greengeek, does video play in gtk-youtube-viewer work for you ?
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!
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.Smithy wrote:What you up to greengeek, a rudolph hess attempt? spark ignition.
cheers!
Ok, nice !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.
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
Ah great, I was wondering already why you mentioned only youtube-viewer command line options in your how-to.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).
Fred
- Attachments
-
- gtk-youtube-viewer_missing-icons.tar.gz
- Extract in cde-root/usr/share/icons
- (5.81 KiB) Downloaded 159 times
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)
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.
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!
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!
*** 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:
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:
Or for download:
Fred
(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
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
Code: Select all
youtube-viewer --res=480p -d # resolution 480p and download only video
Last edited by fredx181 on Mon 05 Nov 2018, 20:54, edited 4 times in total.
- fabrice_035
- Posts: 765
- Joined: Mon 28 Apr 2014, 17:54
- Location: Bretagne / France
gtk-youtube-viewer not work for me, log :
Search in PPM
Install
now :
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:
Code: Select all
libcrypt-ssleay-perl
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
- fabrice_035
- Posts: 765
- Joined: Mon 28 Apr 2014, 17:54
- Location: Bretagne / France
Tarhpup 6.0.6fredx181 wrote: On which Puppy ?
the continuation of the adventure :
Code: Select all
perl -MCPAN -e 'upgrade'
> 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