gtk-youtube-viewer (for lots of pups)

Browsers, email, chat, etc.
Message
Author
User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#381 Post by Argolance »

Something new I didn't get previously (when I run gtkyoutube viewer in console). This seems not to prevent videos to be played properly:

Code: Select all

2018.10.29
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory

dancytron
Posts: 1519
Joined: Wed 18 Jul 2012, 19:20

#382 Post by dancytron »

Argolance wrote:Something new I didn't get previously (when I run gtkyoutube viewer in console). This seems not to prevent videos to be played properly:

Code: Select all

2018.10.29
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
I think those errors are because mesa-dri isn't set up for your graphics card. You are in Puppy, right?

Open the console and run "glxgears". If it works, then never mind, I don't know what I am talking about.

If it doesn't work and if you don't want to ignore it, then you'll need to figure out what driver you need for your graphics card and install it.

If you don't have glxgears installed, install the package "mesa-utils" (in Debian at least).

If you are using Debian Dog or similar, install mesa-utils and libgl1-mesa-dri and try again.

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

#383 Post by fredx181 »

Argolance wrote:Something new I didn't get previously (when I run gtkyoutube viewer in console). This seems not to prevent videos to be played properly:

Code: Select all

2018.10.29
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Looks like you use the one from here, see EDIT (adding "--vo xv" to the args in Preferences works for me as workaround ):
http://murga-linux.com/puppy/viewtopic. ... 31#1008731

The one from here doesn't have that problem (different mpv included):
http://murga-linux.com/puppy/viewtopic. ... 23#1008723
You have still no sound with that one ?
(I probably misunderstood, thought you had solved it)

EDIT;
This seems not to prevent videos to be played properly
For me the videos won't play when I get these libGL errors.

Fred

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

#384 Post by Argolance »

fredx181 wrote:You have still no sound with that one ?
(I probably misunderstood, thought you had solved it)
No you did not: your latest version solved the sound issue and seems running properly except this message apparently with no incidence that is displayed when gtkyoutube is executed in a terminal.
Sorry if it was not clear, this is what I was meaning:
Argolance wrote:This seems not to prevent videos to be played properly

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

#385 Post by Argolance »

Bonsoir,
@dancytron
Sorry, I missed your message. Thank you.
dancytron wrote:Open the console and run "glxgears". If it works, then never mind, I don't know what I am talking about.
Works fine!
If it doesn't work and if you don't want to ignore it, then you'll need to figure out what driver you need for your graphics card and install it.
...
fredx181 wrote:It's a closed environment, so cannot "look" outside AFAIK.
Cordialement.

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

#386 Post by fredx181 »

Smithy wrote:Forever Still Vids Playing ok for me, BUT all stopped working a few days ago.
Had to do the curl code in the artful pet, the one that puts the new youtube dl py file in usr/local/bin. The other code youtube-dl says bash command not found or something.
I've made a clickable .sh update file for it, but would be cool if it was in the main script Fred. Not a biggie, just glad to be able to watch an occasional youtube vid, since every bugger seems tied to it now. Are google custodians of everyone's life now.
Hi Smithy, I tried the pet on Artful again, when e.g. playing videos from Categories, all plays fine.
I expected some errors (missing HTML...) but noticed that these required perl modulles are already included in Artful, so no need to update the .pet.
(earlier I thought something possibly could be fixed).
But tell me if you notice errors or videos that won/t play

Fred

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

#387 Post by Smithy »

Ok Fred, seems to be working fine thanks.

I've made a little updater pet if it decides to stop functioning again.
It appears as a Desktop Menu entry in Multimedia.
I can't get the terminal to come up to show progress but internet activity shows and it does update the usr/local/bin file.

Whether this would be a lot of hassle to incorporate into the Main GTK YouTube Viewer Menu I don't know.
Attachments
gtk-youtube-viewer-update.pet
(13.43 KiB) Downloaded 345 times

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

#388 Post by fredx181 »

Thanks Smithy, good improvement, I'll upgrade the pet packages later with your updater script included.

Fred

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

#389 Post by fredx181 »

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

Some fixes by adding missing (HTML) perl modules and added launcher for to upgrade youtube-dl , thanks Smithy !
Run the youtube-dl updater from Menu > Multimedia > GTK-YouTube-Updater
Note: This will install youtube-dl and (if available) update to newest version
@Smithy , slightly changed your script to make it show progress and info from terminal.

Bionic 32 and 64 bit:
https://dl.dropboxusercontent.com/s/nhd ... 6.pet?dl=1
https://dl.dropboxusercontent.com/s/h2u ... 4.pet?dl=1
More info here:
http://murga-linux.com/puppy/viewtopic. ... 55#1007755

Artful and Xenial 32-bit:
https://dl.dropboxusercontent.com/s/cl5 ... 6.pet?dl=1
https://dl.dropboxusercontent.com/s/jcg ... 6.pet?dl=1
More info here:
http://murga-linux.com/puppy/viewtopic. ... 44#1007944

Tahr 32-bit:
https://dl.dropboxusercontent.com/s/ghn ... 6.pet?dl=1
More info here:
http://murga-linux.com/puppy/viewtopic. ... 18#1007818

Fred

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

#390 Post by Smithy »

Not tried the latest artful pet yet Fred but will try it out soon.

Just a bit about the mechanics of the app.

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.

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

Post Reply