Removed broken codec installation scripts.
Enable mp3lame support.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 74d2dabcbe
)
pull/92/head
parent
989a219c6c
commit
346b535e89
@ -1,9 +0,0 @@
|
|||||||
kaffeine can't depend on libxine1-ffmpeg
|
|
||||||
kaffeine does depend on kaffeine-xine, remove conflicts/replaces
|
|
||||||
add kaffeine-gstreamer.install and description
|
|
||||||
build-dep on libgstreamer0.10-dev, libgstreamer-plugins-base0.10-dev
|
|
||||||
remove --without-gstreamer
|
|
||||||
remove DEB_DESTDIR line
|
|
||||||
install/kaffeine:: Debian additions
|
|
||||||
install-codecs 755
|
|
||||||
DEB_FIXPERMS_EXCLUDE := install-css.sh install-codecs
|
|
@ -1,145 +0,0 @@
|
|||||||
#!/usr/bin/python
|
|
||||||
import sys,os
|
|
||||||
import gettext
|
|
||||||
import apt
|
|
||||||
from PyQt4.QtCore import *
|
|
||||||
from PyQt4.QtGui import *
|
|
||||||
|
|
||||||
gettext.textdomain('kaffeine-install-codecs')
|
|
||||||
|
|
||||||
def _(string):
|
|
||||||
return unicode(gettext.gettext(string), 'utf-8')
|
|
||||||
|
|
||||||
if len(sys.argv) < 2:
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
class InstallerOpProgress(apt.OpProgress):
|
|
||||||
def __init__(self, installer):
|
|
||||||
self.installer = installer
|
|
||||||
|
|
||||||
def update(self, percent):
|
|
||||||
self.installer.progress.setValue(percent)
|
|
||||||
QApplication.processEvents()
|
|
||||||
|
|
||||||
def done(self):
|
|
||||||
self.installer.progress.setValue(100)
|
|
||||||
QApplication.processEvents()
|
|
||||||
|
|
||||||
class CodecInstallerWidget(QDialog, apt.OpProgress):
|
|
||||||
def __init__(self):
|
|
||||||
QDialog.__init__(self)
|
|
||||||
self.setWindowTitle(_('Kaffeine codec installer'))
|
|
||||||
self.setModal(True)
|
|
||||||
self.status = QLabel()
|
|
||||||
self.status.setAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
|
|
||||||
self.progress = QProgressBar()
|
|
||||||
layout = QVBoxLayout()
|
|
||||||
layout.addWidget(self.status)
|
|
||||||
layout.addWidget(self.progress)
|
|
||||||
self.setLayout(layout)
|
|
||||||
self.setStatus(_('Initializing...'))
|
|
||||||
|
|
||||||
desktop = QApplication.desktop()
|
|
||||||
self.setMinimumWidth(desktop.width() / 3)
|
|
||||||
self.adjustSize()
|
|
||||||
self.move((desktop.width()-self.width()) / 2,
|
|
||||||
(desktop.height()-self.height()) / 2)
|
|
||||||
self.show()
|
|
||||||
self.run()
|
|
||||||
|
|
||||||
def setStatus(self, text):
|
|
||||||
self.status.setText('<i>' + text + '</i>')
|
|
||||||
QApplication.processEvents()
|
|
||||||
|
|
||||||
def init_apt_cache(self):
|
|
||||||
self.setStatus(_('Preparing...'))
|
|
||||||
self.apt_cache = apt.Cache(InstallerOpProgress(self))
|
|
||||||
|
|
||||||
def run(self):
|
|
||||||
if sys.argv[1] == 'ffmpeg':
|
|
||||||
self.installer = self.install_ffmpeg
|
|
||||||
elif sys.argv[1] == 'dvdcss':
|
|
||||||
self.installer = self.install_dvdcss
|
|
||||||
else:
|
|
||||||
QMessageBox.critical(self, _('Error'), _('Unknown codec type'))
|
|
||||||
QApplication.exit(1)
|
|
||||||
return
|
|
||||||
|
|
||||||
if not self.installer():
|
|
||||||
QApplication.exit(1)
|
|
||||||
return
|
|
||||||
|
|
||||||
os.system('dcop kaffeine KaffeineIface reloadEngine')
|
|
||||||
os.system('dcop kaffeine KaffeineIface play')
|
|
||||||
QApplication.exit(0)
|
|
||||||
|
|
||||||
def check_already_installed(self, pkg):
|
|
||||||
if pkg and pkg.isInstalled:
|
|
||||||
QMessageBox.critical(self, _('Error'), _('Codec package is already installed'))
|
|
||||||
QApplication.exit(1)
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
def install_ffmpeg(self):
|
|
||||||
self.init_apt_cache()
|
|
||||||
pkg = self.search_pkg('libxine','-ffmpeg')
|
|
||||||
|
|
||||||
if self.check_already_installed(pkg):
|
|
||||||
return False
|
|
||||||
|
|
||||||
confirm = QMessageBox.question(self, _('Codec not found'),
|
|
||||||
_('Kaffeine does not have a codec '
|
|
||||||
'installed to play this file. '
|
|
||||||
'Do you want to install the codecs?'),
|
|
||||||
QMessageBox.Yes | QMessageBox.No)
|
|
||||||
if (confirm == QMessageBox.No):
|
|
||||||
QApplication.exit(1)
|
|
||||||
return False
|
|
||||||
|
|
||||||
self.setStatus(_('Installing...'))
|
|
||||||
QApplication.processEvents()
|
|
||||||
self.install_cache_package(pkg)
|
|
||||||
return True
|
|
||||||
|
|
||||||
def install_cache_package(self, pkg):
|
|
||||||
if os.system('tdesu -d \'adept_batch install ' + pkg.name + '\'') != 0:
|
|
||||||
QApplication.exit(1)
|
|
||||||
return
|
|
||||||
|
|
||||||
def search_pkg(self, prefix, suffix = ''):
|
|
||||||
for pkg in self.apt_cache:
|
|
||||||
if pkg.name.startswith(prefix) and pkg.name.endswith(suffix):
|
|
||||||
return pkg
|
|
||||||
return None
|
|
||||||
|
|
||||||
def install_dvdcss(self):
|
|
||||||
self.init_apt_cache()
|
|
||||||
pkg = self.search_pkg('libdvdcss')
|
|
||||||
|
|
||||||
if self.check_already_installed(pkg):
|
|
||||||
return False
|
|
||||||
|
|
||||||
answer = QMessageBox.question(self, _('Codec not found'),
|
|
||||||
_('LibDVDCSS (http://www.videolan.org/developers/libdvdcss.html) '
|
|
||||||
'is about to be installed, it allows you to watch encrypted DVD '
|
|
||||||
'videos. This is illegal in some countries which '
|
|
||||||
'require decryption to be authorised by the copyright holder. '
|
|
||||||
'Do you want to install this package?'),
|
|
||||||
QMessageBox.Yes | QMessageBox.No)
|
|
||||||
if (answer == QMessageBox.No):
|
|
||||||
QApplication.exit(1)
|
|
||||||
return False
|
|
||||||
|
|
||||||
self.setStatus(_('Installing...'))
|
|
||||||
QApplication.processEvents()
|
|
||||||
|
|
||||||
distro_arch = os.popen('dpkg --print-installation-architecture').read()
|
|
||||||
distro_arch = distro_arch[:-1] # remove trailing newline
|
|
||||||
libdvdcss_url = 'http://kubuntu.org/packages/libdvdcss-' + distro_arch + '.deb'
|
|
||||||
os.system('kfmclient exec ' + libdvdcss_url)
|
|
||||||
return True
|
|
||||||
|
|
||||||
app = QApplication(sys.argv)
|
|
||||||
window = CodecInstallerWidget()
|
|
||||||
window.exec_()
|
|
||||||
|
|
@ -1,46 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
site=http://www.dtek.chalmers.se/groups/dvd/deb/
|
|
||||||
arch=`dpkg --print-installation-architecture`
|
|
||||||
|
|
||||||
soname=2
|
|
||||||
uversion=1.2.5
|
|
||||||
available="alpha amd64 hppa i386 ia64 powerpc s390 sparc"
|
|
||||||
version=${uversion}-1
|
|
||||||
|
|
||||||
if [ ! -e /usr/bin/wget ]
|
|
||||||
then
|
|
||||||
echo "Install wget and run this script again"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
for a in $available; do
|
|
||||||
if [ "$a" = "$arch" ]; then
|
|
||||||
wget ${site}libdvdcss${soname}_${version}_${arch}.deb -O /tmp/libdvdcss.deb
|
|
||||||
dpkg -i /tmp/libdvdcss.deb
|
|
||||||
exit $?
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "No binary deb available. Will try to build and install it."
|
|
||||||
echo "You need to have debhelper, dpkg-dev and fakeroot installed."
|
|
||||||
echo "If not, interrupt now, install them and rerun this script."
|
|
||||||
echo ""
|
|
||||||
echo "This is higly experimental, look out for what happens below."
|
|
||||||
echo "If you want to stop, interrupt now (control-c), else press"
|
|
||||||
echo "return to proceed"
|
|
||||||
read dum
|
|
||||||
|
|
||||||
mkdir -p /tmp/dvd
|
|
||||||
cd /tmp/dvd
|
|
||||||
wget ${site}libdvdcss_${uversion}.orig.tar.gz
|
|
||||||
wget ${site}libdvdcss_${version}.diff.gz
|
|
||||||
wget ${site}libdvdcss_${version}.dsc
|
|
||||||
dpkg-source -x libdvdcss_${version}.dsc
|
|
||||||
cd libdvdcss-${uversion}
|
|
||||||
fakeroot ./debian/rules binary
|
|
||||||
echo "Any problems? Interrupt now (control-c) and try to fix"
|
|
||||||
echo "manually, else go on and install (return)."
|
|
||||||
dpkg -i ../libdvdcss${soname}_${version}_${arch}.deb
|
|
@ -1,11 +0,0 @@
|
|||||||
# this file is "/usr/share/applications/tde/kaffeine-iso.desktop"
|
|
||||||
[Desktop Entry]
|
|
||||||
Exec=kaffeine dvd:%f
|
|
||||||
Icon=kaffeine
|
|
||||||
MimeType=application/x-iso
|
|
||||||
Name=kaffeine
|
|
||||||
Name[en_US]=kaffeine
|
|
||||||
StartupNotify=true
|
|
||||||
Terminal=false
|
|
||||||
Type=Application
|
|
||||||
NoDisplay=true
|
|
@ -1,187 +0,0 @@
|
|||||||
.\" This file was generated by kdemangen.pl
|
|
||||||
.TH KAFFEINE 1 "Apr 2005" "Trinity Desktop Environment" "A media player for TDE"
|
|
||||||
.SH NAME
|
|
||||||
kaffeine
|
|
||||||
- A media player for TDE that can use multiple backends for playback.
|
|
||||||
.SH SYNOPSIS
|
|
||||||
kaffeine [Qt-options] [TDE-options] [options] [file]
|
|
||||||
.SH DESCRIPTION
|
|
||||||
Kaffeine is a media player for TDE. While it supports multiple player
|
|
||||||
engines, its default engine is Xine, giving Kaffeine a wide variety of
|
|
||||||
supported media types and letting Kaffeine access CDs, DVDs, and
|
|
||||||
network streams easily.
|
|
||||||
|
|
||||||
Kaffeine can keep track of multiple playlists simultaneously, and supports
|
|
||||||
autoloading of subtitles files for use while playing video.
|
|
||||||
|
|
||||||
Author: Jürgen Kofler
|
|
||||||
Homepage: http://kaffeine.sourceforge.net
|
|
||||||
|
|
||||||
|
|
||||||
.SH OPTIONS
|
|
||||||
.SS
|
|
||||||
.SS Arguments:
|
|
||||||
.TP
|
|
||||||
.B file
|
|
||||||
File(s) to play. Can be a local file, a URL, a directory or 'DVD', 'VCD', 'AudioCD'.
|
|
||||||
.SS Options:
|
|
||||||
.TP
|
|
||||||
.B -p, --play
|
|
||||||
Start playing immediately
|
|
||||||
.TP
|
|
||||||
.B -f, --fullscreen
|
|
||||||
Start in fullscreen mode
|
|
||||||
.TP
|
|
||||||
.B -a, --audiodriver <argument>
|
|
||||||
Set audio driver [default]
|
|
||||||
.TP
|
|
||||||
.B -x, --videodriver <argument>
|
|
||||||
Set video driver [default]
|
|
||||||
.TP
|
|
||||||
.B -d, --device <argument>
|
|
||||||
Set Audio-CD/VCD/DVD device path. [default]
|
|
||||||
.TP
|
|
||||||
.B --verbose
|
|
||||||
Output xine debug messages
|
|
||||||
.TP
|
|
||||||
.B -w, --wizard
|
|
||||||
Run installation wizard
|
|
||||||
.SS
|
|
||||||
.SS Generic options:
|
|
||||||
.TP
|
|
||||||
.B --help
|
|
||||||
Show help about options
|
|
||||||
.TP
|
|
||||||
.B --help-qt
|
|
||||||
Show Qt specific options
|
|
||||||
.TP
|
|
||||||
.B --help-tde
|
|
||||||
Show TDE specific options
|
|
||||||
.TP
|
|
||||||
.B --help-all
|
|
||||||
Show all options
|
|
||||||
.TP
|
|
||||||
.B --author
|
|
||||||
Show author information
|
|
||||||
.TP
|
|
||||||
.B -v, --version
|
|
||||||
Show version information
|
|
||||||
.TP
|
|
||||||
.B --license
|
|
||||||
Show license information
|
|
||||||
.TP
|
|
||||||
.B --
|
|
||||||
End of options
|
|
||||||
.SS
|
|
||||||
.SS TDE options:
|
|
||||||
.TP
|
|
||||||
.B --caption <caption>
|
|
||||||
Use 'caption' as name in the titlebar
|
|
||||||
.TP
|
|
||||||
.B --icon <icon>
|
|
||||||
Use 'icon' as the application icon
|
|
||||||
.TP
|
|
||||||
.B --miniicon <icon>
|
|
||||||
Use 'icon' as the icon in the titlebar
|
|
||||||
.TP
|
|
||||||
.B --config <filename>
|
|
||||||
Use alternative configuration file
|
|
||||||
.TP
|
|
||||||
.B --dcopserver <server>
|
|
||||||
Use the DCOP Server specified by 'server'
|
|
||||||
.TP
|
|
||||||
.B --nocrashhandler
|
|
||||||
Disable crash handler, to get core dumps
|
|
||||||
.TP
|
|
||||||
.B --waitforwm
|
|
||||||
Waits for a WM_NET compatible windowmanager
|
|
||||||
.TP
|
|
||||||
.B --style <style>
|
|
||||||
sets the application GUI style
|
|
||||||
.TP
|
|
||||||
.B --geometry <geometry>
|
|
||||||
sets the client geometry of the main widget - see man X for the argument format
|
|
||||||
.TP
|
|
||||||
.B --nofork
|
|
||||||
Don't run in the background.
|
|
||||||
.SS
|
|
||||||
.SS Qt options:
|
|
||||||
.TP
|
|
||||||
.B --display <displayname>
|
|
||||||
Use the X-server display 'displayname'
|
|
||||||
.TP
|
|
||||||
.B --session <sessionId>
|
|
||||||
Restore the application for the given 'sessionId'
|
|
||||||
.TP
|
|
||||||
.B --cmap
|
|
||||||
Causes the application to install a private color
|
|
||||||
map on an 8-bit display
|
|
||||||
.TP
|
|
||||||
.B --ncols <count>
|
|
||||||
Limits the number of colors allocated in the color
|
|
||||||
cube on an 8-bit display, if the application is
|
|
||||||
using the QApplication::ManyColor color
|
|
||||||
specification
|
|
||||||
.TP
|
|
||||||
.B --nograb
|
|
||||||
tells Qt to never grab the mouse or the keyboard
|
|
||||||
.TP
|
|
||||||
.B --dograb
|
|
||||||
running under a debugger can cause an implicit
|
|
||||||
-nograb, use -dograb to override
|
|
||||||
.TP
|
|
||||||
.B --sync
|
|
||||||
switches to synchronous mode for debugging
|
|
||||||
.TP
|
|
||||||
.B --fn, --font <fontname>
|
|
||||||
defines the application font
|
|
||||||
.TP
|
|
||||||
.B --bg, --background <color>
|
|
||||||
sets the default background color and an
|
|
||||||
application palette (light and dark shades are
|
|
||||||
calculated)
|
|
||||||
.TP
|
|
||||||
.B --fg, --foreground <color>
|
|
||||||
sets the default foreground color
|
|
||||||
.TP
|
|
||||||
.B --btn, --button <color>
|
|
||||||
sets the default button color
|
|
||||||
.TP
|
|
||||||
.B --name <name>
|
|
||||||
sets the application name
|
|
||||||
.TP
|
|
||||||
.B --title <title>
|
|
||||||
sets the application title (caption)
|
|
||||||
.TP
|
|
||||||
.B --visual TrueColor
|
|
||||||
forces the application to use a TrueColor visual on
|
|
||||||
an 8-bit display
|
|
||||||
.TP
|
|
||||||
.B --inputstyle <inputstyle>
|
|
||||||
sets XIM (X Input Method) input style. Possible
|
|
||||||
values are onthespot, overthespot, offthespot and
|
|
||||||
root
|
|
||||||
.TP
|
|
||||||
.B --im <XIM server>
|
|
||||||
set XIM server
|
|
||||||
.TP
|
|
||||||
.B --noxim
|
|
||||||
disable XIM
|
|
||||||
.TP
|
|
||||||
.B --reverse
|
|
||||||
mirrors the whole layout of widgets
|
|
||||||
.SS
|
|
||||||
|
|
||||||
.SH SEE ALSO
|
|
||||||
Full user documentation is available through the TDE Help Center. You can also enter the URL
|
|
||||||
.BR help:/kaffeine/
|
|
||||||
directly into konqueror or you can run
|
|
||||||
.BR "`khelpcenter help:/kaffeine/'"
|
|
||||||
from the command-line.
|
|
||||||
.br
|
|
||||||
.SH AUTHORS
|
|
||||||
.nf
|
|
||||||
Jürgen Kofler <kaffeine@gmx.net>
|
|
||||||
.br
|
|
||||||
Christophe Thommeret <hftom@free.fr>
|
|
||||||
.br
|
|
@ -1,14 +0,0 @@
|
|||||||
[Desktop Entry]
|
|
||||||
Encoding=UTF-8
|
|
||||||
Type=ServiceType
|
|
||||||
X-TDE-ServiceType=Kaffeine/CodecInstall
|
|
||||||
|
|
||||||
# The unplayable codec
|
|
||||||
[PropertyDef::X-TDE-Kaffeine-codec]
|
|
||||||
Type=TQString
|
|
||||||
|
|
||||||
[PropertyDef::X-TDE-Kaffeine-engine]
|
|
||||||
Type=TQString
|
|
||||||
|
|
||||||
[PropertyDef::Exec]
|
|
||||||
Type=TQString
|
|
@ -1,8 +0,0 @@
|
|||||||
[Desktop Entry]
|
|
||||||
Encoding=UTF-8
|
|
||||||
Type=Service
|
|
||||||
ServiceTypes=Kaffeine/CodecInstall
|
|
||||||
X-TDE-Kaffeine-codec=dvdcss
|
|
||||||
X-TDE-Kaffeine-engine=xine-engine
|
|
||||||
Exec=kdialog --sorry "This DVD Video is encrypted. To be able to watch it you will need to install libdvdcss by running from a console: sudo /usr/share/doc/kaffeine/install-css.sh. In some countries it is illegal to install the decryption software without permission from the video copyright holder."
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
|||||||
[Desktop Entry]
|
|
||||||
Encoding=UTF-8
|
|
||||||
Type=Service
|
|
||||||
ServiceTypes=Kaffeine/CodecInstall
|
|
||||||
X-TDE-Kaffeine-codec=ffmpeg
|
|
||||||
X-TDE-Kaffeine-engine=xine-engine
|
|
||||||
Exec=/opt/trinity/lib/kaffeine/install-codecs ffmpeg
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
|||||||
version=3
|
|
||||||
http://sf.net/kaffeine/kaffeine-([\d.].[\d.].[\d])\.tar\.bz2 debian svn-upgrade
|
|
@ -1,9 +0,0 @@
|
|||||||
kaffeine can't depend on libxine1-ffmpeg
|
|
||||||
kaffeine does depend on kaffeine-xine, remove conflicts/replaces
|
|
||||||
add kaffeine-gstreamer.install and description
|
|
||||||
build-dep on libgstreamer0.10-dev, libgstreamer-plugins-base0.10-dev
|
|
||||||
remove --without-gstreamer
|
|
||||||
remove DEB_DESTDIR line
|
|
||||||
install/kaffeine:: Debian additions
|
|
||||||
install-codecs 755
|
|
||||||
DEB_FIXPERMS_EXCLUDE := install-css.sh install-codecs
|
|
@ -1,145 +0,0 @@
|
|||||||
#!/usr/bin/python
|
|
||||||
import sys,os
|
|
||||||
import gettext
|
|
||||||
import apt
|
|
||||||
from PyQt4.QtCore import *
|
|
||||||
from PyQt4.QtGui import *
|
|
||||||
|
|
||||||
gettext.textdomain('kaffeine-install-codecs')
|
|
||||||
|
|
||||||
def _(string):
|
|
||||||
return unicode(gettext.gettext(string), 'utf-8')
|
|
||||||
|
|
||||||
if len(sys.argv) < 2:
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
class InstallerOpProgress(apt.OpProgress):
|
|
||||||
def __init__(self, installer):
|
|
||||||
self.installer = installer
|
|
||||||
|
|
||||||
def update(self, percent):
|
|
||||||
self.installer.progress.setValue(percent)
|
|
||||||
QApplication.processEvents()
|
|
||||||
|
|
||||||
def done(self):
|
|
||||||
self.installer.progress.setValue(100)
|
|
||||||
QApplication.processEvents()
|
|
||||||
|
|
||||||
class CodecInstallerWidget(QDialog, apt.OpProgress):
|
|
||||||
def __init__(self):
|
|
||||||
QDialog.__init__(self)
|
|
||||||
self.setWindowTitle(_('Kaffeine codec installer'))
|
|
||||||
self.setModal(True)
|
|
||||||
self.status = QLabel()
|
|
||||||
self.status.setAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
|
|
||||||
self.progress = QProgressBar()
|
|
||||||
layout = QVBoxLayout()
|
|
||||||
layout.addWidget(self.status)
|
|
||||||
layout.addWidget(self.progress)
|
|
||||||
self.setLayout(layout)
|
|
||||||
self.setStatus(_('Initializing...'))
|
|
||||||
|
|
||||||
desktop = QApplication.desktop()
|
|
||||||
self.setMinimumWidth(desktop.width() / 3)
|
|
||||||
self.adjustSize()
|
|
||||||
self.move((desktop.width()-self.width()) / 2,
|
|
||||||
(desktop.height()-self.height()) / 2)
|
|
||||||
self.show()
|
|
||||||
self.run()
|
|
||||||
|
|
||||||
def setStatus(self, text):
|
|
||||||
self.status.setText('<i>' + text + '</i>')
|
|
||||||
QApplication.processEvents()
|
|
||||||
|
|
||||||
def init_apt_cache(self):
|
|
||||||
self.setStatus(_('Preparing...'))
|
|
||||||
self.apt_cache = apt.Cache(InstallerOpProgress(self))
|
|
||||||
|
|
||||||
def run(self):
|
|
||||||
if sys.argv[1] == 'ffmpeg':
|
|
||||||
self.installer = self.install_ffmpeg
|
|
||||||
elif sys.argv[1] == 'dvdcss':
|
|
||||||
self.installer = self.install_dvdcss
|
|
||||||
else:
|
|
||||||
QMessageBox.critical(self, _('Error'), _('Unknown codec type'))
|
|
||||||
QApplication.exit(1)
|
|
||||||
return
|
|
||||||
|
|
||||||
if not self.installer():
|
|
||||||
QApplication.exit(1)
|
|
||||||
return
|
|
||||||
|
|
||||||
os.system('dcop kaffeine KaffeineIface reloadEngine')
|
|
||||||
os.system('dcop kaffeine KaffeineIface play')
|
|
||||||
QApplication.exit(0)
|
|
||||||
|
|
||||||
def check_already_installed(self, pkg):
|
|
||||||
if pkg and pkg.isInstalled:
|
|
||||||
QMessageBox.critical(self, _('Error'), _('Codec package is already installed'))
|
|
||||||
QApplication.exit(1)
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
def install_ffmpeg(self):
|
|
||||||
self.init_apt_cache()
|
|
||||||
pkg = self.search_pkg('libxine','-ffmpeg')
|
|
||||||
|
|
||||||
if self.check_already_installed(pkg):
|
|
||||||
return False
|
|
||||||
|
|
||||||
confirm = QMessageBox.question(self, _('Codec not found'),
|
|
||||||
_('Kaffeine does not have a codec '
|
|
||||||
'installed to play this file. '
|
|
||||||
'Do you want to install the codecs?'),
|
|
||||||
QMessageBox.Yes | QMessageBox.No)
|
|
||||||
if (confirm == QMessageBox.No):
|
|
||||||
QApplication.exit(1)
|
|
||||||
return False
|
|
||||||
|
|
||||||
self.setStatus(_('Installing...'))
|
|
||||||
QApplication.processEvents()
|
|
||||||
self.install_cache_package(pkg)
|
|
||||||
return True
|
|
||||||
|
|
||||||
def install_cache_package(self, pkg):
|
|
||||||
if os.system('tdesu -d \'adept_batch install ' + pkg.name + '\'') != 0:
|
|
||||||
QApplication.exit(1)
|
|
||||||
return
|
|
||||||
|
|
||||||
def search_pkg(self, prefix, suffix = ''):
|
|
||||||
for pkg in self.apt_cache:
|
|
||||||
if pkg.name.startswith(prefix) and pkg.name.endswith(suffix):
|
|
||||||
return pkg
|
|
||||||
return None
|
|
||||||
|
|
||||||
def install_dvdcss(self):
|
|
||||||
self.init_apt_cache()
|
|
||||||
pkg = self.search_pkg('libdvdcss')
|
|
||||||
|
|
||||||
if self.check_already_installed(pkg):
|
|
||||||
return False
|
|
||||||
|
|
||||||
answer = QMessageBox.question(self, _('Codec not found'),
|
|
||||||
_('LibDVDCSS (http://www.videolan.org/developers/libdvdcss.html) '
|
|
||||||
'is about to be installed, it allows you to watch encrypted DVD '
|
|
||||||
'videos. This is illegal in some countries which '
|
|
||||||
'require decryption to be authorised by the copyright holder. '
|
|
||||||
'Do you want to install this package?'),
|
|
||||||
QMessageBox.Yes | QMessageBox.No)
|
|
||||||
if (answer == QMessageBox.No):
|
|
||||||
QApplication.exit(1)
|
|
||||||
return False
|
|
||||||
|
|
||||||
self.setStatus(_('Installing...'))
|
|
||||||
QApplication.processEvents()
|
|
||||||
|
|
||||||
distro_arch = os.popen('dpkg --print-installation-architecture').read()
|
|
||||||
distro_arch = distro_arch[:-1] # remove trailing newline
|
|
||||||
libdvdcss_url = 'http://kubuntu.org/packages/libdvdcss-' + distro_arch + '.deb'
|
|
||||||
os.system('kfmclient exec ' + libdvdcss_url)
|
|
||||||
return True
|
|
||||||
|
|
||||||
app = QApplication(sys.argv)
|
|
||||||
window = CodecInstallerWidget()
|
|
||||||
window.exec_()
|
|
||||||
|
|
@ -1,46 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
site=http://www.dtek.chalmers.se/groups/dvd/deb/
|
|
||||||
arch=`dpkg --print-installation-architecture`
|
|
||||||
|
|
||||||
soname=2
|
|
||||||
uversion=1.2.5
|
|
||||||
available="alpha amd64 hppa i386 ia64 powerpc s390 sparc"
|
|
||||||
version=${uversion}-1
|
|
||||||
|
|
||||||
if [ ! -e /usr/bin/wget ]
|
|
||||||
then
|
|
||||||
echo "Install wget and run this script again"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
for a in $available; do
|
|
||||||
if [ "$a" = "$arch" ]; then
|
|
||||||
wget ${site}libdvdcss${soname}_${version}_${arch}.deb -O /tmp/libdvdcss.deb
|
|
||||||
dpkg -i /tmp/libdvdcss.deb
|
|
||||||
exit $?
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "No binary deb available. Will try to build and install it."
|
|
||||||
echo "You need to have debhelper, dpkg-dev and fakeroot installed."
|
|
||||||
echo "If not, interrupt now, install them and rerun this script."
|
|
||||||
echo ""
|
|
||||||
echo "This is higly experimental, look out for what happens below."
|
|
||||||
echo "If you want to stop, interrupt now (control-c), else press"
|
|
||||||
echo "return to proceed"
|
|
||||||
read dum
|
|
||||||
|
|
||||||
mkdir -p /tmp/dvd
|
|
||||||
cd /tmp/dvd
|
|
||||||
wget ${site}libdvdcss_${uversion}.orig.tar.gz
|
|
||||||
wget ${site}libdvdcss_${version}.diff.gz
|
|
||||||
wget ${site}libdvdcss_${version}.dsc
|
|
||||||
dpkg-source -x libdvdcss_${version}.dsc
|
|
||||||
cd libdvdcss-${uversion}
|
|
||||||
fakeroot ./debian/rules binary
|
|
||||||
echo "Any problems? Interrupt now (control-c) and try to fix"
|
|
||||||
echo "manually, else go on and install (return)."
|
|
||||||
dpkg -i ../libdvdcss${soname}_${version}_${arch}.deb
|
|
@ -1,11 +0,0 @@
|
|||||||
# this file is "/usr/share/applications/tde/kaffeine-iso.desktop"
|
|
||||||
[Desktop Entry]
|
|
||||||
Exec=kaffeine dvd:%f
|
|
||||||
Icon=kaffeine
|
|
||||||
MimeType=application/x-iso
|
|
||||||
Name=kaffeine
|
|
||||||
Name[en_US]=kaffeine
|
|
||||||
StartupNotify=true
|
|
||||||
Terminal=false
|
|
||||||
Type=Application
|
|
||||||
NoDisplay=true
|
|
@ -1,187 +0,0 @@
|
|||||||
.\" This file was generated by kdemangen.pl
|
|
||||||
.TH KAFFEINE 1 "Apr 2005" "Trinity Desktop Environment" "A media player for TDE"
|
|
||||||
.SH NAME
|
|
||||||
kaffeine
|
|
||||||
- A media player for TDE that can use multiple backends for playback.
|
|
||||||
.SH SYNOPSIS
|
|
||||||
kaffeine [Qt-options] [TDE-options] [options] [file]
|
|
||||||
.SH DESCRIPTION
|
|
||||||
Kaffeine is a media player for TDE. While it supports multiple player
|
|
||||||
engines, its default engine is Xine, giving Kaffeine a wide variety of
|
|
||||||
supported media types and letting Kaffeine access CDs, DVDs, and
|
|
||||||
network streams easily.
|
|
||||||
|
|
||||||
Kaffeine can keep track of multiple playlists simultaneously, and supports
|
|
||||||
autoloading of subtitles files for use while playing video.
|
|
||||||
|
|
||||||
Author: Jürgen Kofler
|
|
||||||
Homepage: http://kaffeine.sourceforge.net
|
|
||||||
|
|
||||||
|
|
||||||
.SH OPTIONS
|
|
||||||
.SS
|
|
||||||
.SS Arguments:
|
|
||||||
.TP
|
|
||||||
.B file
|
|
||||||
File(s) to play. Can be a local file, a URL, a directory or 'DVD', 'VCD', 'AudioCD'.
|
|
||||||
.SS Options:
|
|
||||||
.TP
|
|
||||||
.B -p, --play
|
|
||||||
Start playing immediately
|
|
||||||
.TP
|
|
||||||
.B -f, --fullscreen
|
|
||||||
Start in fullscreen mode
|
|
||||||
.TP
|
|
||||||
.B -a, --audiodriver <argument>
|
|
||||||
Set audio driver [default]
|
|
||||||
.TP
|
|
||||||
.B -x, --videodriver <argument>
|
|
||||||
Set video driver [default]
|
|
||||||
.TP
|
|
||||||
.B -d, --device <argument>
|
|
||||||
Set Audio-CD/VCD/DVD device path. [default]
|
|
||||||
.TP
|
|
||||||
.B --verbose
|
|
||||||
Output xine debug messages
|
|
||||||
.TP
|
|
||||||
.B -w, --wizard
|
|
||||||
Run installation wizard
|
|
||||||
.SS
|
|
||||||
.SS Generic options:
|
|
||||||
.TP
|
|
||||||
.B --help
|
|
||||||
Show help about options
|
|
||||||
.TP
|
|
||||||
.B --help-qt
|
|
||||||
Show Qt specific options
|
|
||||||
.TP
|
|
||||||
.B --help-tde
|
|
||||||
Show TDE specific options
|
|
||||||
.TP
|
|
||||||
.B --help-all
|
|
||||||
Show all options
|
|
||||||
.TP
|
|
||||||
.B --author
|
|
||||||
Show author information
|
|
||||||
.TP
|
|
||||||
.B -v, --version
|
|
||||||
Show version information
|
|
||||||
.TP
|
|
||||||
.B --license
|
|
||||||
Show license information
|
|
||||||
.TP
|
|
||||||
.B --
|
|
||||||
End of options
|
|
||||||
.SS
|
|
||||||
.SS TDE options:
|
|
||||||
.TP
|
|
||||||
.B --caption <caption>
|
|
||||||
Use 'caption' as name in the titlebar
|
|
||||||
.TP
|
|
||||||
.B --icon <icon>
|
|
||||||
Use 'icon' as the application icon
|
|
||||||
.TP
|
|
||||||
.B --miniicon <icon>
|
|
||||||
Use 'icon' as the icon in the titlebar
|
|
||||||
.TP
|
|
||||||
.B --config <filename>
|
|
||||||
Use alternative configuration file
|
|
||||||
.TP
|
|
||||||
.B --dcopserver <server>
|
|
||||||
Use the DCOP Server specified by 'server'
|
|
||||||
.TP
|
|
||||||
.B --nocrashhandler
|
|
||||||
Disable crash handler, to get core dumps
|
|
||||||
.TP
|
|
||||||
.B --waitforwm
|
|
||||||
Waits for a WM_NET compatible windowmanager
|
|
||||||
.TP
|
|
||||||
.B --style <style>
|
|
||||||
sets the application GUI style
|
|
||||||
.TP
|
|
||||||
.B --geometry <geometry>
|
|
||||||
sets the client geometry of the main widget - see man X for the argument format
|
|
||||||
.TP
|
|
||||||
.B --nofork
|
|
||||||
Don't run in the background.
|
|
||||||
.SS
|
|
||||||
.SS Qt options:
|
|
||||||
.TP
|
|
||||||
.B --display <displayname>
|
|
||||||
Use the X-server display 'displayname'
|
|
||||||
.TP
|
|
||||||
.B --session <sessionId>
|
|
||||||
Restore the application for the given 'sessionId'
|
|
||||||
.TP
|
|
||||||
.B --cmap
|
|
||||||
Causes the application to install a private color
|
|
||||||
map on an 8-bit display
|
|
||||||
.TP
|
|
||||||
.B --ncols <count>
|
|
||||||
Limits the number of colors allocated in the color
|
|
||||||
cube on an 8-bit display, if the application is
|
|
||||||
using the QApplication::ManyColor color
|
|
||||||
specification
|
|
||||||
.TP
|
|
||||||
.B --nograb
|
|
||||||
tells Qt to never grab the mouse or the keyboard
|
|
||||||
.TP
|
|
||||||
.B --dograb
|
|
||||||
running under a debugger can cause an implicit
|
|
||||||
-nograb, use -dograb to override
|
|
||||||
.TP
|
|
||||||
.B --sync
|
|
||||||
switches to synchronous mode for debugging
|
|
||||||
.TP
|
|
||||||
.B --fn, --font <fontname>
|
|
||||||
defines the application font
|
|
||||||
.TP
|
|
||||||
.B --bg, --background <color>
|
|
||||||
sets the default background color and an
|
|
||||||
application palette (light and dark shades are
|
|
||||||
calculated)
|
|
||||||
.TP
|
|
||||||
.B --fg, --foreground <color>
|
|
||||||
sets the default foreground color
|
|
||||||
.TP
|
|
||||||
.B --btn, --button <color>
|
|
||||||
sets the default button color
|
|
||||||
.TP
|
|
||||||
.B --name <name>
|
|
||||||
sets the application name
|
|
||||||
.TP
|
|
||||||
.B --title <title>
|
|
||||||
sets the application title (caption)
|
|
||||||
.TP
|
|
||||||
.B --visual TrueColor
|
|
||||||
forces the application to use a TrueColor visual on
|
|
||||||
an 8-bit display
|
|
||||||
.TP
|
|
||||||
.B --inputstyle <inputstyle>
|
|
||||||
sets XIM (X Input Method) input style. Possible
|
|
||||||
values are onthespot, overthespot, offthespot and
|
|
||||||
root
|
|
||||||
.TP
|
|
||||||
.B --im <XIM server>
|
|
||||||
set XIM server
|
|
||||||
.TP
|
|
||||||
.B --noxim
|
|
||||||
disable XIM
|
|
||||||
.TP
|
|
||||||
.B --reverse
|
|
||||||
mirrors the whole layout of widgets
|
|
||||||
.SS
|
|
||||||
|
|
||||||
.SH SEE ALSO
|
|
||||||
Full user documentation is available through the TDE Help Center. You can also enter the URL
|
|
||||||
.BR help:/kaffeine/
|
|
||||||
directly into konqueror or you can run
|
|
||||||
.BR "`khelpcenter help:/kaffeine/'"
|
|
||||||
from the command-line.
|
|
||||||
.br
|
|
||||||
.SH AUTHORS
|
|
||||||
.nf
|
|
||||||
Jürgen Kofler <kaffeine@gmx.net>
|
|
||||||
.br
|
|
||||||
Christophe Thommeret <hftom@free.fr>
|
|
||||||
.br
|
|
@ -1,14 +0,0 @@
|
|||||||
[Desktop Entry]
|
|
||||||
Encoding=UTF-8
|
|
||||||
Type=ServiceType
|
|
||||||
X-TDE-ServiceType=Kaffeine/CodecInstall
|
|
||||||
|
|
||||||
# The unplayable codec
|
|
||||||
[PropertyDef::X-TDE-Kaffeine-codec]
|
|
||||||
Type=TQString
|
|
||||||
|
|
||||||
[PropertyDef::X-TDE-Kaffeine-engine]
|
|
||||||
Type=TQString
|
|
||||||
|
|
||||||
[PropertyDef::Exec]
|
|
||||||
Type=TQString
|
|
@ -1,8 +0,0 @@
|
|||||||
[Desktop Entry]
|
|
||||||
Encoding=UTF-8
|
|
||||||
Type=Service
|
|
||||||
ServiceTypes=Kaffeine/CodecInstall
|
|
||||||
X-TDE-Kaffeine-codec=dvdcss
|
|
||||||
X-TDE-Kaffeine-engine=xine-engine
|
|
||||||
Exec=kdialog --sorry "This DVD Video is encrypted. To be able to watch it you will need to install libdvdcss by running from a console: sudo /usr/share/doc/kaffeine/install-css.sh. In some countries it is illegal to install the decryption software without permission from the video copyright holder."
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
|||||||
[Desktop Entry]
|
|
||||||
Encoding=UTF-8
|
|
||||||
Type=Service
|
|
||||||
ServiceTypes=Kaffeine/CodecInstall
|
|
||||||
X-TDE-Kaffeine-codec=ffmpeg
|
|
||||||
X-TDE-Kaffeine-engine=xine-engine
|
|
||||||
Exec=/opt/trinity/lib/kaffeine/install-codecs ffmpeg
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
|||||||
version=3
|
|
||||||
http://sf.net/kaffeine/kaffeine-([\d.].[\d.].[\d])\.tar\.bz2 debian svn-upgrade
|
|
Loading…
Reference in new issue