You are not logged in.
Pages: 1
Topic closed
I got down to only one 32 bit program on my 64 bit install -- Flash. Having dropped Skype and Lightscribe, it started to seem silly to have 50+ duplicate libraries for something I don't use often. I wanted a solution that isn't a Grease Monkey script, so this leaves swfdec and Gnash.
I don't like the newer swfdec; It's brutal on the CPU, I don't want two copies of FFmpeg on my system (gstreamer0.10-ffmpeg and my subversion build), and it doesn't have an OSS backend. Gnash, even with the GL driver, looks too blocky and is far behind swfdec in functionality.
The last version of swfdec that I knew of that worked good enough was 0.6.8, and it can use OSS unpatched. I also found the Gentoo patches for gstreamer0.10-ffmpeg. The combination turns out to work fairly well. The CPU usage is way down, but is still nowhere near as good as Flash 10.
This is the PKGBUILD for gstreamer0.10-ffmpeg. It's designed for very new versions of FFmpeg. The one I tested against is less than a day old. As always I removed the e-mail addresses from the forum post. Credit goes to JGC and AndyRTR for the original three PKGBUILDS. I'm not putting this in AUR because I expect it break frequently:
pkgname=gstreamer0.10-system-ffmpeg
pkgver=0.10.5
pkgrel=1
pkgdesc="Gstreamer FFmpeg Plugin"
arch=(i686 x86_64)
license=('GPL')
depends=('gstreamer0.10-base>=0.10.21' 'bzip2')
makedepends=('pkgconfig')
provides=('gstreamer0.10-ffmpeg')
conflicts=('gstreamer0.10-ffmpeg')
url="http://www.gstreamer.net"
groups=('gstreamer0.10-plugins')
source=(http://gstreamer.freedesktop.org/src/gst-ffmpeg/gst-ffmpeg-${pkgver}.tar.bz2 \
http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/media-plugins/gst-plugins-ffmpeg/files/0.10.5/system-ffmpeg-warning.patch \
http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/media-plugins/gst-plugins-ffmpeg/files/0.10.5/lavc.patch \
http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/media-plugins/gst-plugins-ffmpeg/files/0.10.5/offset.patch)
md5sums=('1ff579945eafcfddab420b734c3a0c92' \
'843de68f93d56cdeb8cb754c906fa34d' \
'2f5caa982a5f297aa8e89c60560f9313' \
'e61a1a4908706610274739b285321935')
build() {
sed -i -e 's,gst-ffmpeg-0.10.4,gst-ffmpeg-0.10.5,' ./lavc.patch
sed -i -e 's,gst-ffmpeg-0.10.4,gst-ffmpeg-0.10.5,' ./offset.patch
cd ${startdir}/src/gst-ffmpeg-${pkgver}
patch -Np1 -i ${startdir}/src/lavc.patch || return 1
patch -Np1 -i ${startdir}/src/offset.patch || return 1
patch -Np1 -i ${startdir}/src/system-ffmpeg-warning.patch || return 1
sed -i \
-e 's,ffmpeg/avformat.h,libavformat/avformat.h,' \
-e 's,ffmpeg/avcodec.h,libavcodec/avcodec.h,' \
-e 's,ffmpeg/swscale.h,libswscale/swscale.h,' \
-e 's,postproc/postprocess.h,libpostproc/postprocess.h,'\
ext/ffmpeg/gst* \
ext/libpostproc/gstpostproc.c \
|| die "404. No files found."
unset CFLAGS
unset CXXFLAGS
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-system-ffmpeg || return 1
make || return 1
make DESTDIR=${startdir}/pkg install || return 1
rm -f ${startdir}/pkg/usr/lib/gstreamer-0.10/*.{l,}a
}
swfdec 0.6.8 with OSS enabled as the backend:
pkgname=swfdec
pkgver=0.6.8
pkgrel=1
pkgdesc="free library for decoding and rendering Flash animations"
arch=('i686' 'x86_64')
url="http://swfdec.freedesktop.org"
license=('LGPL')
depends=('alsa-lib>=1.0.17a' 'liboil>=0.3.15' 'gtk2>=2.14.4-1' 'libsoup>=2.24.1-1')
makedepends=('pkgconfig' 'gstreamer0.10-ffmpeg')
optdepends=('gstreamer0.10-base: required for various audio and video formats'
'gstreamer0.10-ffmpeg: most common audio/video format for internet flash')
source=(http://swfdec.freedesktop.org/download/swfdec/0.6/${pkgname}-${pkgver}.tar.gz)
md5sums=('740caf52068556ffe151703342fb634b')
options=('!libtool' '!emptydirs')
build() {
cd ${startdir}/src/${pkgname}-${pkgver}
./configure --prefix=/usr --disable-static --enable-gtk \
--enable-gstreamer --enable-soup --with-audio=oss
make || return 1
make DESTDIR=${startdir}/pkg install
}
swfdec-mozilla:
pkgname=swfdec-mozilla
pkgver=0.6.0
pkgrel=1
pkgdesc="free plugin for Mozilla browsers that uses the Swfdec library for playing SWF files"
arch=('i686' 'x86_64')
url="http://swfdec.freedesktop.org"
license=('LGPL')
depends=("swfdec>=$pkgver")
source=(http://swfdec.freedesktop.org/download/swfdec-mozilla/0.6/${pkgname}-${pkgver}.tar.gz)
options=('!libtool')
md5sums=('dc0fb84b5e5c7540ae1231eb04109f0e')
build() {
cd ${startdir}/src/${pkgname}-${pkgver}
./configure --prefix=/usr --disable-static --with-plugin-dir=/usr/lib/mozilla/plugins/
make || return 1
make DESTDIR=${startdir}/pkg install
}
Updated to distinguish this package from gstreamer0.10-ffmpeg.
Last edited by skottish (2008-11-15 08:12:02)
Offline
I actually never tried Swfdec 0.8; Youtube stopped working after the upgrade so I just downgraded. I recently switched to OSS, so thanks for the PKGBUILD.
Offline
hmm.. you know there is 64bit flash now?
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
seems if i use oss sound driver, i can only use old swfdec? only 0.6.8 have "--with-audio=oss"
Offline
Is the gstreamer0.10-ffmpeg package in extra still an issue? Maybe I don't know what I'm talking about but if it didn't use "the system's ffmpeg" I would expect it to come with an entire copy of ffmpeg. However all I see is:
[connor@connors-laptop gstreamer-0.10]$ pacman -Ql gstreamer0.10-ffmpeg
gstreamer0.10-ffmpeg /usr/
gstreamer0.10-ffmpeg /usr/lib/
gstreamer0.10-ffmpeg /usr/lib/gstreamer-0.10/
gstreamer0.10-ffmpeg /usr/lib/gstreamer-0.10/libgstffmpeg.so
gstreamer0.10-ffmpeg /usr/lib/gstreamer-0.10/libgstffmpegscale.so
gstreamer0.10-ffmpeg /usr/lib/gstreamer-0.10/libgstpostproc.so
Is the current package built against the system ffmpeg or not?
6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.
Offline
This thread is over a year old. Please start a new thread for your problems/issues.
http://wiki.archlinux.org/index.php/For … Bumping.27
Closing...
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Pages: 1
Topic closed