gkreidl
Posts: 6090
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Buster Upgrade for kweb

Sun Aug 25, 2019 6:25 am

The kweb suite can now also be used on Raspbian Buster. This requires two steps.

1) Install kweb 1.7.9.8 as described in the OP of this thread

2) Download and install the partial Buster Upgrade:

Code: Select all

wget http://steinerdatenbank.de/software/kweb_upgrade_buster_20190823.tar.gz
tar -xzf kweb_upgrade_buster_20190823.tar.gz
cd kweb_upgrade_buster_20190823
./install
This will install a new version of omxplayerGUI and some other tools. You will find more information about the updates in this post:
https://www.raspberrypi.org/forums/view ... 0#p1456860 (But you should not download the upgrade from this post, as it is not compatible with Buster).

The Upgrade will also install gksu from Stretch packages, because kweb requires gksudo which is not available in Buster any more.

Special Notes:
omxplayer disables all kinds of OSD (subtitles, Position display etc.) on the RPi 4 and on older RPis, if you enable one of the KMS drivers. Of course omxplayerGUI will also be affected by this.

On the RPi 4B, the additional HW codecs (MPEG2 etc.) are not available any more. omplayer(GUI) won't be able to play video files or streams using one of these codecs.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Pearl.852
Posts: 40
Joined: Wed Jun 08, 2016 1:22 pm
Location: Hong Kong

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Sun Sep 01, 2019 2:30 pm

Thanks for the Buster Upgrade for kweb. Really appreciate for your time and efforts.

I have tested on my RPi-3B and like to report a problem with the OMXplayerGUI frontend 1.7.9.9-otr. When playing a Youtube link, the video always ended about 5~7 seconds too soon. I have tried on 3 separate youtube videos. Please check.

Same problem occurs when click "Play" to play the Youtube video within the kweb browser as well.

Pearl.852
Posts: 40
Joined: Wed Jun 08, 2016 1:22 pm
Location: Hong Kong

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Thu Sep 19, 2019 5:50 am

After using my new RPi-4B-4GB for a few day, I would like to report some discrepancy with previous version as follows,
1) While playing video in full screen, the mouse pointer does not turn off after a few seconds.
2) When pausing, skip forward or skip backward a video, the current position timestamp does not appears.

gkreidl
Posts: 6090
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Thu Sep 19, 2019 10:27 am

Pearl.852 wrote:
Thu Sep 19, 2019 5:50 am
I have tested on my RPi-3B and like to report a problem with the OMXplayerGUI frontend 1.7.9.9-otr. When playing a Youtube link, the video always ended about 5~7 seconds too soon. I have tried on 3 separate youtube videos. Please check.

Same problem occurs when click "Play" to play the Youtube video within the kweb browser as well.

After using my new RPi-4B-4GB for a few day, I would like to report some discrepancy with previous version as follows,
1) While playing video in full screen, the mouse pointer does not turn off after a few seconds.
2) When pausing, skip forward or skip backward a video, the current position timestamp does not appears.
1) I cannot test the Buster version on a RPi 3B right now, because my only Buster system is running on a RPi 4B at the moment. On the RPi 4 all youtube videos ran to the end without any problem. I may be able to test it in a few days on a RPi 2B.

2) RPi 4B, Mouse
The mouse seems to be running in a separate HW layer now (with the 3D driver at least), so it will be shown on top of the video layer. I never disabled the mouse in the past, it was simply not visible on top of the video.

3) RPi 4B, OSD
All omxplayer OSD functions are disabled on the RPi 4B right now. There is no easy solution as you can see in this discussion: https://github.com/popcornmix/omxplayer/issues/717
I hope there will be a solution in the future.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Pearl.852
Posts: 40
Joined: Wed Jun 08, 2016 1:22 pm
Location: Hong Kong

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Thu Sep 19, 2019 1:55 pm

gkreidl wrote:
Thu Sep 19, 2019 10:27 am
Pearl.852 wrote:
Thu Sep 19, 2019 5:50 am
I have tested on my RPi-3B and like to report a problem with the OMXplayerGUI frontend 1.7.9.9-otr. When playing a Youtube link, the video always ended about 5~7 seconds too soon. I have tried on 3 separate youtube videos. Please check.

Same problem occurs when click "Play" to play the Youtube video within the kweb browser as well.

After using my new RPi-4B-4GB for a few day, I would like to report some discrepancy with previous version as follows,
1) While playing video in full screen, the mouse pointer does not turn off after a few seconds.
2) When pausing, skip forward or skip backward a video, the current position timestamp does not appears.
1) I cannot test the Buster version on a RPi 3B right now, because my only Buster system is running on a RPi 4B at the moment. On the RPi 4 all youtube videos ran to the end without any problem. I may be able to test it in a few days on a RPi 2B.

2) RPi 4B, Mouse
The mouse seems to be running in a separate HW layer now (with the 3D driver at least), so it will be shown on top of the video layer. I never disabled the mouse in the past, it was simply not visible on top of the video.

3) RPi 4B, OSD
All omxplayer OSD functions are disabled on the RPi 4B right now. There is no easy solution as you can see in this discussion: https://github.com/popcornmix/omxplayer/issues/717
I hope there will be a solution in the future.
Regarding 1) the video playback cut short at the end, I have just tested on my RPi-3B and RPi-2B using the same SD card with Raspbian Buster installed. The results this time are the youtube videos played all the way to the end without any problem. The only differences since my tests made on Sept.01 were that, I have upgraded the youtube-dl from version 2019.9.1 --> 2019.9.12.1 last week when I received my new RPi-4B.

So, never mind about the youtube video playback ended short issue. Thanks.

kolsi
Posts: 16
Joined: Wed Jan 23, 2019 10:40 am

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Wed Sep 25, 2019 8:33 am

We're trying to migrate from chromium to kweb on Raspberry Pi B. But we notice that it does not support CSS property "display: flex". Is there some workaround for it?

We need this <div class="row">:

Code: Select all

.row {
  display: flex;
  flex-wrap: wrap;
}

gkreidl
Posts: 6090
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Wed Sep 25, 2019 2:06 pm

kolsi wrote:
Wed Sep 25, 2019 8:33 am
We're trying to migrate from chromium to kweb on Raspberry Pi B. But we notice that it does not support CSS property "display: flex". Is there some workaround for it?

We need this <div class="row">:

Code: Select all

.row {
  display: flex;
  flex-wrap: wrap;
}
kweb usus the old webkit engine, which has some limits and is not developped any more. Migrating to webkit2 is planned, but unfortunately the API has changed a lot and misses some of the callbacks which are vital for kweb. Finding workarounds is not easy and I'm not sure when I'll be able to finish it.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

kolsi
Posts: 16
Joined: Wed Jan 23, 2019 10:40 am

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Fri Sep 27, 2019 4:55 pm

Thank you for the information. We've redesigned our website not to use "flex" and now it renders properly in kweb.

It is the only browser that seems to be usable on old Raspberry Pi B. Chromium creates many processes, eats all RAM and takes 100% CPU all the time. Even simple C++ wxWidgets app based on GTK+3 and WebKit2 engine creates webkitwebprocess that eats 100% CPU all the time. Kweb eats 162 MB RAM only and CPU is 0% most of the time (sometimes jumps to 20%, probably because of the simple animation on the website).

BrotherPrime
Posts: 4
Joined: Tue Jan 01, 2019 11:27 am

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Tue Oct 01, 2019 11:28 am

Hi,

First I wanted to say thank you for your long-term support of this project, it has been incredibly helpful for my kiosk/signage projects for a long time now. It is very much appreciated.

I've run into a bit of a hiccup when trying to load a particular webpage when it's set to full-featured browser mode.

http://decalmedia-test.herokuapp.com/

It seems to work ok in Chromium/Midori (albeit fairly slowly) but is only showing a black screen on Kweb with JavaScript enabled.

Would you be able to shed some light onto what could be the cause or point me in the direction of a log tool within the browser?

Cheers,
Chris

gkreidl
Posts: 6090
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Tue Oct 01, 2019 12:03 pm

BrotherPrime wrote:
Tue Oct 01, 2019 11:28 am
Hi,

First I wanted to say thank you for your long-term support of this project, it has been incredibly helpful for my kiosk/signage projects for a long time now. It is very much appreciated.

I've run into a bit of a hiccup when trying to load a particular webpage when it's set to full-featured browser mode.

http://decalmedia-test.herokuapp.com/

It seems to work ok in Chromium/Midori (albeit fairly slowly) but is only showing a black screen on Kweb with JavaScript enabled.

Would you be able to shed some light onto what could be the cause or point me in the direction of a log tool within the browser?

Cheers,
Chris
console message: http://decalmedia-test.herokuapp.com/vendor.js @55877: TypeError: undefined is not a function (evaluating 'new Array(HEADER_OFFSET).fill(null)')
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Anomunus
Posts: 3
Joined: Wed Oct 02, 2019 8:41 am

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Wed Oct 02, 2019 8:49 am

Hi, I'm having trouble accessing the youtube-dl seever page (http://localhost:9192), whenever I try it just gives me ERR: Connection refused.
I am able to get omxplayergui to play videos, and even a giant 1000 song playlist, from kweb though, so doesn't that mean the yt-dl server is running..?
But when i try wget --verbose localhost:9192 it also shows the connection being refused. I also tried sudo netstat -tlnp which is only showing VNC and SSH being the only ports open.

What can I do to make this work? I want to use youtube-dl server so that i can shuffle my youtube playlists that are being played by omxplayer since it cant shuffle itself and also starting a play of the list in kweb doesnt result in a shuffled list. If it's not going to work I may as well just go back to Chromecasting my YT from my phone since i cant shuffle there either.

gkreidl
Posts: 6090
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Wed Oct 02, 2019 11:23 am

Anomunus wrote:
Wed Oct 02, 2019 8:49 am
Hi, I'm having trouble accessing the youtube-dl seever page (http://localhost:9192), whenever I try it just gives me ERR: Connection refused.
I am able to get omxplayergui to play videos, and even a giant 1000 song playlist, from kweb though, so doesn't that mean the yt-dl server is running..?
But when i try wget --verbose localhost:9192 it also shows the connection being refused. I also tried sudo netstat -tlnp which is only showing VNC and SSH being the only ports open.

What can I do to make this work? I want to use youtube-dl server so that i can shuffle my youtube playlists that are being played by omxplayer since it cant shuffle itself and also starting a play of the list in kweb doesnt result in a shuffled list. If it's not going to work I may as well just go back to Chromecasting my YT from my phone since i cant shuffle there either.
The ytdl-server can be started in different ways:
1) from thecommand line of a terminal:
ytdl_server.py [options]
It should run in the terminal and show connections. This method is also good for testing.
2) To run it in the background you can use:
bgstart_ytdl_server.sh [options]
This can used for auto-starting the server. It doesn't print anything to the terminal (if invoked from there)
3) If you start the omxplayerGUI frontend, the server is started in the bakcground (if it is not already running). If you clode the frontend, the server is stopped again. In this mode, using the server for VLC is not possible.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Anomunus
Posts: 3
Joined: Wed Oct 02, 2019 8:41 am

Re: Kweb Suite (Minimal Kiosk Browser, omxplayerGUI)

Thu Oct 03, 2019 5:34 am

gkreidl wrote:
Wed Oct 02, 2019 11:23 am
The ytdl-server can be started in different ways:
1) from thecommand line of a terminal:
ytdl_server.py [options]
It should run in the terminal and show connections. This method is also good for testing.
2) To run it in the background you can use:
bgstart_ytdl_server.sh [options]
This can used for auto-starting the server. It doesn't print anything to the terminal (if invoked from there)
3) If you start the omxplayerGUI frontend, the server is started in the bakcground (if it is not already running). If you clode the frontend, the server is stopped again. In this mode, using the server for VLC is not possible.
Ohhh it's a python script. Okay, I got it to work but only by changing directory to where ytdl_server.py is located, and making it run in python2 instead of python3 which I have installed. Odd, but ah well at least it works. Thank you!

(also realized that ytdl_server doesn't let me shuffle a YT playlist, whoops)

Return to “Raspbian”