• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

cmake/modules/H14-May-2019-208184

deviceactions/H03-May-2022-202196

doc/H03-May-2022-1,742942

icons/H03-May-2022-

po/H14-May-2019-176,205133,823

profiles/H03-May-2022-114110

src/H03-May-2022-61,50853,475

tools/H03-May-2022-2,7172,163

.arcconfigH A D14-May-201957 43

.gitignoreH A D14-May-2019380 2726

.krazyH A D14-May-201915 21

.travis.ymlH A D14-May-20191.2 KiB2925

COPYINGH A D14-May-201917.7 KiB340281

COPYING-DOCSH A D14-May-201922.4 KiB452373

ChangelogH A D14-May-201915.1 KiB378319

NOTESH A D14-May-20192.4 KiB7260

README.mdH A D14-May-201910.5 KiB355230

TODOH A D14-May-2019131 53

README.md

1Installing Kaffeine
2===================
3
4Installing Prerequisites
5------------------------
6
7The following tools are needed to build Kaffeine:
8
9* GNU c++
10* GNU make
11* cmake >= 2.8
12* cmake ECM (extra-cmake-modules)
13
14The following development headers are needed (recommended versions):
15
16* Qt >= 5.4
17* KF5 >= 5.11
18* libX11
19* libXss
20* libqt-sql-sqlite
21* libvlc
22* libdvbv5
23
24If you also want language translations you also need:
25
26* gettext
27
28If you also want the Kaffeine Handbook, you also need:
29
30* KF5DocTools
31
32For runtime translations of the ISO 639 language codes, you also need:
33
34* iso-codes
35
36Debian and Ubuntu
37-----------------
38
39The needed packages for Debian/Ubuntu should be installed with:
40
41    apt-get install kdelibs5-dev libvlc-dev libxss-dev vlc \
42		   libkf5coreaddons-dev libkf5i18n-dev libqt5x11extras5-dev \
43		   libkf5windowsystem-dev \
44		   libkf5solid-dev libkf5widgetsaddons-dev kio-dev \
45		   qt5-default libdvbv5-dev \
46		   cmake extra-cmake-modules make g++ gettext
47
48And, to build the optional Kaffeine Handbook documentation:
49
50    apt-get install kdoctools-dev
51
52PS.: The above was tested with Debian SID and Ubuntu Xenial (16.04).
53     Other versions may have different requirements.
54
55Fedora
56------
57
58On Fedora, you need a repository that provides VLC.
59
60For stable fedora releases, you could use the rpmfusion repository.
61For Fedora 22 and later, it can be installed with:
62
63	sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
64
65See <http://rpmfusion.org/Configuration/> for more details.
66
67For Fedora rawhide and beta releases, you could use, instead the
68Unitedrpms repository: <https://unitedrpms.github.io/>. Please read
69at <https://github.com/UnitedRPMs/unitedrpms.github.io/blob/master/README.md>
70for instructions about how to set up.
71
72Once the repository with VLC is set, install the needed packages
73with:
74
75    dnf install  kf5-kcoreaddons-devel libXScrnSaver-devel \
76		 qt5-qtx11extras-devel libdvbv5 \
77		 kf5-kwindowsystem-devel kf5-solid-devel kf5-kio-devel \
78		 kf5-kdbusaddons-devel kf5-ki18n-devel vlc-devel gettext-devel \
79		 cmake extra-cmake-modules make gcc-c++ gettext
80
81And, to build the Kaffeine Handbook documentation:
82
83    dnf install kf5-kdoctools-devel
84
85openSUSE
86--------
87
88If you run openSUSE Tumbleweed, you can find an up-to-date package with the
89latest state of git in the KDE:Unstable:Extra repository.
90
91    zypper ar obs://KDE:Unstable:Extra KDE_Unstable_Extra # add repository
92    zypper in -r KDE_Unstable_Extra kaffeine
93
94If you are using openSUSE Leap or openSUSE 13.2, you will need to compile from
95sources instead.  You need to be using at least OpenSUSE version 13.2, in order to have
96KF5 and Qt 5.5 at their repositories.
97
98The first step is to install the needed dependencies:
99
100    zypper install extra-cmake-modules vlc-devel make gcc gcc-g++ cmake \
101	   libqt5-qtbase-devel libqt5-qtx11extras-devel \
102	   kdbusaddons-devel solid-devel kio-devel ki18n-devel
103
104If you're running OpenSUSE version 13.2, you'll need to compile the
105libdvbv5 by hand, as it is not provided there. OpenSUSE Leap
106(version 42.1) seem to have it already packaged as libdvbv5-devel.
107
108Before compiling libdvbv5, some packages are needed:
109
110    zypper install autoconf automake libjpeg-devel
111
112Compiling libdvbv5 (as normal user):
113
114    wget https://linuxtv.org/downloads/v4l-utils/v4l-utils-1.10.0.tar.bz2
115    tar xvf v4l-utils-1.10.0.tar.bz2
116    cd v4l-utils
117    ./bootstrap.sh && ./configure && make
118
119Installing the library (as root):
120
121    make install
122
123And, to build the optional Kaffeine Handbook documentation:
124
125    zypper install kdoctools-devel
126
127PS.: The above was tested with openSUSE 13.2.
128     Other versions may have different requirements.
129
130Gentoo
131------
132
133Kaffeine is already packaged on Gentoo. Installing it is as
134simple as:
135
136    emerge kaffeine
137
138Arch Linux
139----------
140
141Kaffeine is already packaged on Arch Linux. Installing it is as
142simple as:
143
144    pacman -S kaffeine
145
146Installing translations
147-----------------------
148
149This step is optional, and should be done only if you want to
150use Kaffeine on non-English setups.
151
152The Kaffeine tarballs should already have the translations on it,
153but, if you're installing from the git tree, you'll need to run a
154script to get them:
155
156    (cd .. && kaffeine/tools/update_l10n.sh)
157
158How to build Kaffeine
159=====================
160
161Create an empty build directory and do the following steps:
162
163    $ cmake <path/to/kaffeine> <options>
164    $ make
165
166Where `path/to/kaffeine` is usually the current dir, e. g., the
167following command is usually enough:
168
169    $ cmake . && make
170
171Useful `options` include:
172
173* -DCMAKE_BUILD_TYPE=<type> (Debug or Release)
174* -DCMAKE_INSTALL_PREFIX=<path> (installation prefix for Kaffeine, e.g. /usr)
175* -DBUILD_TOOLS=1 (also compile some tools needed by developers)
176
177You may also use `ccmake` if you want to see all Kaffeine's build
178options, and set them using an interactive interface.
179
180For further information look for generic KF5 / cmake instructions.
181
182The install should be done as root user with:
183
184    # make install
185
186How to produce a Debian/Ubuntu package
187======================================
188
189If you want to create a Debian or Ubuntu package from Kaffeine's sources,
190you need to install the needed tools with:
191
192    apt-get install fakeroot dpkg-dev pkg-kde-tools debhelper
193
194And run the following commands:
195
196    rm -rf deb-build  # Just in case it were created before
197
198    git clone https://salsa.debian.org/qt-kde-team/extras/kaffeine.git deb-build && \
199    cd deb-build && \
200    rsync -ua --exclude '.git*' --exclude deb-build .. . && \
201    rm CMakeCache.txt && \
202    cat Changelog |grep Version|head -1|perl -ne 'if (m/Version\s*(\S+)/) { print "kaffeine ($1-1) unstable; urgency=medium\n\n  * New upstream release.\n" }' >debian/changelog && \
203    echo " -- root <root@localhost>  $(date -R)" >>debian/changelog && \
204    fakeroot debian/rules binary && \
205    cd ..
206
207This will produce both binary and debug packages, like:
208
209	kaffeine_*_amd64.deb  kaffeine-dbgsym_*_amd64.ddeb
210
211Installing it is as simple as:
212
213	sudo dpkg -i kaffeine_*_amd64.deb
214
215Known video output issues
216=========================
217
218There are a few known issues related to video output that may require
219some special setup for Kaffeine to work on certain environments.
220
221Remote Access and Kaffeine
222--------------------------
223
224Accessing Kaffeine remotely via X11/ssh/vnc can be a problem, as Qt5 will
225try, by default, to use hardware acceleration and DRI3.
226
227There is a known bug, present on Fedora 23 to 25, and likely on other distros,
228at mesa-libGL/dri-drivers that cause it to wait forever when it is started
229from a X11 section. Such bug causes Kaffeine windows to not open:
230
231* <https://bugzilla.redhat.com/show_bug.cgi?id=1174257>
232
233A workaround is to start Kaffeine with:
234
235    LIBGL_DRI3_DISABLE=1 kaffeine
236
237Another solution is to use a vnc server.
238
239Changing the libVLC output plugin
240---------------------------------
241
242By default, libVLC will try to use hardware acceleration on the machine with
243Kaffeine, with obviously with won't work via remote access. It may also not
244detect properly the best video output plugin for some hardware settings.
245
246For such scenarios, you may try to change the arguments passed to libVLC via
247the `Settings` -->  `Configure Kaffeine` -->  `libVLC`, changing the libVLC
248arguments to:
249
250    --no-video-title-show -V xcb_glx
251
252or:
253
254    --no-video-title-show -V xcb_xv
255
256and re-start Kaffeine.
257
258Setting VDPAU acceleration
259--------------------------
260
261By default, libVlc will try to use vdpau hardware acceleration in order to
262decode the video stream at GPU. However, sometimes it may not get the right
263acceleration module, trying to always use NVidia module, even when the
264hardware is AMD or Intel. That happens, for example on Fedora 25 and 26, as
265reported at:
266
267* <https://bugzilla.redhat.com/show_bug.cgi?id=1305699>
268* <https://bugs.kde.org/show_bug.cgi?id=376893>
269
270For Radeon GPU, the vdpau driver can be forced with:
271
272    export VDPAU_DRIVER=r600
273
274The VA-GL driver can be used for Intel GPUs. It can be forced with:
275
276    export VDPAU_DRIVER=va_gl
277
278Note: you may need to install mesa-vdpau-drivers and/or libvdpau-va-gl
279packages for vdpau to work.
280
281Please notice that, depending on your hardware, for example, if your
282GPU vdpau driver can't decode the compression standard used by the
283broadcasters, it could be better to disable VDPAU backend.
284That can be done by passing an invalid driver name, like:
285
286    export VDPAU_DRIVER=none
287
288Using xmltv for EPG data
289========================
290
291As described at Kaffeine's documentation, xmltv files are now supported.
292
293In order to use it, you need to have a xmltv grabber. For example, you
294may use the tv_grab_eu_dotmedia grabber, from xmltv project.
295
296Kaffeine's internal logic will map the channels obtained by the grabber
297into the channel names it has stored internally. The Kaffeine names
298can be obtained with the following command:
299
300    $ echo 'select name from Channels;' | sqlite3 ~/.local/share/kaffeine/sqlite.db
301
302At the xmltv file format, the channel names can be obtained with:
303
304    $ grep display-name some_file.xmltv
305
306If the names don't match, you'll need to use an external script to do the
307map. There's an example about how to do it at:
308
309    tools/map_xmltv_channels.sh
310
311Please notice that you need to have `xmlstarlet` installed for it to work.
312
313Assuming that you modified the script for your needs and copied to your
314`~/bin` directory, a typical usage of obtaining the xmltv tables would be to
315have a script like this running on a shell console:
316
317    $ while :; do tv_grab_eu_dotmedia > eu_dotmedia.xmltv; \
318    ~/bin/map_xmltv_channels.sh eu_dotmedia.xmltv eu_dotmedia-new.xmltv; \
319    sleep 3600; done
320
321And configure Kaffeine to use the `eu_dotmedia-new.xmltv` file produced by
322the script (or whatever other name you use), disabling EPG MPEG-TS table
323reads.
324
325Please also notice that as soon as Kaffeine detects a change on a file, it
326will re-read. So, even if you don't need to do any map, you should
327first generate the xmltv file and then move it to the right place, e. g:
328
329    $ while :; do tv_grab_eu_dotmedia > eu_dotmedia.xmltv; \
330    mv eu_dotmedia.xmltv eu_dotmedia-new.xmltv; \
331    sleep 3600; done
332
333For more details, please read Kaffeine's manual.
334
335Homepage
336========
337
338<https://www.kde.org/applications/multimedia/kaffeine/>
339
340Authors
341=======
342
343Maintainer since KF5/Qt5 port (version 2.x):
344
345* Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
346
347Former maintainers:
348
349* Lasse Lindqvist <lasse.k.lindqvist@gmail.com>
350* Christoph Pfister
351* Christophe Thommeret
352* Jürgen Kofler
353
354Thanks to various contributors, translators, testers ...
355