gtk-youtube-viewer (for lots of pups)

Browsers, email, chat, etc.
Message
Author
sindi
Posts: 1087
Joined: Sun 16 Aug 2009, 13:30
Location: Ann Arbor MI USA

Youtube-viewer at 333MHz 256MB RAM Thinkpad 390e

#181 Post by sindi »

Lupu 5.2.8.6 (latest) mini. Uses 50MB memory to boot, less if I kill ROX-filer, freememapplet, etc. Changed roxterm to urxvt as defaultterminal.
This all saves some cpu time and memory, mostly memory.

Youtube-viewer and gtk-youtube-viewer both work at 240p, but not 360p even with --framedrop. Made a script viewtube

youtube-viewer --resolution=240

Alt-F10 expands mplayer from phone-sized to full screen fuzzy.

Tried without X in a real terminal (Ctrl-Alt-F2) and got a squished image.
On other laptops mplayer plays correctly -vo fbdev. Could try Xorg instead of Xvesa. The limiting factor is not memory but cpu speed and X uses memory but not much cpu. Mplayer uses about 50% cpu at 240p which implies 9/4 x 50% (over 100%) at 360p. Not a stutter at 240p.

240p mplayer also works at 233MHz with 96MB RAM and movgrab.

youtube-viewer is perl 5.10 based. Can someone in the know get it to work in puppy 4 with perl files added to the package? I tried and failed.

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#182 Post by 8-bit »

I have Lucid 520 and had downloaded the GTK Youtube viewer for Lucid a while back. I have since downloaded and installed it again.
But when I run it and try doing a search, the search never completes now whereas it used to work fine.
Has Youtube changed anything that would cause Youtube viewer to not work?

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#183 Post by 666philb »

hi 8-bit
just booted up a vanilla lucid 528 and gtk youtube viewer worked fine for me
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

Re: Youtube-viewer at 333MHz 256MB RAM Thinkpad 390e

#184 Post by 666philb »

sindi wrote:Lupu 5.2.8.6 (latest) mini. Uses 50MB memory to boot, less if I kill ROX-filer, freememapplet, etc. Changed roxterm to urxvt as defaultterminal.
This all saves some cpu time and memory, mostly memory.

Youtube-viewer and gtk-youtube-viewer both work at 240p, but not 360p even with --framedrop. Made a script viewtube

youtube-viewer --resolution=240

Alt-F10 expands mplayer from phone-sized to full screen fuzzy.

Tried without X in a real terminal (Ctrl-Alt-F2) and got a squished image.
On other laptops mplayer plays correctly -vo fbdev. Could try Xorg instead of Xvesa. The limiting factor is not memory but cpu speed and X uses memory but not much cpu. Mplayer uses about 50% cpu at 240p which implies 9/4 x 50% (over 100%) at 360p. Not a stutter at 240p.

240p mplayer also works at 233MHz with 96MB RAM and movgrab.

youtube-viewer is perl 5.10 based. Can someone in the know get it to work in puppy 4 with perl files added to the package? I tried and failed.
i couldn't get it working on puppy 4
have you installed your graphic drivers in lucid?
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#185 Post by 8-bit »

I want to clarify my statement of GTK Youtube Viewer for Lucid not working.
It works fine in Lupu 5.5 and up. But not with Lupu 520 on my PC.
This PC has 4gigs of memory, dual core processor, and the Invidia graphics driver installed.
Since I can still get videos using Lupu 5.5, and also Slacko using the version for it, I have work arounds.
I do not know what is different in Lupu 520 that interferes as starting the application from a terminal does not give any errors at any point.

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#186 Post by 666philb »

hi 8bit

install the devx http://ftp.nluug.nl/os/Linux/distr/pupp ... puppy-5.2/
it should work on 520 then ... did for me
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

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

#187 Post by greengeek »

I tried the slacko 5.4 pet on slacko 5.6 but it does not start the viewer and it gives the following message:

Code: Select all

# bash: ./gtk-youtube-viewer: /usr/bin/perl5.16.1: bad interpreter: No such file or directory
If I rename /usr/bin/perl5.16.3 to /usr/bin/perl5.16.1 the viewer window opens up fine and I can download or play some videos, but most fail to download, leaving correctly named but empty text files in /root.

Do you think it is a simple matter to change the perl version in slacko 5.6, or to modify gtk-viewer to work with perl5.16.3?

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#188 Post by Semme »

Odd.. my previous troubles have cleared. MPlayer works again, as do dwnlds. :cool:

Greengeek, while the problem's probably YTs coding, lose the rename and try the real deal.
Attachments
perl5.16.1.gz
(2.8 KiB) Downloaded 435 times
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#189 Post by 666philb »

here's a recipe to install the latest gtk-youtube-viewer on slacko 5.6 & 5.7

1. install the devx.sfs
2. open the PPM, type perl into the find box and install these....
libwww-perl
perl-gtk2
perl-pango

3. type lxterminal into the find box and install that.
4. open a terminal then highlite the following and paste it into the terminal with 'middle click' and press return

Code: Select all

cpan install Data::Dump XML::Fast HTML::Entities URI::Escape Text::CharWidth Term::UI Term::ReadLine Term::ANSIColor File::ShareDir IO::Socket::SSL
just click ok to any questions
5. grab the youtube-viewer tarball from here https://code.google.com/p/trizen/
6. unzip the package and navigate to the folder with the build file, right click in the window and choose 'window' then 'terminal here'
7. paste this into the terminal and press return

Code: Select all

perl Build.PL --installdirs vendor --gtk-youtube-viewer
./Build
./Build install --install_path script=/usr/bin
cp /usr/share/perl5/vendor_perl/auto/share/dist/WWW-YoutubeViewer/gtk-youtube-viewer.desktop /usr/share/applications
cp /usr/share/perl5/vendor_perl/auto/share/dist/WWW-YoutubeViewer/icons/gtk-youtube-viewer.png /usr/share/pixmaps
fixmenus
jwm -restart
and that's it ... there's some of the missing icons attached below if you want them
Attachments
icons.pet
(36.66 KiB) Downloaded 670 times
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

Aztk
Posts: 55
Joined: Sat 23 Aug 2014, 02:08
Location: Oaxaca, México

#190 Post by Aztk »

Hi there. I really liked your GTK Youtube Viewer application. I had used it with no problems at Precise Puppy. My problem started to uninstall an application that I used and did not help me (can not remember which application it was), but I installed after installing the GTK Youtube Viewer.

Now from terminal me this error message:

mplayer: could not connect to socket
mplayer: No such file or directory
A picture is worth a thousand words:

http://postimg.org/image/o11sn5l7v/[/url]

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#191 Post by 666philb »

sorry for the late reply

seems you've uninstalled mplayer .... either reinstall or use vlc
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

slenkar
Posts: 228
Joined: Sat 11 Jul 2009, 01:26

#192 Post by slenkar »

thanks for the build guide
Last edited by slenkar on Sat 27 Sep 2014, 19:01, edited 1 time in total.

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#193 Post by 666philb »

what puppy?
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

slenkar
Posts: 228
Joined: Sat 11 Jul 2009, 01:26

#194 Post by slenkar »

I think I forgot to install the libwww and libpango libraries
sorry my mistake

Im using quirky tahir BTW

slenkar
Posts: 228
Joined: Sat 11 Jul 2009, 01:26

#195 Post by slenkar »

It's working now :)

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#196 Post by 666philb »

here's a recipe to install the latest gtk-youtube-viewer on tahrpup & precise

1. install the devx.sfs

2. open the PPM, and type into the find box ....
libwww-perl
libgtk2-perl
lxterminal
and install them and all dependencies

3. open a terminal then highlite the following and paste it into the terminal with 'middle click' and press return

Code: Select all

	
cpan install Data::Dump XML::Fast HTML::Entities URI::Escape Text::CharWidth Term::UI Term::ReadLine Term::ANSIColor File::ShareDir IO::Socket::SSL Term::ReadLine::Gnu::XS
just click ok to any questions

4. grab the youtube-viewer tarball from here https://code.google.com/p/trizen/

5. unzip the package and navigate to the folder with the build file, right click in the window and choose 'window' then 'terminal here'

6. paste this into the terminal and press return

Code: Select all

	
perl Build.PL --installdirs vendor --gtk-youtube-viewer
./Build
./Build install --install_path script=/usr/bin
cp /usr/share/perl5/auto/share/dist/WWW-YoutubeViewer/gtk-youtube-viewer.desktop /usr/share/applications
cp /usr/share/perl5/auto/share/dist/WWW-YoutubeViewer/icons/gtk-youtube-viewer.png /usr/share/pixmaps
fixmenus
jwm -restart 



and that's it ... there's some of the missing icons here http://www.murga-linux.com/puppy/viewto ... h&id=79253
Last edited by 666philb on Tue 12 May 2015, 20:02, edited 5 times in total.
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#197 Post by keniv »

Hi 666philb

Can you tell me if it is possible to do what was done in the previous post for precise and tahrpup for lupu 5286. If so can you tell me if the same procedure will work. If not can you tell me what I have to do.

Regards,

Ken.

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#198 Post by 666philb »

i don't think the newest one builds in lucid puppy (it didn't last time i tried)

is the old pet still working?

EDIT:nope perl too old
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#199 Post by keniv »

As you suggest in your edit it does not work. Search works OK and a blank window appears sometimes with sound. Does this mean there's nothing I can do to get it working again.

Regards,

Ken.

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#200 Post by 666philb »

just tried the old lucid .pet and it worked fine for me
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

Post Reply