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

debiandog no longer boots

#261 Post by sindi »

I tried to boot to Debiandog again and it won't finish booting.
ID 1 respawning too fast
Disabled for 5 minutes.

Ctrl-Alt-Del to reboot.

ID z6 respawning too fast.

I powered off and then on again to Wary puppy linux instead.

I presume deleting changes.dat would fix the problem but then I will need
to download everything again - updates, ssh, and youtube-viewer.

Is there a simpler fix?

This 1.5GHz laptop uses over 100% of cpu and ram to play 240p youtube with palemoon.
Quite jerky. It has nice sound and screen.

Slow wifi but the download is faster than the playing.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#262 Post by fredx181 »

sindi wrote:I tried to boot to Debiandog again and it won't finish booting.
ID 1 respawning too fast
Disabled for 5 minutes.

Ctrl-Alt-Del to reboot.
Sorry, I've seen that "respawning too fast" message long time ago, but can't remember what's causing it.
Indeed try to start all over again could fix it, if you do, better use a larger savefile (just guessing, but too small savefile could be the cause)

Fred

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

debiandog won't boot on AMD64 2008 HP

#263 Post by sindi »

I unpacked the iso as on the 2004 DELL, and copied the menu.lst entry (by hand) as follows:


title dog902 wheezy (sda5)
root (hd0,4)
kernel /dog902/live/vmlinuz1 from /dog902/ noauto changes=EXIT:/dog902/live/changes.dat nouveau.modeset=0
initrd /dog902//live/initrd1.xz

The only difference was that I added nouveau.modeset=0 because
no puppy later than lupu can handle the nvidia chip on here.
Lupu uses nv and later puppies use nouveau which scrambles even terminal mode. modeset=0 helps somewhat.

Is that interfering somehow?


I also tried
from /dog902/live.

I copied the sgn file to /dog902/

I tried (sda5/live) on the first line

The .sgn file is in 'live' as before.

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

debiandog booted from IDE not SATA drive

#264 Post by sindi »

Only other obvious difference between laptops is IDE vs SATA.

The modeset line was irrelevant.

dpup stretch boots on here (with wrong resolution) - maybe youtube-viewer will work with it.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#265 Post by fredx181 »

="sindi"unpacked the iso as on the 2004 DELL, and copied the menu.lst entry (by hand) as follows:


title dog902 wheezy (sda5)
root (hd0,4)
kernel /dog902/live/vmlinuz1 from /dog902/ noauto changes=EXIT:/dog902/live/changes.dat nouveau.modeset=0
initrd /dog902//live/initrd1.xz
That looks ok, no need to change "from=" or "changes=" but I don't know about the "nouveau.modeset=0", it could be the problem, you did try without ?
(from google search I found that "respawning too fast" has to do with X server)

Fred

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#266 Post by fredx181 »

sindi wrote:I unpacked the iso as on the 2004 DELL, and copied the menu.lst entry (by hand) as follows:


title dog902 wheezy (sda5)
root (hd0,4)
kernel /dog902/live/vmlinuz1 from /dog902/ noauto changes=EXIT:/dog902/live/changes.dat nouveau.modeset=0
initrd /dog902//live/initrd1.xz
I see now after looking better at your kernel line that "from" is missing the "=", should be from=/dog902/
Otherwise it won't find the data and gets stuck on "searching for wheezy-i486.sgn"

Fred

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

fixed menu.lst, thanks; where to find modules?

#267 Post by sindi »

The equal sign fixed things.

I do need nouveau.modeset=0 to make video work.
As with puppies Tahr and later, it is scrambled otherwise (nouveau). nv in lupu/sulu works correctly.
modeset=0 I gives 1024x768 instead of 1280x800, which stretches things sideways.
youtube-viewer works at 720p, sound works, ethernet works.

Where do I find modules fbcon tileblit and related, or if not needed, where do I put vga=791 in menu.lst?

Where do I find ipw2100? Puppy comes with most wifi modules already.

Still cannot reboot even on my newest laptop (2008 or 2009) - it just halts, says to hit Ctrl-D, and I power off.
Also I chose 200MB save file and it saved 100MB. Maybe I missed something.

It rebooted okay anyway so 100MB is enough (for rxvt ssh and youtube-viewer and updates).

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#268 Post by fredx181 »

sindi wrote:Where do I find modules fbcon tileblit and related, or if not needed, where do I put vga=791 in menu.lst?
Don't know about fbcon tileblit, you can add vga=791 to the kernel line.
Where do I find ipw2100
Install from synaptic or with apt-get "firmware-ipw2x00"

Fred

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

ipw2100 and fbcon and shutdown

#269 Post by sindi »

Shutdown works on the newer laptop (AMD65 HP from 2008-9) but not on the 2004 DELL 600M.
fbdev (framebuffer terminal) works automatically on the DELL but not the HP so must be
part of the nouveau video problem. (Does not work with later puppies either).

I already tried apt-get install firmware-ipw2x000 and it could not find anything.
Should I not type install? I have never used Debian.

Debdog does work with a pcmcia wifi card in my other 600M (at 850 kbps download)
but I am running out of cards since most laptops have dead wifi slots by the time they reach us.
We can use ethernet cables. The cheap USB wifi cards I tried work in XP but not linux.

This is so much nicer than fighting with google at youtube.com.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#270 Post by fredx181 »

sindi wrote:I already tried apt-get install firmware-ipw2x000 and it could not find anything
One 0 too many, it's :

Code: Select all

apt-get install firmware-ipw2x00
(I assume you did "apt-get update" already, since I think you installed youtube-viewer and did that before)
If you don't have internet connection, download from another OS:
http://ftp.de.debian.org/debian/pool/no ... .1_all.deb
Then install single .deb package in debdog:

Code: Select all

dpkg -i firmware-ipw2x00_0.36+wheezy.1_all.deb
Fred

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

ipw2x00 installed but no wifi signal with ipw2100 debiandog

#271 Post by sindi »

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.

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

#272 Post by sindi »

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.

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

youtube-player without X?

#273 Post by sindi »

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?

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

ipw2100 not working on two laptops with debiandog

#274 Post by sindi »

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.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

cde package youtube-viewer

#275 Post by fredx181 »

Hi sindi, I've made a "cde" package for youtube-viewer, it runs OK for me on Lucid :
https://dl.dropboxusercontent.com/s/hmu ... ar.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
Attachments
yt-viewer_on_lucid.jpg
youtube-viewer running on Lupu
(41.98 KiB) Downloaded 666 times

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

youtube-viewer for puppy linuxes!!!

#276 Post by sindi »

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?

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#277 Post by fredx181 »

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)
Mplayer works in framebuffer console mode. Can mpv do that?
That I don't know.
Can you help me get ipw2100 to not just install but work?
Sorry, can't test that.
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/j58 ... ar.gz?dl=1

EDIT: Just tested both cde packages on Wary, works fine for me.
EDIT2:
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

dancytron
Posts: 1519
Joined: Wed 18 Jul 2012, 19:20

#278 Post by dancytron »

fredx181 wrote:
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.

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

cde package works with wary with X and mpv at wrong res

#279 Post by sindi »

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?

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#280 Post by fredx181 »

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: Select all

#!/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: Select all

#!/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)
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.
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: Select all

#!/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: Select all

./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/zqt ... ar.gz?dl=1
I guess this mplayer included (stock Debian Stretch version) is compiled with https support and... :) 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. :roll:

Fred

Post Reply