A while ago I created a special version of omxplayerGUI for my rpiotrtool project (German version only, viewtopic.php?p=1437289
Besides the additions I needed for this project (special key commands for better navigation and to create cut lists), the new version 22.214.171.124-otr contains some improvements, especially for web video support.
I don't want to create a full kweb upgrade right now and decided to create a separate upgrade package, which provides the new omxplayerGUI version and also new versions of some other tools:
ytdl_server.py with full support of VLC
kwebhelper.py and kwebhelper_set.py to add support for qpdfview which is now the default Raspbian PDF viewer.
To install the new update open a terminal and run:
A few notes:
Code: Select all
tar -xzf kweb_upgrade_stretch_20190408.tar.gz
I won't provide a full list of new (ALT+) keyboard commands here (some are very special), but you might find ALT + right or left arrow key usefull for short jumps forward or backward (to next of previous key frame).
m3u8 links (which are mostly used for video which comes in chunks) are not handled as playlists any more but sent directly to omxplayer which handles them quite well. In some cases web video stopped after a short while. This should fix it.
The alternate method to get information about a video file or stream (get_DAR on the settings page) now uses ffprobe if it is installed as part of the ffmpeg binaries. This should fix a few (rare) blockings when using this method.
This small web application server has mainly been developped to support fast acess to web video to play it in omxplayerGUI or (now) VLC instead of inside the browser. This works with any browser, not just kweb (viewtopic.php?f=66&t=193811
If you want to use it with VLC, you have to start the server separately. This is best done with the following command:
You can add it as autostart in different ways.
You can also use this server (http:localhost:9192) to provide a web interface for your local media collection. This also works with any browser. Check the manual for more details.
kweb supports PDFs in two different ways. By default it downloads the PDF file and opens it with a PDF application of your choice: mupdf, xpdf, evince and (now) qpdfview. It supports links like ....pdf#page=xxx and will open the PDF document at page xxx.
It is also possible to display PDFs inside the browser if you install mozplugger and enable Plugins in kweb. By default mozplugger supports xpdf and evince. To add support for qpdfview, you have to edit /etc/mozpluggerrc as root. Scroll down to the PDF section and modify it in the following way:
Code: Select all
repeat noisy swallow(Xpdf) fill needs_xembed: xpdf -g +9000+9000 "$file"
repeat noisy swallow(okular) fill needs_xembed: okular "$file"
repeat noisy swallow(epdfview) fill needs_xembed: epdfview "$file"
repeat noisy swallow(qpdfview) fill needs_xembed: qpdfview "$file"
repeat noisy swallow(evince) fill: evince "$file"
#page=xxx links are not supported by mozplugger. The PDF document will always be opend showing the first page.