Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 20 Aug 2018, 07:31
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
gtk-youtube-viewer (for lots of pups)
Post new topic   Reply to topic View previous topic :: View next topic
Page 19 of 22 [316 Posts]   Goto page: Previous 1, 2, 3, ..., 17, 18, 19, 20, 21, 22 Next
Author Message
sindi

Joined: 16 Aug 2009
Posts: 853
Location: Ann Arbor MI USA

PostPosted: Tue 27 Mar 2018, 19:12    Post subject: ipw2x00 installed but no wifi signal with ipw2100 debiandog  

I downloaded the ipw2x00 package on another laptop and moved it via USB flash drive. I had to agree to a license agreement using a confusing sequence of arrow keys. It appears to have installed.
There are a few ipw type modules inserted (libipw ipw2100).

Still no wifi signal found by debiandog wheezy.

The card works in wary 5.5 puppy.
Back to top
View user's profile Send private message 
sindi

Joined: 16 Aug 2009
Posts: 853
Location: Ann Arbor MI USA

PostPosted: Tue 27 Mar 2018, 19:29    Post subject:  

b44 ethernet works automatically on the DELL 1150 but there is still no wifi signal.
I will check again if the card works with wary puppy. I had it marked 'good'.

I can play a 480p video with 99.9% CPU usage and it is not jerky but I can't do much else at the same time.
This laptop tests out as fast as my 2001 Pentium III, which could not even play 240p youtube with browser.

I can therefore find homes for 2003 (or slightly older) laptops with 512MB RAM, for browsing with palemoon and watching
youtube without a browser. Someone who just bought three 2003 desktops ($5 each complete) is interested. But they will
want wifi.

Thanks for explaining how to download debian files without an internet connection on the target computer.
And correcting my typing errors.
Back to top
View user's profile Send private message 
sindi

Joined: 16 Aug 2009
Posts: 853
Location: Ann Arbor MI USA

PostPosted: Tue 27 Mar 2018, 19:45    Post subject: youtube-player without X?  

I have played mp4 files with mplayer and fbdev.

youtube-player -h has settings for choosing the video player.
It says vlc or mpv are available, but not mplayer.

--videoplayer=s

It also gives a setting for choosing video device for MPlayer.
-vo=s

Fill in fbdev for s.

I experimented but can get only audio in framebuffer mode.

Not using X might let me play at 720p (reduce CPU usage).
It could improve 480p performance.

Any ideas how to use mplayer in fbdev mode for playing the videos
without using youtube-dl first to download them?
Back to top
View user's profile Send private message 
sindi

Joined: 16 Aug 2009
Posts: 853
Location: Ann Arbor MI USA

PostPosted: Wed 28 Mar 2018, 00:02    Post subject: ipw2100 not working on two laptops with debiandog  

Two DELL Inspiron laptops have ipw2100 cards (which do WPA but not WPA2) which work with lupu etc. but not with
debiandog. The same modules get installed but no wireless connection is found.
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3221
Location: holland

PostPosted: Wed 28 Mar 2018, 11:58    Post subject: cde package youtube-viewer
Subject description: cde package yt-viewer.tar.gz
 

Hi sindi, I've made a "cde" package for youtube-viewer, it runs OK for me on Lucid :
https://dl.dropboxusercontent.com/s/hmune250uqrwq5z/yt-viewer.tar.gz?dl=1
It has the complete setup from Wheezy, included:
- youtube-viewer and gtk-youtube-viewer
- mpv
- youtube-dl (updated to latest)
- perl and python (required for youtube-viewer and youtube-dl
- and a lot more required, libraries etc...

Maybe this is better solution than running old DebianDog (specially for youtube-viewer), because this runs (most probably) from any 32-bit Linux OS.
In case you don't know what "cde" is: http://www.pgbovine.net/cde.html
It creates sort of a portable "package" which has the complete environment inside that's required for to run a certain program, disadvantage is very large size.
Extracted, this youtube-viewer package is 55MB

Extract yt-viewer.tar.gz somewhere (but MUST be on Linux filesystem, not FAT32 or NTFS)
And run "gtk-youtube-viewer.cde" or "youtube-viewer.cde" from inside yt-viewer folder.

EDIT: About mplayer, I couldn't make it run using mplayer, so only mpv, but as I said earlier, mpv combined with youtube-dl is the best, because there are no exceptions, i.e. all video's (including e.g. Vevo) will play.
(mplayer cannot connect with youtube-dl)

Fred
yt-viewer_on_lucid.jpg
 Description   youtube-viewer running on Lupu
 Filesize   41.98 KB
 Viewed   417 Time(s)

yt-viewer_on_lucid.jpg


_________________
Dog Linux website
Back to top
View user's profile Send private message 
sindi

Joined: 16 Aug 2009
Posts: 853
Location: Ann Arbor MI USA

PostPosted: Wed 28 Mar 2018, 14:33    Post subject: youtube-viewer for puppy linuxes!!!  

Many thanks for making a package that should work with all puppy linuxes.
I will check it out soon. Someone put together something similar for puppy linux and palemoon before one of the palemoon linux people (Walter Dnes) offered to compile versions that would work directly with puppy linuxes (which lacked some library versions needed by the standard compiled palemoon). (Also with Pentium III with SSE not SSE2).

I hope it works with Wary because Lupu crashes on my lastest laptop.

With an ethernet cable (since wifi is not working) Youtube-viewer plays well at 480p (too jerky at 720p) on my rather slow 2003 DELL 1150 with DebianDog in X. It would not recognize mplayer2 even in X. Perhaps it was compiled to only use vlc or mpv. The Debian mplayer2 does not support fbdev mode (needed for console mode).

Mplayer works in framebuffer console mode. Can mpv do that?

The 1150 has a cheap 855GM video chip that only works at 8-bit color (256 color) in framebuffer console mode (vga=773). Not ideal for youtube.

DebianDog Wheeze is actually ideal for older laptops because it uses very little memory. Even has a low-ram mode. No extraneous processes.

Can you help me get ipw2100 to not just install but work?
I have that card in three laptops. There was some message about WPA. The card does WPA but not WPA2.

Also what is the Debian equivalent of rc.local - a file that I can use to mount things at startup (such as other partitions, and swap file)?

The updates installer said it downloaded about 11MB, so 100MB is fine for just a few added packages, but how do we enlarge changes.dat if needed?
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3221
Location: holland

PostPosted: Wed 28 Mar 2018, 16:03    Post subject:  

sindi wrote:
With an ethernet cable (since wifi is not working) Youtube-viewer plays well at 480p (too jerky at 720p) on my rather slow 2003 DELL 1150 with DebianDog in X. It would not recognize mplayer2 even in X. Perhaps it was compiled to only use vlc or mpv. The Debian mplayer2 does not support fbdev mode (needed for console mode).


Could be that it doesn't recognize it because of the uncommon path of mplayer (/opt/bin/mplayer)
But also I tested a lot if included version of mplayer can load youtube url's, it just can't, so looks like limitation of the mplayer included in debdog Wheezy.
(I've tested gtk-youtube-viewer in D-Pup-Stretch and it works with mplayer for most video's)

Quote:
Mplayer works in framebuffer console mode. Can mpv do that?

That I don't know.

Quote:
Can you help me get ipw2100 to not just install but work?

Sorry, can't test that.
Quote:
Also what is the Debian equivalent of rc.local

It's /etc/rc.local

Made another package with cde, this time used Debian Jessie and has newest youtube-viewer, 3.3.3, tested on Lupu, works fine also (but is even bigger: 75MB).
https://dl.dropboxusercontent.com/s/j58gzdqywguax97/yt-viewer_3.3.3.tar.gz?dl=1

EDIT: Just tested both cde packages on Wary, works fine for me.
EDIT2:
Quote:
The updates installer said it downloaded about 11MB, so 100MB is fine for just a few added packages, but how do we enlarge changes.dat if needed?

From Menu > Utility > Resize Save File, but it should be done without the savefile being in use, so boot DebianDog without save (remove changes=... from kernel line) and then run Resize Save.

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 1102

PostPosted: Wed 28 Mar 2018, 17:02    Post subject:  

fredx181 wrote:


Quote:
Mplayer works in framebuffer console mode. Can mpv do that?

That I don't know.



I don't have a definitive answer, but I tried to make make mpv open video files from the console in Debian Dog Stretch and I was unable to do so. It would open mp3 audio files.
Back to top
View user's profile Send private message 
sindi

Joined: 16 Aug 2009
Posts: 853
Location: Ann Arbor MI USA

PostPosted: Wed 28 Mar 2018, 20:32    Post subject: cde package works with wary with X and mpv at wrong res  

On DELL Inspiron 600M from 2004 (PC2700, FSB 333).

The wary mplayer has lots more video modes including fbdev.

I unpackaged the first (older) CDE package, which contains mpv,
and it works, but only in X. In a terminal, xterm complains of no display.

I specified mplayer --videoplayer=mplayer -vo fbdev but it used mpv.
(As shown by top).

I then symlinked mplayer to the directory where I found mpv, which made no difference.

I wrote a script yt4 (youtube-viewer 480p)

cd /mnt/home/yt-viewer
./youtube-viewer.cde -4

A couple of problems:

In DebianDog I could type
youtube-viewer subject -4 (or --res=480p)

The CDE version just starts youtube-viewer at what I think is original youtube resolution, and I have to specify subject line after it starts.
No big problem.

It overfills the screen. I see only the middle of the video unless I hit F, which shrinks it to fit the screen. I think I am viewing 720p on my 1.5GHz 2004 laptop, with 80% cpu usage and some jerkiness.
If I exited palemoon, 720p might work okay, but I am posting to the forum with palemoon. (And 720p did not work so well in DebianDog on some test videos, but maybe Wary uses less cpu?).

In 2004, the 600M 'ships with ATI's fastest video chip'.

My year-older DELL Inspiron 1150 (FSB 266) tests out about 12-15% slower CPU (and it has a really cheap 855GM video chip with little memory.) It definitely will not do 720p. 480p worked on it with Debiandog and ethernet.


gtk-youtube-viewer usually does not play any videos. It starts up then stops, in both original and CDE versions. Would the version in the later package work better? This version would be simpler for non-geeks to learn. I gave a lot of old laptops to neighbor kids with the old gtk-youtube-viewer on them and they figured it out.

I would love to use youtube-viewer at 480p with wifi.

Wifi in Debian looks complicated. Does it normally require downloading firmware and driver modules, and setting things up manually? It is not working even with no encryption.

Wary wifi works. Can you correctly choose resolution with wary and the cde viewer?
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3221
Location: holland

PostPosted: Thu 29 Mar 2018, 04:43    Post subject:  

sindi wrote:
The wary mplayer has lots more video modes including fbdev.

I unpackaged the first (older) CDE package, which contains mpv,
and it works, but only in X. In a terminal, xterm complains of no display.

I specified mplayer --videoplayer=mplayer -vo fbdev but it used mpv.
(As shown by top).

I then symlinked mplayer to the directory where I found mpv, which made no difference.

I wrote a script yt4 (youtube-viewer 480p)

cd /mnt/home/yt-viewer
./youtube-viewer.cde -4

A couple of problems:

In DebianDog I could type
youtube-viewer subject -4 (or --res=480p)


You can edit the script "youtube-viewer.cde" by adding e.g. resolution:
Code:
#!/bin/sh
HERE="$(dirname "$(readlink -f "${0}")")"
export LC_ALL=en_US.UTF-8
cd "$HERE/cde-root" && ../cde-exec uxterm -e youtube-viewer --res=480p

But maybe better to leave out "uxterm -e" , but then this script needs to be run from terminal:
Code:
#!/bin/sh
HERE="$(dirname "$(readlink -f "${0}")")"
export LC_ALL=en_US.UTF-8
cd "$HERE/cde-root" && ../cde-exec youtube-viewer --res=480p

(i added the uxterm for convenience, to be able to just click on it and uxterm appears, but probably that's not how you want it)

Quote:
Wifi in Debian looks complicated. Does it normally require downloading firmware and driver modules, and setting things up manually? It is not working even with no encryption.

I t shouldn't be complicated, but just to keep the ISO small there's very little included.
If you do a search in Synaptic for "firmware", you'll find a lot, no idea why iwp2100 doesn't work for you.

Quote:
Can you correctly choose resolution with wary and the cde viewer?

Yes, I can, in gtk-youtube-viewer, changing resolution at the bottom right works, and also above for youtube-viewer (--res=480p)

EDIT: Should work also if you make the script (untested EDIT tested now and works fine):
Code:
#!/bin/sh
HERE="$(dirname "$(readlink -f "${0}")")"
export LC_ALL=en_US.UTF-8
cd "$HERE/cde-root" && ../cde-exec youtube-viewer "$@"

And then can run it like :
Code:
./youtube-viewer.cde --res=480p


EDIT2: Finally found a way with a working mplayer, but this cde package is HUGE (127MB extracted):
https://dl.dropboxusercontent.com/s/zqtzvhzp8zbl8th/yt-viewer-stretch-mplayer.tar.gz?dl=1
I guess this mplayer included (stock Debian Stretch version) is compiled with https support and... Smile it can work together with youtube-dl
youtube-viewer version is 3.3.1
Tested only on Wary and works fine for me.
EDIT3: Oh boy, just found that seeking is problematic, on 360p and 720p it's OK but not on 480p, mplayer crashes for me with 480p and trying to seek. Rolling Eyes

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
sindi

Joined: 16 Aug 2009
Posts: 853
Location: Ann Arbor MI USA

PostPosted: Thu 29 Mar 2018, 13:32    Post subject: modified script still no 480p  

Tested via CLI not a script, in X in a urxvt terminal.

cd /mnt/home/yt-viewer
./cde-exec uxterm -e youtube-viewer --res=480p

urxvt instead of uxterm segfaults.
the package has both xterm and uxterm. Both work.

I chose a recent video probably 1080p and it still overfills the screen.
I see the central part of it on my 1024x768 monitor.

f shrinks it to 720p (full width of my screen).


The mplayer2 from (I think) Tahr ppm streams URLs (older mplayers do not) and I think also does fbdev.
How do I substitute it for mpv? (Probably won't work in wary though).

Got to run - more later. Immense thanks for all your efforts.
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3221
Location: holland

PostPosted: Thu 29 Mar 2018, 16:26    Post subject:  

sindi wrote:
Tested via CLI not a script, in X in a urxvt terminal.

cd /mnt/home/yt-viewer
./cde-exec uxterm -e youtube-viewer --res=480p


On wary ?
Anyway I tried on wary and didn't have segfault.
Maybe try without uxterm, just:
Code:
./cde-exec youtube-viewer --res=480p


Or better like I wrote in previous post:
Quote:
EDIT: Should work also if you make the script (untested EDIT tested now and works fine):
Code:
#!/bin/sh
HERE="$(dirname "$(readlink -f "${0}")")"
export LC_ALL=en_US.UTF-8
cd "$HERE/cde-root" && ../cde-exec youtube-viewer "$@"

And then can run it like :
Code:
./youtube-viewer.cde --res=480p


Quote:
The mplayer2 from (I think) Tahr ppm streams URLs (older mplayers do not) and I think also does fbdev.
How do I substitute it for mpv? (Probably won't work in wary though).


Didn't test, but I'm almost sure that only a very recent mplayer can possibly work with youtube-viewer.
(tested a lot with different mplayer/mplayer2 versions last days)

Quote:
Immense thanks for all your efforts.

You are welcome, interesting stuff for me also to discover Wink

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
sindi

Joined: 16 Aug 2009
Posts: 853
Location: Ann Arbor MI USA

PostPosted: Thu 29 Mar 2018, 20:55    Post subject: DebianDog working with wifi  

Wifi is working on one laptop with ipw2100. Maybe I just needed to reboot.
(Puppy wifi works without rebooting). The resolution is correct too.

With the CDE package many videos are too large for the screen.

In Wary I can run youtube-viewer with or without uxterm/xterm plus exec.
(u)rxvt segfaults

On a 2004 1.5GHz Inspiron 600M:

At 480p mpv uses 52% of CPU, and at 720p it uses 63-69%, while Xorg uses 36%.
Some parts of videos are okay at 720p.

An mplayer2 that streams video with fbdev would help.

youtube-viewer can simply download files to play later with non-streaming mplayer
in wary.
Back to top
View user's profile Send private message 
sindi

Joined: 16 Aug 2009
Posts: 853
Location: Ann Arbor MI USA

PostPosted: Thu 29 Mar 2018, 21:41    Post subject: youtube-viewer cde package works in tahr, not with mplayer2  

works fine with tahr (and no xterm), and resolution seems more stable.

I installed the Tahr (Ubuntu 14) mplayer2, and edited youtube-viewer.conf to use it as the viewer, but it did not play.

I think I had it streaming video as it was downloading with youtube-dl last year.

In Tahr, 480p, mpv uses 53% of cpu, cde-exe 6%, X 3%, and palemoon browser 17% doing nothing..

With youtube, at 360p, palemoon uses 71% of CPU (more than mpv at 480p).
Back to top
View user's profile Send private message 
sindi

Joined: 16 Aug 2009
Posts: 853
Location: Ann Arbor MI USA

PostPosted: Thu 29 Mar 2018, 22:43    Post subject: youtube-player with VLC?  

vlc supposedly plays in framebuffer console but I cannot figure out how.
Someone complained that vlc plays slower than mplayer and with wrong colors.

the youtube-viewer .conf file is set to --fullscreen, which may explain why videos play properly at 480p in DebianDog but in Puppies with the CDE package they play 'fullscreen' meaning 1080p on a screen smaller than that unti I hit F to make them 480p. This may be adjustable in the .conf (config) file.

It is late. This is addictive.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 19 of 22 [316 Posts]   Goto page: Previous 1, 2, 3, ..., 17, 18, 19, 20, 21, 22 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1230s ][ Queries: 12 (0.0361s) ][ GZIP on ]