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

mplayer won't play flv; browsers use too much memory

#141 Post by sindi »

Mplayer plays a downloaded mp4 (or part of it) but not an flv - I get an error message instead. (I think it played the first one but no others). A 240p download is flv, a 360p mp4.

Firefox 3 is using about 130% of memory including pluginwrapper.
Mplayer uses ony a few percent.

Youtube with firefox even at 240p is extremely jerky but the sound is at least in sync.

I can watch youtube at 240p on a 2006 PocketPC with 312MHz cpu - so why not on here?

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

slow download speed of Youtube downloader

#142 Post by sindi »

The download manager shows mp4 or flv (or two at once) downloading at a total of 68kps whether or not I am also streaming the video at the same time. At this rate it will take longer to download than to play. 108MB for 46min of 240p flv file (which won't even play with mplayer).

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

command line video downloaders

#143 Post by sindi »

smtube requires qt - can't get the right combination of libraries
youtube-dl requires python

cclive compiled for puppy 4 (two older versions) gives me error messages CLI or with the provided GUI - won't download files. Does anyone else have it working? Latest stable version is 0.7, compiled versions are 0.2.6 and 0.5.7. I only tried at Youtube.

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

#144 Post by keniv »

Changed the video output to x11 and this seems to have solved the video and sound sync problem.

Ken.

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#145 Post by mikeb »

Mplayer plays a downloaded mp4 (or part of it) but not an flv
Old version of mplayer?...flv could be soreson spark or google vp6.
Firefox 3 is using about 130% of memory including pluginwrapper.
A bloated version...3.5 or 3.6 you might find better though with your spec 1.5 might make more sense...thought you disabled the pluginwrapper? opera? qtweb? links?? dillo???

cclive..I abandoned years ago ..was used for a downloader here but its dependancies got silly.
I can watch youtube at 240p on a 2006 PocketPC with 312MHz cpu - so why not on here?
that 312 is equivalent to a 1000MHz plus intel cpu....now if you could hook up the monitor to it......
Changed the video output to x11 and this seems to have solved the video and sound sync problem.
most odd..X11 is the least efficient method...bad video driver maybe?

framedropping is usually the most likely way to improve sync....sync is not mplayers strong point...+ and _ will shift sound.
The download manager shows mp4 or flv (or two at once) downloading at a total of 68kps
if you have bandwidth limits that won't be solved by player options.
why am I still here?
don't know really.... a weakness I suppose.

mike

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

youtube downloader for puppy 4 etc.

#146 Post by sindi »

The mplayer is 1.0pre8. (A downloaded puppy 4 pet?).
Firefox is 3.6.28. It will not download l add-ons from addons.mozilla.org so I did a web search for a youtube downloader to use with it. Sothink free version.
If I disable the plugin wrapper I don't think I can use the youtube downloader. I disabled it in Opera on the 600e to improve memory usage.
Opera won't play flash (youtube) on that computer in puppy 4.3.1 despite ldd not finding any missing dependences for libflash in /usr/lib/mozilla/plugins. On my faster laptop neither of the Opera youtube downloaders produces the download button - other people have had this problem and i have not solved it. I was using firefox 3.6.28 because the
mozilla-site add-ons required at least that version.
I don't know a way to download youtube using links or dillo and did not try qtweb on that computer but in another experiment it used no less cpu or ram than firefox for playing youtube.
That was someone else's comment about changing video to x11. I cannot use vo -fbdev or vesa on that computer because I can't even use a regular terminal - pink/blue pattern. I will run some experiments on a computer that supports framebuffer. (The DELL inspiron 2500 that won't run Wary does not).
I tried -hardframedrop with mplayer (and x11) to no effect. Sound still way off even at 240p playing youtube inside a browser, or at 360p with mplayer.
My normal download speed is 2.4Mbps (240Kbps). I don't know why it was so much lower (68Kps) using the youtube downloader. This is about the same speed as if I watched from the browser. Maybe a paid version would be faster than this free one I found. I will experiment with other downloaders in a later firefox or seamonkey.

"Why am I still here" was someone else's comment. I am looking for a way to play Youtube videos with mplayer on older computers.

I have at least two computers where Wary 5.5 won't boot due to kernel panic and one where it won't boot because lilo won't work and one where it only runs at 40% of rated speed because cpufreq is not behaving as it does in Puppy 4. (I have not yet tried other Puppy 5's). Still looking for a solution for Puppy 4 that works with mplayer , not only to avoid the high usage of memory and ram I prefer the keyboard navigation even for faster computers with 512MB RAM.

Anyone want to test if cclive still works with Youtube? Maybe a newer version than 0.5.7 is required.

I found also a command-line movgrab but the older of the two pets (1.1.2) has a broken link and 1.1.3 is for glibc 2.15. (What puppy uses that?). I have updated both puppy 4's glibc to 2.11.3. Movgrab does not require gtk, qt, python, or perl, but won't compile in my very old basiclinux (with a much older glibc and 2.4 kernel).

I could try using wget to download a youtube video (as swf?) then find some way to play it with mplayer (convert it with ffmpeg?).

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#147 Post by mikeb »

The mp4 downloader on mozilla might want a newer browser...I have 3.6 and the latest it offers is 1.5.18 .. so attached is an older version which might work as is or can be updated via the addons dialog to 1.5.18

last cclive was a couple of years ago it seems and thats not new enough to work with current you tube config.

mike
Attachments
download_youtube-1.4.6.zip
(12.03 KiB) Downloaded 309 times

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#148 Post by mikeb »

Ok sort of related info since we are generally dealing with downloading and playing you tube on older hardware..

Did some double checking...was running 4.12.... using the firefox (3.5) addon above downloaded a video. Indeed flv downloads much slower but still faster than needed for playback.

I played the flv and the mp4 using both vlc 0.8.6i and mplayer (~rc2..circa 2009) as they downloaded no problem. Machine is a pentium 3 but maxed out so plays this stuff easily but still jerky if using flash player. old machine, old software, old puppy.

Nv driver in use rather than the full nvidia one by the way.

mike

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

#149 Post by rokytnji »

Well, I'm gonna go with mini-tube instead I guess. I will be unstalling 3.0.9 in SlackO 5.6 for now.
Attachments
minitube.jpg
Zatoichi, my hero
(36.66 KiB) Downloaded 935 times

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#150 Post by mikeb »

rokytnji ...looks neat.... was libphonon a problem at all.... the sources look straightforward otherwise....qt4.5+ / qmake stuff

mike

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

#151 Post by rokytnji »

was libphonon a problem at all..
It was the first error on startup for 1.8 mintube for dpup.

I'm still wrestling it.

my previous post was showing minitube wotking in my Carolina 1.1 install from Carolina package manager. It is a older version because on open I got a update message.

I was thinking of trying to get a .xz Slackware package installed of the version 2 but I might have spoken too soon of running minitube in SlackO.

I did not realize phonon was such a b____. :roll:

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

youtube downloader with player uses 1/4 cpu of firefox/flas

#152 Post by sindi »

I got an Opera flash downloader working once then the Download button disappeared. It offered rather nonstandard download resolutions (270p MP4, not 360p). Opera crashed.

Firefox 3 crashes on this D600 so I used Firefox 17 and the posted youtube downloader works well and offered 240p flv or 360p mp4. I told it to open the files with mplayer.

The flv downloads at 58Kb/sec. The mp4 at 310Kb/sec (It is less than twice the size).
So I could download a video in about 1/4 or 1/5 the time it takes to view it at 360p, but I cannot download it in reasonable time as a 240p flv.

Mplayer did not start while the files were downloading.

Firefox crashed.

I was able to kill -9 all the browser processes. I have 1GB RAM and used/killed one browser at a time.

Firefox/flash uses 60% of 1GB memory and 77% of 1.6GHz cpu power.
Mplayer uses 60% of the memory but only 5% of the cpu power, so I am hoping
it will play 360p MP4s on the 400Mhz computer (where it has to be X not -vo vesa or -vo fbdev).

A CLI downloader would still be helpful - cclive, movgrab, clipgrab.

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

mplayer -vo fbdev and fbdev2

#153 Post by sindi »

I can switch to a terminal and play the same mp4.
I am using framebuffer console and vga=791 (1024x768 resolution).
The 480x360 pixel mp4 plays in about 1/4 of the screen, with sound, using fbdev or fbdev2 instead of x11. fbdev2 lets me switch consoles and continue to play the video while running 'free'.

I could download a video using Firefox in X11, then exit X and play it with mplayer
and fbdev to save cpu.

17% of 1.6GHz is under 300Mhz so I should be able to view a 360p video with mplayer (and without X running) on a 300Mhz computer that supports framebuffer video. My two best candidates for MP4 players do not - 400MHz screen turns pink and blue if you try to start a terminal, and 900MHz DELL Inspiron 2500 does not do framebuffer at all.
X probably does not use a whole lot more cpu power than fbdev so I will try the 400Mhz Thinkpad 600e for playing a 360p video with mplayer after downloading with Firefox and the Youtube downloader and plan on waiting 10 min for the download before playinig a 40 min video. Not enough cpu power for Firefox and mplayer together.

Still looking for a CLI mp4 downloader so I can play an mp4 while it downloads.
Can anyone set up for compiling for 4.1.2 compile cclive, movgrab, or clipgrab?

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

#154 Post by rokytnji »

A CLI downloader would still be helpful - cclive, movgrab, clipgrab.
I guess youtube-dl I posted did not work n 4.12 also.

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

Standalone y outube-dl works perfectly in 4.1.2-based pulp03

#155 Post by sindi »

I posted the details in that topic discussion.
Can I pipe the output of the download to mplayer?
I don't see an mp4.temp like I got with a youtube-downloader plugin, that I could
play as it downloaded.

Just under 12 min ETA to download a 45 min video, or 4:1.
I can read a project gutenberg short story while waiting, and start another
download while watching one video.

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

Can play downloading mp4

#156 Post by sindi »

I found a large piece of the latest 45 min download ending in .mp4.part in /root, after the file system filled up and the download stopped (with the usual red warning at screen top). Mplayer could play it.

youtube-dl --help

It is not obvious how to download to a specific location, but I think I can download lower quality mp4s to play on slower computers. A configuration file or script will help.
It will be fun watching 240p videos at 233MHz in 96MB RAM with mplayer -vo fbdev.

I just installed wary 5.5 to our fastest laptop (2008) and gtk-youtube-viewer works perfectly.
Too easy. Thanks to everyone contributing these useful packages.

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#157 Post by mikeb »

Hmm yes you were trying to play the download final name rather then the .part version and you do seem to have had a lot of instability problems.

well there ya go..

libphonon...yes I compiled marble but left out libphonon...was the thing that made me wonder about minitube.... its just yet another cooky sound system I believe but it said you must have a working phonon system for this to be happy ...interesting older version behaved better...one to try.

mike

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

Can wary pet be installeed to puppy 4?

#158 Post by sindi »

I tried to install the viewer in pulp puppy (4.1.2) to try it without gtk (since someone said that might be what is not working) and it did not install - no files were copied and the puppy package manager had no record of it.

So I untarred the pet (tar -zxvf) and looked at the youtube-viewer file, which is a script,
and tried running it.

./youtube-viewer complains of not having perl 5.10.

I got the perl 5.10.1 package from Carolina puppy (a puppy 5) and typed petget perl*pet
and it made one empty directory in /usr/lib/perl5 and did not copy over any files from
the 10MB package.

Even if gtk in Puppy 4 is too old, could the non-graphical youtube-viewer be made into a puppy 4 package, maybe by including the minimum required files from perl 5.10? I tried copying over the perl5.10.1 binary and the perl files in the pet, but not the rest of the files in the perl 5.10 package so it is missing a lot of .pm's. I don't want to install 10MB of perl 5.10 most of which is irrelevant (small hard drive).

I don't know what pieces of the package are used only by the gtk viewer.

The non-gtk youtube viewer would be helpful on old slow computers that won't run newer puppies (kernel incompatibility).

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

Watching youtube at 233MHz with puppy 4.3.1

#159 Post by sindi »

See the youtube-dl discussion for details. Summary:
Thinkpad 560X, P55C (i586), 160MB memory, 233MHz, 800x600 XOrg,
no framebuffer support.

Puppy 4.3.1 and 4.1.2 have glibc 2.6. I updated to 2.10.2 with a deb
package.

Puppy 4 mplayer does not support P55C. The Pulp mplayer (4.1.2 based)
does.

Opera 10 cannot even display the youtube page without freezing up due to
running out of memory.

Youtube-dl downloads 3gp (-f 17, 144p), flv (-f 5, 240p), or mp4 (-f 18,
360p), all at full bandwidth (unlike the Firefox plugin). I could watch
the first two with mplayer in X11 (no fbdev available for the hardware)
without jerkiness or out-of-sync sound. The mp4 played very slowly with
sound way out of sync. The 240p used about 41% of cpu for mplayer and
8% for X. The 360p uses about 91% mplayer and 3% X, and mplayer told me
my computer was 'too SLOW'. Other processes used a bit of cpu even
after killing ROX-filer, blinky, etc. I waited for downloads to
complete before playing anything. Memory usage was about 15% of my
160MB (25MB) for X plus mplayer - far far less than used by a graphical
browser even without flash.

P55C was released Jan 1997. I can watch youtube on a 17 year old
laptop now.

In theory 144p should play on a 166MHz P55C with 128MB memory, or maybe
only 96MB. 240p should work at 200MHz. Would full puppy use less
memory than frugal?

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

#160 Post by rokytnji »

In theory 144p should play on a 166MHz P55C with 128MB memory, or maybe
only 96MB. 240p should work at 200MHz. Would full puppy use less
memory than frugal?
I wouldn't waste a frugal install on any of your specs. A full install with /swap would be the only path I would choose for anything under 512MB of ram and even them I might go with a full install with 512MB with a 700MB /swap or swap file.

Post Reply