gtk-youtube-viewer (for lots of pups)
-
- Posts: 123
- Joined: Mon 26 Jan 2015, 20:38
- Location: Ohio
mikeb Ii tried that and it got me thinking about what smplayer basically does: gets the video url via youtube-dl so i wrote a script called getYT.sh wich gets the video in 3gp format.
then i created a more advanced script called playYT.sh which
automaticly saves the video in 3gp format toi the filename:
then it plays that file with mplayer!
so to play a video i type this in a terminal:
followed by the video url
just make sure that the directory:
exists and that playYT.sh is in a bin folder (ex: /root/my-applications/bin) and has permission to run! and you will need youtube-dl in a bin folder as well! check it as well to ensure that it can run!
Edit: created a forum topic: http://murga-linux.com/puppy/viewtopic.php?t=100401 -you can find the .PET there
then i created a more advanced script called playYT.sh which
automaticly saves the video in 3gp format toi the filename:
Code: Select all
/root/my-applications/playYT/playYT.3gp
so to play a video i type this in a terminal:
Code: Select all
playYT.sh
just make sure that the directory:
Code: Select all
/root/my-applications/playYT/
Edit: created a forum topic: http://murga-linux.com/puppy/viewtopic.php?t=100401 -you can find the .PET there
- Attachments
-
- playYT-v1-1.tar.gz
- contains:
playYT.sh v-1.1 automatically plays specfied youtube video
getYT.sh v-1.0 (see above)
2 help files (txt) playYT-help.txt and YT-help.txt - (794 Bytes) Downloaded 307 times
-
- Posts: 123
- Joined: Mon 26 Jan 2015, 20:38
- Location: Ohio
playYT.sh a script for playing youtube videos on older pups
version 1.3 is here (after 2 days ) and it adds special dialog scripts for playYT.sh and getYT.sh you will find that these dialog scripts have menu entries.
http://murga-linux.com/puppy/viewtopic.php?t=100401
anyone running older pups like Wary that wants to watch youtube videos without using flash or viewtube might want to try it.
I'm still amazed that i actually programmed myself out of this dilemma!
cool what a little bash scripting can do isn't it?
http://murga-linux.com/puppy/viewtopic.php?t=100401
anyone running older pups like Wary that wants to watch youtube videos without using flash or viewtube might want to try it.
I'm still amazed that i actually programmed myself out of this dilemma!
cool what a little bash scripting can do isn't it?
-
- Posts: 123
- Joined: Mon 26 Jan 2015, 20:38
- Location: Ohio
playYT.sh a script for playing youtube videos on older pups
true, but i programmed it for myself basically. and after getting tired of restarting my browser after every 2 to 3 videos i just wanted something simple.mikeb wrote:You may find your simple approach is too simple for many who prefer life to be complicated and hard...seems to apply to life in general
mike
that works.
when i tested playYT.sh the first (successful) time i was surprised by how smoothly the video ran. This is because when mplayer starts youtube-dl has already saved the entire video. making it useful on slower systems that have trouble using youtube in a browser.
i programmed the GTKplayYT scripts because i wanted to challenge myself and practice bash scripting. the end result is no gtk youtube viewer or smplayer, but it works.
The best distro is the one you make yourself....
Some videos are ok to watch while downloading but some are not...I believe its to do with the location of the mov atom/index ... mp4 which is common has it at the end by default which is no good for streaming which is why its the most popular streaming format lol.
I have a tiny bash script with gui for using dropbox...their software is almost unusable now on our setups....and the web interface too.
In a world hell bent on complication and confusion its good to take a simple approach
mike
Some videos are ok to watch while downloading but some are not...I believe its to do with the location of the mov atom/index ... mp4 which is common has it at the end by default which is no good for streaming which is why its the most popular streaming format lol.
I have a tiny bash script with gui for using dropbox...their software is almost unusable now on our setups....and the web interface too.
In a world hell bent on complication and confusion its good to take a simple approach
mike
-
- Posts: 123
- Joined: Mon 26 Jan 2015, 20:38
- Location: Ohio
playYT.sh a script for playing youtube videos on older pups
mike i have just posted a revamped version of GTKplayYT (its version 2.0) among its new features is the ability to choose the format! i was able to use a $VALUE linked to a format entry-box on both the extension of the temporary video file that is deleted at the end of playYT2.sh and the youtube-dl -f valuemikeb wrote:The best distro is the one you make yourself....
Some videos are ok to watch while downloading but some are not...I believe its to do with the location of the mov atom/index ... mp4 which is common has it at the end by default which is no good for streaming which is why its the most popular streaming format lol.
I have a tiny bash script with gui for using dropbox...their software is almost unusable now on our setups....and the web interface too.
In a world hell bent on complication and confusion its good to take a simple approach
mike
please see the forum topic for the .PET package and updates:
http://murga-linux.com/puppy/viewtopic.php?t=100401
Last edited by TecnoGuy458 on Fri 31 Jul 2015, 01:32, edited 7 times in total.
How to download smtube and smplayer
How do I download ninotix's files? If I click on download I get a 297K .gz file not the smtube pet. Using Slacko's default Firefox.
I first tried a slightly later version of smtube that required libQtWebkit.so and also libphonon.
Will smtube work (1) without smplayer and (2) on a p3?
gtk-youtube-viewer worked nicely on a 500Mhz laptop.
I gave up collecting dependencies for minitube.
Netflix requires a recent Chrome which won't work on a P3.
I first tried a slightly later version of smtube that required libQtWebkit.so and also libphonon.
Will smtube work (1) without smplayer and (2) on a p3?
gtk-youtube-viewer worked nicely on a 500Mhz laptop.
I gave up collecting dependencies for minitube.
Netflix requires a recent Chrome which won't work on a P3.
Yet another, MAJOR garbage storage site.. Do you not see the dwnld icon?
If your dwnld turns up a gz, rename it pet and install!
And you quit MT? Good --JUNK!
Yep! Attitude Wednesday..
If your dwnld turns up a gz, rename it pet and install!
And you quit MT? Good --JUNK!
Yep! Attitude Wednesday..
- Attachments
-
- garb-1.jpg
- (1.02 KiB) Downloaded 1632 times
-
- garb-2.jpg
- (32.73 KiB) Downloaded 1640 times
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
smplayer/smtube working without sound in tahr
The 297K gz file appeared to be too small to work.
It was listed as being several MB.
I needed three packages and several unpackaging programs.
Quickpet smplayer downloaded and installed
qt 4-4.80 pet - unpackaged with tar -zxvf
I had an smtube already in /usr/bin, maybe it came
with smplayer, but it was too old to work with youtube.
A 15.15.17 smtube pet I found refused to install, possibly because of
how it is compressed - see below).
Downloaded the smtube 15.15.17 deb package from the smtube site.
the deb file would not unpackage with dpkg-deb
(I had run into that with minitube - the package
had been compressed with xz that time).
I presumed it would also not install either.
I used ar -x (from basiclinux busybox, along with its required lib)
and got a data.tar.lzma which I unpacked somehow with unlzma
to get a data.tar which I unpacked with tar -xvf.
I copied over a small smtube binary to /usr/bin and threw
out the rest (icons, docs).
ldd smtube revealed libphonon.so.4 was missing.
I copied cp -a libphonon.* to /usr/lib (from where I
had unpacked it in /opt/qt4). Did not need anything
else from this rather large qt pet.
"smtube" now loads suggestions. If I type "smtube -v"
hoping for the version it gives me a search dialog
without all the unwanted suggestions/thumbnails.
Have not read instructions - maybe smtube subject or URL.
I started playing one video - sound was way out of sync so
I stopped it and changed from default 720p to 360p
(suitable for my 1GHz laptop, sometimes 480p works too).
I restarted the video and there was no longer sound.
Tried other videos, exited and restarted smplayer/smtube.
Still no sound.
Mplayer internet radio works. Opera youtube works. With sound.
This is Tahr 6.02 with 6.03 update. Inspiron 8100 Pentium 3.
I did not try rebooting.
On both P3s, f for fullscreen sort of works. On the DELL 8100
it enlarged smplayer to full screen and removed the controls,
then toggled back the controls but kept it full screen.
In XP on a T23 thinkpad, F toggles controls on and off and also
changes the shape of the image - wider, higher, through several
different shapes, all of which have heads and feet cut off.
That is a very screwy French-keyboard computer where Slacko
viewnior cannot find any images (icons, backgrounds). I will
try smtube in linux on it. Also the keyboard mapping is very
strange (not very similar to the French markings on it) and
onscreen keyboard is mapped the same. Attempting to fast
forward triggers sound loops.
Have only tried Tahr, not Precise, Slacko, etc.
Any ideas how to fix the sound? I also posted to smplayer forum.
It was listed as being several MB.
I needed three packages and several unpackaging programs.
Quickpet smplayer downloaded and installed
qt 4-4.80 pet - unpackaged with tar -zxvf
I had an smtube already in /usr/bin, maybe it came
with smplayer, but it was too old to work with youtube.
A 15.15.17 smtube pet I found refused to install, possibly because of
how it is compressed - see below).
Downloaded the smtube 15.15.17 deb package from the smtube site.
the deb file would not unpackage with dpkg-deb
(I had run into that with minitube - the package
had been compressed with xz that time).
I presumed it would also not install either.
I used ar -x (from basiclinux busybox, along with its required lib)
and got a data.tar.lzma which I unpacked somehow with unlzma
to get a data.tar which I unpacked with tar -xvf.
I copied over a small smtube binary to /usr/bin and threw
out the rest (icons, docs).
ldd smtube revealed libphonon.so.4 was missing.
I copied cp -a libphonon.* to /usr/lib (from where I
had unpacked it in /opt/qt4). Did not need anything
else from this rather large qt pet.
"smtube" now loads suggestions. If I type "smtube -v"
hoping for the version it gives me a search dialog
without all the unwanted suggestions/thumbnails.
Have not read instructions - maybe smtube subject or URL.
I started playing one video - sound was way out of sync so
I stopped it and changed from default 720p to 360p
(suitable for my 1GHz laptop, sometimes 480p works too).
I restarted the video and there was no longer sound.
Tried other videos, exited and restarted smplayer/smtube.
Still no sound.
Mplayer internet radio works. Opera youtube works. With sound.
This is Tahr 6.02 with 6.03 update. Inspiron 8100 Pentium 3.
I did not try rebooting.
On both P3s, f for fullscreen sort of works. On the DELL 8100
it enlarged smplayer to full screen and removed the controls,
then toggled back the controls but kept it full screen.
In XP on a T23 thinkpad, F toggles controls on and off and also
changes the shape of the image - wider, higher, through several
different shapes, all of which have heads and feet cut off.
That is a very screwy French-keyboard computer where Slacko
viewnior cannot find any images (icons, backgrounds). I will
try smtube in linux on it. Also the keyboard mapping is very
strange (not very similar to the French markings on it) and
onscreen keyboard is mapped the same. Attempting to fast
forward triggers sound loops.
Have only tried Tahr, not Precise, Slacko, etc.
Any ideas how to fix the sound? I also posted to smplayer forum.
Sindi, forget this app and try GTK_Play-YT instead.
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
Smplayer/SMtube working with Precise 5.7.1 retro
Semme wrote:Sindi, forget this app and try GTK_Play-YT instead.
Re: Smplayer/SMtube working with Precise 5.7.1 retro
It appears that you need to type in the URL to play a video with that player. Same as for using youtube-dl directly.sindi wrote:Semme wrote:Sindi, forget this app and try GTK_Play-YT instead.
I want a Youtube search engine. This setup is for 10 year olds with little patience.
Precise works (I copied over smtube and smplayer, and put the required qt libs on the path in /etc/profile and also three icu libraries that Precise needs). Lupu may also work.
Smplayer requires also /usr/local/ssl/cacert.pem.
It played sound the first time then no sound.
I changed the settings of smtube to use mplayer instead.
Sound now works, as does f and q.
No need for cacert.pem.
The required libraries total about 35MB.
SMtube is about 350K, SMPlayer 3MB.
smplayer.ini prevents sound working with smplayer
Using the smplayer from Tahr quickpet and the latest smtube from their site, I lose sound after the first video (or if I stop it) until I delete /root/.config/smplayer/smplayer.ini
Maybe it can be edited back to some default.
I reported this at the smplayer forum. A newer smplayer may have fixed the problem. Tahr's smplayer package also appears to have an out of date (useless therefore) smtube.
mplayer (change View/Settings to put it at the top) works fine instead of smplayer. f and q also work. Page Up forwards without problems.
Same results in Tahr, Precise and Lupu. (I may have added mplayer to one or more of them). The latter two need the icu libraries as well as qt libraries for smplayer.
cacert.pem is also useful in lynx (no more questions about ssl).
Maybe it can be edited back to some default.
I reported this at the smplayer forum. A newer smplayer may have fixed the problem. Tahr's smplayer package also appears to have an out of date (useless therefore) smtube.
mplayer (change View/Settings to put it at the top) works fine instead of smplayer. f and q also work. Page Up forwards without problems.
Same results in Tahr, Precise and Lupu. (I may have added mplayer to one or more of them). The latter two need the icu libraries as well as qt libraries for smplayer.
cacert.pem is also useful in lynx (no more questions about ssl).
here's an updated recipe to build gtk-youtube-viewer on tahrpup
1. install the devx.sfs
2 vlc needs updating so open a terminal an paste in
3. open the PPM, and type into the find box ....
libwww-perl
libgtk2-perl
libjson-perl
lxterminal
and install them and all dependencies
4. open a terminal then highlite the following and paste it into the terminal with 'middle click' and press returnjust 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
and that's it ... there's some of the missing icons here http://www.murga-linux.com/puppy/viewto ... h&id=79253
1. install the devx.sfs
2 vlc needs updating so open a terminal an paste in
Code: Select all
petget http://ftp.nluug.nl/ibiblio/distributions/puppylinux/pet_packages-tahr/vlc-2.2.0_tahr.pet
libwww-perl
libgtk2-perl
libjson-perl
lxterminal
and install them and all dependencies
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 Term::ReadLine::Gnu::XS Mozilla::CA JSON::XS HTTP::Request LWP::Protocol::https LWP::UserAgent::Cached
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/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
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
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331
Thanks for instructions for building gtk-youtube-viewer
On my next computer (with enough free hard drive space) I will attempt to follow your very detailed instructions.
You must have spent days (months?) figuring this out. Any chance you could put together a package with all the
pieces for one or more puppies for those of us with less time and knowledge?
Can gtk-youtube-viewer be set to use mplayer instead of vlc?
smtube/mplayer will NOT work on my Thinkpad T23 Pentium III 1.13GHz (with French keyboard, which does not match what I
type in Puppy set to English), a few months newer than the Dell Inspiron 8100 where it DOES work. smtube loads and
displays a list of matching videos for my search but nothing happens when I click on a title. Mplayer itself works if I
download an mp4 with youtube-dl. Sound (intel) works in lupu 5.2.5 and wary 5.5 after you set the mixer not to mute it.
(Slacko has no sound, and the video is so messed up in various ways that I won't bother with it). I tried smtube in all
three, same results.
Youtube works in Opera with libflashplayer 10.3 if I run xorgwizard manually and select 24-bit color. 1024x768 works.
xrandr and the xorg setup program (based on xrandr) think I can display 1600x1200 - maybe externally. I can watch
at 240p with the sound not quite synchronized.
mplayer plays a downloaded/downloading file perfectly at 360p (probably even at 480p).
I copied the URL from the rxvt in which I started smtube, instead of a search engine.
My 10 year old neighbor watched me copy over several library files that I forgot, and then symlink them (why no ldconfig
in puppy?), and is excited about getting youtube watchable on old laptops again (266-866MHz, 160-512MB). He has been
giving my collection of them to his friends with wary, lupu, slacko, precise and tahr (only one had enough ram for
tahr). Along the way he tried Zorin (would not install) and other ubuntus (various problems with them) and tinycore and
basiclinux..... He is now a puppy devotee. He just ran off with my 866MHz DELL P3 (and was supposed to bring back the
netbook with puppeee - I operate a lending library of puppies), that has smplayer/smtube working in XP (not very well)
and we hope to put smtube on it. I added some puppy via a windows exe installer. (No CD or floppy drive, no USB boot).
You must have spent days (months?) figuring this out. Any chance you could put together a package with all the
pieces for one or more puppies for those of us with less time and knowledge?
Can gtk-youtube-viewer be set to use mplayer instead of vlc?
smtube/mplayer will NOT work on my Thinkpad T23 Pentium III 1.13GHz (with French keyboard, which does not match what I
type in Puppy set to English), a few months newer than the Dell Inspiron 8100 where it DOES work. smtube loads and
displays a list of matching videos for my search but nothing happens when I click on a title. Mplayer itself works if I
download an mp4 with youtube-dl. Sound (intel) works in lupu 5.2.5 and wary 5.5 after you set the mixer not to mute it.
(Slacko has no sound, and the video is so messed up in various ways that I won't bother with it). I tried smtube in all
three, same results.
Youtube works in Opera with libflashplayer 10.3 if I run xorgwizard manually and select 24-bit color. 1024x768 works.
xrandr and the xorg setup program (based on xrandr) think I can display 1600x1200 - maybe externally. I can watch
at 240p with the sound not quite synchronized.
mplayer plays a downloaded/downloading file perfectly at 360p (probably even at 480p).
I copied the URL from the rxvt in which I started smtube, instead of a search engine.
My 10 year old neighbor watched me copy over several library files that I forgot, and then symlink them (why no ldconfig
in puppy?), and is excited about getting youtube watchable on old laptops again (266-866MHz, 160-512MB). He has been
giving my collection of them to his friends with wary, lupu, slacko, precise and tahr (only one had enough ram for
tahr). Along the way he tried Zorin (would not install) and other ubuntus (various problems with them) and tinycore and
basiclinux..... He is now a puppy devotee. He just ran off with my 866MHz DELL P3 (and was supposed to bring back the
netbook with puppeee - I operate a lending library of puppies), that has smplayer/smtube working in XP (not very well)
and we hope to put smtube on it. I added some puppy via a windows exe installer. (No CD or floppy drive, no USB boot).
How to add smtube to Tahrpup 6.0.2
I just confirmed on a fresh Tahr installation that you need to:
(1)Install smplayer from Quickpet (or possibly just the libraries from that package that smtube requires if you will use mplayer instead)
(2)Delete smtube (which is too old to download from the latest youtube incarnation).
(3)Replace it with the latest smtube binary (from Ubuntu, or http://keesan.freeshell.org/puppy/smtube - chmod +x it after download)
(4)You also need libphonon.so.4 and libQtWebKit.so.4, which I got from two large deb and rpm packages. libphonon is at my site above but the other is 18MB
and my site is full to bursting. I symlinked to libQtWebKit.so.4.7 (in the Qt library package).
(5) You also need /usr/local/ssl/cacert.pem - at my site above.
Is there some place central I can post a package of all this (a tar.gz to unpack in /)?
(1)Install smplayer from Quickpet (or possibly just the libraries from that package that smtube requires if you will use mplayer instead)
(2)Delete smtube (which is too old to download from the latest youtube incarnation).
(3)Replace it with the latest smtube binary (from Ubuntu, or http://keesan.freeshell.org/puppy/smtube - chmod +x it after download)
(4)You also need libphonon.so.4 and libQtWebKit.so.4, which I got from two large deb and rpm packages. libphonon is at my site above but the other is 18MB
and my site is full to bursting. I symlinked to libQtWebKit.so.4.7 (in the Qt library package).
(5) You also need /usr/local/ssl/cacert.pem - at my site above.
Is there some place central I can post a package of all this (a tar.gz to unpack in /)?
hi sindi .. if you update tahrpup to the latest (both service packs and tahrpup updates) ... the smtube available in quickpet works
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
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331
smtube works after Tahrpup update
I thought I had already updated but I forgot you need to reboot twice before anything is actually saved.
I clicked update several times and may have gotten more than one update this time (tahrfix7).
smtube appeared on the list of Video pets and installed the latest version which works.
I still need all the other stuff for older pups (and many more libs as well).
I just fixed a former neighbor's 'very slow' XP computer by adding Puppy to it.
(XP automatic update trying to update, and two antivirus programs, made it unusable).
Thanks!
I clicked update several times and may have gotten more than one update this time (tahrfix7).
smtube appeared on the list of Video pets and installed the latest version which works.
I still need all the other stuff for older pups (and many more libs as well).
I just fixed a former neighbor's 'very slow' XP computer by adding Puppy to it.
(XP automatic update trying to update, and two antivirus programs, made it unusable).
Thanks!