Support loading files using full or relative paths

This commit is contained in:
Rafostar
2020-09-08 08:58:43 +02:00
parent 689edd9cf3
commit 649ff7682c
3 changed files with 26 additions and 5 deletions

View File

@@ -2,9 +2,9 @@
A GNOME media player built using [GJS](https://gitlab.gnome.org/GNOME/gjs) and powered by [GStreamer](https://gstreamer.freedesktop.org) with [OpenGL](https://www.opengl.org) rendering. Can also be used as a pre-made widget for [GTK](https://www.gtk.org) apps.
### WORK IN PROGRESS
This is still early WIP. Many features are not implemented yet and quite a few are still unstable. Right now Clapper can only play single file from URI. So if you want to test it, start it from terminal like this:
This is still early WIP. Many features are not implemented yet and quite a few are still unstable. Right now Clapper can only play single file. So if you want to test it, start it from terminal like this:
```shell
clapper file:///path/to/video.mkv
clapper video.mp4
```
## Requirements
Clapper uses `GStreamer` bindings from `GI` repository, so if your repo ships them as separate package, they must be installed first.
@@ -38,7 +38,7 @@ On some older GPUs you might need to export `GST_VAAPI_ALL_DRIVERS=1` environmen
Other acceleration methods (supported by `GStreamer`) should also work, but I have not tested them due to lack of hardware.
## Performace Comparison
Here is the average **CPU** and **RAM** usage (lower is better) when playing the same H.264 1080p video in Clapper and [Totem](https://wiki.gnome.org/Apps/Videos) (GNOME Videos) with **VA-API enabled** on an old AMD APU:
Here is the average **CPU** and **RAM** usage (lower is better) when playing the same H.264 1080p video in Clapper and [Totem](https://wiki.gnome.org/Apps/Videos) (GNOME Videos) with **VA-API available** on an old AMD APU:
| Player | CPU | RAM |
| ------- | --- | ----- |