gtk-youtube-viewer (for lots of pups)

Browsers, email, chat, etc.
Message
Author
User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#376 Post by fredx181 »

Argolance wrote:Everything is perfect now, except I don't have the sound anymore!
Yeah.., very perfect :roll: Weird... sound works for me.
Did you try again ? Maybe sound was disabled at the mpv screen (was set to -/1 see pic)

Anyway, I wasn't satisfied already with the included mpv (if I remember well it uses OSS sound rather than ALSA), so here's another "package" with included the mpv from precise .pet here:
http://www.murga-linux.com/puppy/viewto ... 332#859332
Size is more than 10MB bigger (extracted), because of that.

EDIT: Oh, on systems that have gl support (e.g. libgl1-mesa-dri package installed) that mpv doesn't work OOTB, workaround can be changing video output in the Preferences to:
(by adding "--vo xv" to the args)

Code: Select all

                                           mpv => {
                                             arg   => "--really-quiet --vo xv --title *TITLE* --no-ytdl",
https://dl.dropboxusercontent.com/s/3ws ... ar.gz?dl=1
(named it yt-viewer-3.5.1..... now)

Didn't think this would become a sort of development thread. Much more issues than I expected !

EDIT:
Something else: just for test and not essential: I tried unsuccessfully to make links in /cde-root/usr/bin to /usr/bin/vlc, mplayer etc. already installed on my Puppy and even replacing the /cde-root/usr/bin/mpv with a link to /usr/bin/mpv but all complain about their missing libs...
Too bad!
Isn't there some way around that?
I think the only way is to add the required libs in the cde-root (e.g. in cde-root/usr/lib)
It's a closed environment, so cannot "look" outside AFAIK.

Fred
Attachments
2018-11-01-152349_183x119_scrot.png
(14.55 KiB) Downloaded 1034 times
Last edited by fredx181 on Thu 01 Nov 2018, 16:05, edited 2 times in total.

User avatar
icosahedron
Posts: 119
Joined: Mon 28 Nov 2011, 11:58
Location: UK

#377 Post by icosahedron »

Yay! My vids play now. :D

Dunno what you did with the symlinks, whatever they are, but it fixed it. The latest version works a treat - and I've got sound.

No doubt my Firefox, and my Puppy, will sink further and further into obsolescence, for more and more sites, as time goes on, but for now everything's great.

Thanks for the help, guys, and if my struggles have helped in some small way with your development of the viewer, that's great too. :)

Cheers.
Computers: - I just ride 'em, I dunno what makes 'em work.
Console/Terminal? What's that?
I visit the Internet to OBTAIN information, not to PROVIDE it! (Increase Internet Privacy)

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

#378 Post by fredx181 »

icosahedron wrote:Yay! My vids play now. :D

Dunno what you did with the symlinks, whatever they are, but it fixed it. The latest version works a treat - and I've got sound.

No doubt my Firefox, and my Puppy, will sink further and further into obsolescence, for more and more sites, as time goes on, but for now everything's great.

Thanks for the help, guys, and if my struggles have helped in some small way with your development of the viewer, that's great too. :)

Cheers.
Great !!
Yes, sure you helped, feedback always does, thanks !

Fred

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

#379 Post by Argolance »

Bonjour,
Now sound works!
fredx181 wrote:Maybe sound was disabled at the mpv screen (was set to -/1 see pic)
The sound was marked as off (-/1) but nothing to do to enable it. :oops:
Didn't think this would become a sort of development thread. Much more issues than I expected !
In reality, it's always the same song with programs and computers but I think you're at the end of your rope now! :D

Thank you for all.
Cordialement.

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

#380 Post by Argolance »

Bonjour,
As I wanted gtk youtube viewer to be fully integrated to my Puppy, I did a little script (rough coding, which could probably be improved/shortened but working well!) that I would like to share with those who would be interested. :roll:

Steps to be followed:
  • - Replace /cde-root/usr/share/fonts with a link to the standard Puppy /usr/share/fonts (copy first the "oxygen.ttf" font if you want to keep/use it)
    - Replace /cde-root/usr/share/themes with a link to the standard Puppy /usr/share/themes
    - Replace the original gtk-youtube-viewer.cde with "my" gtk-youtube-viewer.cde (note that the auto update of youtube-dl may be disabled/commented)
    - Copy gtkthemeinteg in the same directory.
Now, when you start gtkyoutube viewer it is automatically displayed using you current gtk theme!
I added 2 desktop files (youtube-dl-update.desktop and youtube-viewer.desktop) to be copied to /usr/share/applications/ and 2 icons to be copied to /usr/share/pixmaps/. Desktop files has to be modified to take the current gtk youtube directory into account. Here it is /usr/local/gtk-youtube-viewer/ I chose for my own use.
Refresh the menu for entries to be displayed.

Cordialement.
Attachments
ytgtktheme-integ.tar.gz
(12.94 KiB) Downloaded 342 times
gtkyoutubeviewer.jpg
(106.54 KiB) Downloaded 971 times

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 346 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.

Post Reply