You are not logged in.

#1 2008-11-14 18:42:08

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

swfdec 0.6.8 + gstreamer0.10-ffmpeg using system FFmpeg = good enough

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

#2 2008-12-02 20:05:09

hakl
Member
Registered: 2008-11-12
Posts: 1

Re: swfdec 0.6.8 + gstreamer0.10-ffmpeg using system FFmpeg = good enough

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

#3 2008-12-03 18:46:08

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: swfdec 0.6.8 + gstreamer0.10-ffmpeg using system FFmpeg = good enough

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

#4 2009-05-18 15:09:34

jarryson
Member
Registered: 2007-02-18
Posts: 298

Re: swfdec 0.6.8 + gstreamer0.10-ffmpeg using system FFmpeg = good enough

seems if i use oss sound driver, i can only use old swfdec? only 0.6.8 have "--with-audio=oss"

Offline

#5 2010-09-01 03:31:11

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: swfdec 0.6.8 + gstreamer0.10-ffmpeg using system FFmpeg = good enough

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

#6 2010-09-01 04:10:18

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: swfdec 0.6.8 + gstreamer0.10-ffmpeg using system FFmpeg = good enough

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...


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB