gtk-youtube-viewer (for lots of pups)

Browsers, email, chat, etc.
Message
Author
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

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

#201 Post by keniv »

I'll reinstall it and try again. Could it have been affected by installing the bash patch?

Regards,

Ken.

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

#202 Post by Semme »

*Most* videos play on my Lucid. Exactly which Bash patch did you apply?
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

rokytnji
Posts: 2262
Joined: Tue 20 Jan 2009, 15:54

#203 Post by rokytnji »

Tested in

Code: Select all

# cat /etc/os-release
NAME=Puppy
VERSION="6.0"
ID=puppy_tahr
VERSION_ID=6.0
PRETTY_NAME="tahrpup 6.0"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:puppy:puppy_linux:6.0"
HOME_URL="http://puppylinux.com/"
SUPPORT_URL="http://www.murga-linux.com/puppy/index.php"
BUG_REPORT_URL="https://github.com/puppylinux-woof-CE/woof-CE"
Using Bash 4.3. Using 666philb instructions. Needed a reboot after installing perl though before lxterminal will take the cpan command.

Devx install I had to reboot anyways so did the reboot after that .sfs install with shinobars sfs on the fly and lxterminal install. Then ran the cpan after that in lxterminal.

Downloaded and used 666philb script for install from source in /root/downloads/gtkv folder I made after extraction and opening urxvt
in extracted folder.
Worked Like a charm
Videos open in VLC

Thanks 666philb :D .

totolanio
Posts: 202
Joined: Sun 04 Jan 2015, 02:19

#204 Post by totolanio »

So we have to go through all these troubles ? :(
Main puppy used : LxPup tahr.
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=97623]Multiple package installer/remover.[/url]

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#205 Post by LazY Puppy »

Hi.

I had made SFS from this for the Lucid and Precise some time ago, but hadn't used it until tonight.

Tonight I was on the search for some material presenting performances of the Chapman Stick, since I will met a Musician for Sessions on Friday, who is playing a Chapman Stick. Doing this search while watching youtube in the browser did made me somehow angry.

So I did try to use the gtk-youtube-viewer to search for some material and downloading it - used the Lucid version actually.

Very nice application!

Thanks.

Is there a version to come for Tahr?
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

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

#206 Post by 666philb »

LazY Puppy wrote:
Is there a version to come for Tahr?
hi LazY Puppy

there's a build recipe for tahrpup on the top of this page ^
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

terrapin231
Posts: 41
Joined: Mon 21 Mar 2011, 08:45
Location: UK

#207 Post by terrapin231 »

gtk-youtube-viewer not working for me in tahrpup. Nor is Smtube. Suspect this is down to change to api v3(?) by Youtube? Any workaround possible in these two installed packages?, or is it a question of waiting for updated packages to appear? Thanks.

Edit: Apologies, I should have had a look here first -

http://forum.smplayer.info/viewtopic.php?f=4&t=7977 - confirming Youtube api change has resulted in many players/downloaders unable to fetch vids anymore. Seems Smtube has had to morph in a major way (haven't checked out gtk-y.t.v. plans regarding this issue)

SMtube developer has kindly provided code for the new Smtube,available at:
http://forum.smplayer.info/viewtopic.php?f=4&t=7992
Would someone kindly take a look and see whether it could be packaged or worked out for tahrpup? Regrettably, I'm not remotely competent.

Many thanks in advance! All the best,
terrapin231

sindi
Posts: 1087
Joined: Sun 16 Aug 2009, 13:30
Location: Ann Arbor MI USA

youtube-viewer not working at youtube

#208 Post by sindi »

Lupu and Wary (gtk)-youtube-viewer returns only one hit - an error screen
(something about devices). movgrab says Youtube is BROKEN (along with
most other sites checked). Tubemate 2.2.1 still works on android phone.
In theory I could download videos with it, transfer to a computer to watch.
Have not tried youtube-dl. Movgrab with mplayer worked on a 1999 linux
at 233MHz with little RAM ;=(

sindi
Posts: 1087
Joined: Sun 16 Aug 2009, 13:30
Location: Ann Arbor MI USA

youtube-dl works in lupu and wary with mplayer

#209 Post by sindi »

youtube-dl http://youtube.com/watch?v=XXXXXXXX -f 18
downloads at 360p mp4 if available (-f 36 for 320x240 3gp)

-F instead of -f 18 lists available formats. Someone said you can
download audio and video separate (add the two format numbers eg 3+5).
I forget if mplayer can handle the result directly.

flv files download more slowly than 3gp or mp4. The latter two will
play on feature phones. Transfer via sd card or USB cable.

While it is downloading (you will see a file *.mp4.part in the directory
where you were when you typed the above command) you can play the file

mplayer *.mp4*

You can specify where you want the file to download, and the file name.

The download and playing at the same time is using about half my 384MB
memory (I could kill ROX and cups etc. to save memory) and mplayer
is using only 75% of CPU power (X another 19%) on my 800MHz laptop.

This is a lot less jerky than watching Youtube in a browser on a slow
computer with a slow connection. The browser wastes a lot of RAM and CPU
and internet speed can be variable. The download (at least at 3MBps, 360p)
goes faster than mplayer plays. Maybe double the speed, or more.

I had movgrab working like this on a 233MHz Thinkpad with far less memory.
(I think 96MB worked). A version of mplayer compiled to support P55C
also worked on a slow AMD laptop where Youtube would not play in a browser.

I would not go much slower than 800MHz to play at 360p, but 240p works.
Looks similar to viewing on an older cell phone. 144p is hard to see.

terrapin231
Posts: 41
Joined: Mon 21 Mar 2011, 08:45
Location: UK

#210 Post by terrapin231 »

@sindi
Thanks for the info. I couldn't get youtube-dl to work at all on my setup. Could be version problem I suppose but more likely my weakness with command-line code. I tend to rely on gui packages and can only hope that api v3 is accommodated in one soon. By the way, I still run an iPhone 3g and youtube app in that is broken due to api change. Thanks a bunch Youtube/google :x

sindi
Posts: 1087
Joined: Sun 16 Aug 2009, 13:30
Location: Ann Arbor MI USA

GUI for youtube-dl youtube-dlg

#211 Post by sindi »

Search on youtube-dlg or -dlG or dl-GUI for a GUI front-end. There is a package for Ubuntu 14 (Tahrpup).
I have not tried it because the two laptops I have in use right now have too little RAM for tahrpup.
I did get tahrpup working on a 1GB-RAM laptop, with a Chrome (38, 41?) package from Ubuntu and Netflix.

youtube-dl works with Lupu 5.2.5 and Wary 5.5 and even pulp linux (4.1.2 based)! Movgrab works with
Basiclinux (no perl or python needed) at a fraction of the original sites. Could not find an update for
that. cclive is several years out of date.

Thanks for the report that Youtube recently broke youtube-viewer. I set up three slow laptops for my 10 year old
neighbor to play Youtube on with gtk-youtube-viewer last week, and yesterday it would not work on any computer.

The 650MHz plays youtube in a browser jerkily at even 240p. 192MB RAM. youtube-viewer got out of sync.

The 900MHz has an AMD video chip that won't play Youtube in a browser. It used to play it. I have compiled
mplayer for P54C and P55C and it works on AMD K-6 laptops.

The 1200MHz is in theory 2000MHz, but it is a DELL with a broken speedstep wire that causes the cpu to
scale down to 1200MHz, and lupu and wary have broken CPU-frequency-scaling-tool setups.

Pulp and Pup 4.3.1 CPU_frequency scaling work but the Youtube site refuses to play Youtube flash videos
in the browsers that work with pulp (Opera 12.16, qtweb, Flash 17 if you update glibc) - says I don't have flash.
The same browsers work with Youtube in Lupu and Wary (but they use too much memory and the cpu is scaled down).

So now he can watch Youtube at 2.0GHz with youtube-dl at 480p or maybe even 720p using pulp linux (10MB RAM to
boot) if his internet is fast enough. (Ours is not - 3 MBps). He seems happy with 240p.

800MHz/384MB (4.3GB HD with bad boot sector - grub4dos works anyway though I cannot boot to DOS) plays Youtube
videos downloaded with youtube-dl at 360p, no jerks, using pulp. (Can't test sync - no sound in linux.)
top: mplayer 66% cpu, X 16%. memory about 30% of 160MB. I have a 233MHz with 160MB to test at 240p.


The neighbor LIKES command-line. He even showed me how he accesses his gmail 'via command line' (elinks browser).
He can search with elinks for youtube URLS and type or maybe cut and paste the URL.
It impresses his Windows-based friends, and he has two takers for Puppy Linux computers now.
The computers have to do youtube videos and flash games. (The linux games are also appreciated).

The laptops have too little memory for tahr. An updated puppy 5 package of youtube-viewer would help.
Let me know if the youtube-dl GUI works.

sindi
Posts: 1087
Joined: Sun 16 Aug 2009, 13:30
Location: Ann Arbor MI USA

watching youtube at 233MHz

#212 Post by sindi »

youtube-dl with pulp linux 233MHz 160MB RAM downloaded mp4 360p (-f 18) and started watching with mplayer while it
was still downloading (mplayer *part*). CPU 86-95%, memory only about 50%. I have watched on another 233MHz with 96MB
memory but I think only at 240p. The video chip on this one may be faster. Compaq Prosignia 120 from 1999 with
a 1024x768 screen and lovely keyboard. (Could not get the sound to work - opl3sa2?).

It seems a bit slower than usual (hard to tell without sound) but mplayer -framedrop seems to fix that.
I can kill X (Ctrl-Alt-Backspace), load fbcon (there is a pet for it - thanks to pizzasgood)
and boot with vga=788 (800x600 pixels), and run mplayer from a terminal with framebuffer video:

mplayer *.mp4

No faster than with X - since there is enough cpu and memory either way.

I don't think -framedrop or -hardframedrop work here - just for DVDs.

sindi
Posts: 1087
Joined: Sun 16 Aug 2009, 13:30
Location: Ann Arbor MI USA

youtube-dl works 500MHz 160MB 360p

#213 Post by sindi »

DELL Inspiron 3700 500MHz 190MB lupu 5.2.8 uses only about 160MB to play 360p, and 72% of CPU.
Not at all jerky, and the sound is in sync. I checked with fbdev and in X. mplayer -fs for fullscreen in a terminal
centered with black around it.

gtk-youtube-viewer again gives only https;//youtube.com/devicesupport (error message in full color).

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

#214 Post by 666philb »

seems to be no fix for gtk-youtube-viewer yet ...and even if there is i doubt it will be able to be made for wary & lucid as it needs a newer perl, but we'll see

i'm will be updating smtube for tahrpup.. should be in quickpet soon.

users of older pups wary & lucid etc, i recommend installing greasemonkey addon for your browser https://addons.mozilla.org/en-US/firefo ... asemonkey/
and using the viewtube script http://isebaro.com/viewtube/?ln=en

this allows you to stream youtube with mplayer or vlc and also allows downloading
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

sindi
Posts: 1087
Joined: Sun 16 Aug 2009, 13:30
Location: Ann Arbor MI USA

updated gtk-youtube viewer for puppy 5

#215 Post by sindi »

The puppy 5 packages seem to have perl incorporated in them. When I installed the lucid package in tahr it messed up
the package manager because of perl files being overwritten. So maybe the packages could be updated with newer perl.

Post Reply