gtk-youtube-viewer (for lots of pups)

Browsers, email, chat, etc.
Message
Author
ntamas
Posts: 17
Joined: Fri 17 Aug 2018, 09:28

#391 Post by ntamas »

fredx181 wrote:*** Gtk-youtube-viewer pet packages upgrade (v3.5.3) ***

Tahr 32-bit:
https://dl.dropboxusercontent.com/s/ghn ... 6.pet?dl=1

Fred
My puppy versions: tahrpup-6.0.5 (kernel:3.14.56)
Remove old Gtk-youtube-viewer pet, (3.5.2.pet) and install new 3.5.3-tahr_i386.pet.

Image

Program windows tittle bad, program versions incorrect.
Even though I update my youtube-dll file, the downloads function does not work!
Live playback works, mplayer and mpv engine ok.

Image

youtube-viewer file line143 bad:
use WWW::YoutubeViewer v3.5.0;
gtk-youtube-viewer file line 34 bad:
use WWW::YoutubeViewer v3.5.0;
/usr/share/perl5/WWW/YoutubeViewer.pm line26 bad:
our $VERSION = '3.5.0';

correct program windows version info:
youtube-viewer file line143 ok:
use WWW::YoutubeViewer v3.5.3;
gtk-youtube-viewer file line 34 ok:
use WWW::YoutubeViewer v3.5.3;
/usr/share/perl5/WWW/YoutubeViewer.pm line26 ok:
our $VERSION = '3.5.3';

Image

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#392 Post by Argolance »


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

#393 Post by fredx181 »

@ntamas,
Even though I update my youtube-dll file, the downloads function does not work!

Change in Preferences to xterm and add option "-hold":

Code: Select all

  terminal                            => "/usr/bin/xterm",
  terminal_exec                       => "-hold -e '%s'", 
Added now to info here:
http://murga-linux.com/puppy/viewtopic. ... 18#1007818

Can't really see what's the problem with the version number. the 3.5.3 is just for the pet version (but indeed you are right that the real gtk-youtube-viewer version is 3.5.0)
EDIT: On second thought, I must admit that it might be confusing, so next time I'll do it different, thanks.

@Argolance
Bonjour,
Internationalization of GTK YouTube Viewer.
Nice ! , did you construct this by yourself or was it already sort of existing ?

@Smithy, I'll get back later on the (download) issue and which icons are required.

Fred

ntamas
Posts: 17
Joined: Fri 17 Aug 2018, 09:28

#394 Post by ntamas »

fredx181 wrote:@ntamas,
Even though I update my youtube-dll file, the downloads function does not work!

Change in Preferences to xterm and add option "-hold":

Code: Select all

  terminal                            => "/usr/bin/xterm",
  terminal_exec                       => "-hold -e '%s'", 
Fred
Thanks fredx181, works downloads funktions.

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#395 Post by Argolance »

Can't really see what's the problem with the version number. the 3.5.3 is just for the pet version (but indeed you are right that the real gtk-youtube-viewer version is 3.5.0)
EDIT: On second thought, I must admit that it might be confusing, so next time I'll do it different, thanks.
Date (and time if a second package the same day) would probably be the best?
Nice ! , did you construct this by yourself or was it already sort of existing ?
I made it for ToOpPy users first, then I thought I could share it here. :wink:
But it is not new: this was the subject of the thread, initiated on Wed Aug 06, 2014: :arrow: GTK YouTube Viewer Internationalization!

Cordialement.

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

#396 Post by fredx181 »

Hi Smithy,
I tried downloading a couple of tutorial vids.
Each time it downloads, it progresses to 100% and finishes the download successfully, but then it starts to do it again, so it seems to download twice?
And when I close the app, there is some residual activity going on for a minute or so, just wondering what that is? Maybe some google ghosts..

And if you have a list of all the icons used and where they go that would be cool.
Could it be that it downloads separate video and audio files ?
(which can be merged together afterwards)
Specially with high resolution setting in gtk-youtube-viewer that's often the case.
Anyway, just found that you can disable that.
Make "More options" visible, then in "Other options" untick "DASH support".
Then (probably in most cases) it will download .mp4 format (one file) instead of .webm.

This, I think, should be the icons required for v3.5:
emblem-default.png
emblem-documents.png
emblem-downloads.png
emblem-shared.png
edit-copy.png
edit-find.png
go-down.png
go-up.png
list-add.png
media-playback-start.png
window-new.png
applications-internet.png
gtk-preferences.png
preferences-desktop.png
computer.png
video-display.png
emblem-favorite.png
emblem-important.png
video-x-generic.png

Where they go can be different, e.g. in hicolor, or part of icon theme or just in /usr/share/pixmaps

Fred

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

#397 Post by Smithy »

Hi Fred, thanks for getting back on that issue.
That sounds logical about splitting the file, and the format, maybe that was what it is doing.
I will check it out on the dash option. It might also solve the problem where I downloaded a video and it was silent.
A friend tried it on a win 10 box and sound was ok.
I was also giving the Cosmic Cuttlefish pup a try, would the bionic or artful pet be ok to run on it?
Oh, and just wondering if I can change the download destination from root to root/Downloads. Ah, there's something here:
downloads_dir => ".",
Thanks for putting these pets together, I'm sure they are much appreciated by the puppy community!

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

#398 Post by fredx181 »

Smithy wrote:I was also giving the Cosmic Cuttlefish pup a try, would the bionic or artful pet be ok to run on it?
No, but it was very easy to transform the bionic version to cosmic, here's the .pet :
https://dl.dropboxusercontent.com/s/li6 ... 6.pet?dl=1

Fred

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

#399 Post by Smithy »

Great, thanks Fred.

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#400 Post by Argolance »

Bonjour,
Here is gtk-youtube-viewer-3.5.0 (SFS file and pet package), based on :arrow: yt-viewer-3.5.0_youtube-dl-2018-11-01-fixed-symlinks by fredx181 that I chose because, as far as I know, it runs on most Puppies without complaints. It is completed by a small interface ("gtk-youtube-config") allowing user to quickly configure youtube-dl updates as well as the main options of GTK YouTube Viewer and by a directory with the scripts (gtk-viewer-trans-files_working-dir) to build a glade file in user's language if not exists (available: en, fr, es).

Downloads: Cordialement.
Attachments
181114_123836_532x359_easyshot.jpg
(81.74 KiB) Downloaded 1544 times

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

#401 Post by fredx181 »

Argolance wrote:Bonjour,
Here is gtk-youtube-viewer-3.5.0 (SFS file and pet package), based on :arrow: yt-viewer-3.5.0_youtube-dl-2018-11-01-fixed-symlinks by fredx181 that I chose because, as far as I know, it runs on most Puppies without complaints. It is completed by a small interface ("gtk-youtube-config") allowing user to quickly configure youtube-dl updates as well as the main options of GTK YouTube Viewer and by a directory with the scripts (gtk-viewer-trans-files_working-dir) to build a glade file in user's language if not exists (available: en, fr, es).

Downloads: Cordialement.
Now.... that's what you call "icing on the cake" :D !! Great work Argolance !

Tested quickly on D-pup Stretch and working well (quick configuration program is very nice addition).

On my StretchDog, gtk-youtube-viewer won't start, running from terminal shows me that it stops on gtkthemeinteg, probably because I don't have "include /usr/share/themes/....." line in ~/.gtkrc-2.0 pointing to a theme.
But no problem, I know it's intended to work on Puppy and it does !

I thought earlier to open new thread focused on new shared packages from the last pages, maybe best, anyone have opinion ?

EDIT:
as far as I know, it runs on most Puppies without complaints
That is: on 32-bit only , as far as I know.

Fred

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

#402 Post by Smithy »

Hi Fred, just wondering about comments.
I like to read the comments on vids, but long ones scroll for miles to the right. Is there some way to wrap them or something?
I noticed something round line 3105 at
https://github.com/trizen/youtube-viewe ... ube-viewer

Not sure if that has anything to do with it.
But would be handy to add some arguments to /.config/gtl-youtube-viewer.conf to get the comments to wrap.

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

#403 Post by fredx181 »

Smithy wrote:Hi Fred, just wondering about comments.
I like to read the comments on vids, but long ones scroll for miles to the right. Is there some way to wrap them or something?
I noticed something round line 3105 at
https://github.com/trizen/youtube-viewe ... ube-viewer

Not sure if that has anything to do with it.
But would be handy to add some arguments to /.config/gtl-youtube-viewer.conf to get the comments to wrap.
Yes, thanks, that's a new feature that earlier version don't have, good improvement, here's pet for latest v3.5.4 :
https://dl.dropboxusercontent.com/s/1pu ... 6.pet?dl=1
But NOTE: It's only for to upgrade one of the earlier pets that I shared e.g. here:
http://murga-linux.com/puppy/viewtopic. ... 59#1009159
(the v3.5.4 pet doesn't contain the required perl modules, so installing it alone won't work)
I tested on Artful and Xenial, probably it works also on other puppies, but not sure.

Fred

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

#404 Post by Smithy »

Heck that was quick Fred.
That’s better, fixes the scrolling problem, all good now cheers.

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

#405 Post by fredx181 »

Hi, here's new gtk-youtube-viewer pet v3.5.4 for radky's Dpup Stretch
https://dl.dropboxusercontent.com/s/ugh ... 6.pet?dl=1

The perl dependencies (modules) are included.
Recommended is to install youtube-dl (very useful as "helper" program for gtk-youtube-viewer) then there are no exceptions for playing video's AFAIK
Download and install youtube-dl:

Code: Select all

curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
# make executable
chmod a+rx /usr/local/bin/youtube-dl
Or run from Menu "Gtk-Youtube-Updater" (thanks Smithy !) it will install youtube-dl, if not installed already, otherwise it will update to latest youtube-dl version)
Dpup Stretch has mpv and mplayer, but I'd recommend using mpv (mplayer has problems seeking with some resolutions (crashing) )
For gtk-youtube-viewer, go in Preferences and change to mpv, like this:

Code: Select all

video_player_selected               => "mpv",


For youtube-viewer (CLI), run it from terminal:

Code: Select all

youtube-viewer --video-player=mpv
(or change to mpv in the config file: ~/.config/youtube-viewer/youtube-viewer.conf)

Fred

User avatar
tallboy
Posts: 1760
Joined: Tue 21 Sep 2010, 21:56
Location: Drøbak, Norway

#406 Post by tallboy »

Thank you, Fred! :D
True freedom is a live Puppy on a multisession CD/DVD.

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#407 Post by radky »

Very much appreciated !

Thanks Fred :)
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

Tiki10
Posts: 2
Joined: Wed 19 Jun 2019, 20:57

#408 Post by Tiki10 »

Hello,

I wrinting on this forum for the first time and I m sorry to bother you, but it's seems to be the most active thread about GTK youtube viewer I've found after spending an afternoon of googling.
So, I'm rebuilding an old computer with an Athlon 2600+ (barton, no sse2), 768MB and....Linux Lite 3.8 :oops: (<= it because I didn't knew the existence of Puppy).
Everything works fine. I use Netsurf 3.8 for the web. It's fast enough but doesn' support Youtube.
I tried Minitube, but it doesn't works.
When I paste a youtube link to vlc, everything works smoothly. I got the link with NetSurf or GTK youtube viewer (3.5.0). I can download too.
I changed my configuration to use VLC, but when I try to watch a video sent by GTK Youtube viewer, VLC is horribly slow. I noticed that URL sent to VLC is not the same as this I can see in video properties.
I the same thing with mps.

I don't know how to fix the URL sent to VLC to got it like when I paste it manually ?

Thanks for your help,

Tiki

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

#409 Post by fredx181 »

Hi Tiki10, I wish that I could help, but for me vlc doesn't work at all with gtk-youtube-viewer, don't know why, I have vlc version "3.0.6 Vetinari"
I use mpv for playing videos with gtk-youtube-viewer , works fine for me.

Fred

Tiki10
Posts: 2
Joined: Wed 19 Jun 2019, 20:57

#410 Post by Tiki10 »

Hello fredx181,

Thank you for your reply.
I 'm still searching a way to give the url show in comment to VLC (or mpv) as this one given by youtube-viewer make the player runing slow as hell.

Tiki

Post Reply