You are not logged in.

#1 2010-01-27 15:46:02

jarav
Member
Registered: 2008-09-04
Posts: 63

No audio support in latest version of xvidcap

xvidcap 1.1.7-3 has no audio support. There are no audio settings in the 'Preferences' ui.

xvidcap --audio yes
Audio support not present in this binary.
Usage: xvidcap, ver 1.1.7, (c) rasca, berlin 1997,98,99, khb (c) 2003 - 07
...

Last edited by jarav (2010-01-27 15:46:47)

Offline

#2 2010-02-08 23:22:35

mwave
Member
Registered: 2010-02-08
Posts: 3

Re: No audio support in latest version of xvidcap

I had the same problem.

I have a fix, ugly, but worked for me.

I uninstalled xvidcap with pacman -R xvidcap

Downloaded the source from http://sourceforge.net/projects/xvidcap/. Got a compiler error on one of the header files. Googled the compiler error and found a fix.

capture.c

Line 68 change
#include <X11/extensions/shmstr.h>
to
#include <X11/extensions/shmproto.h>

...
I also couldn't get the "make install" to work either.  I skipped that step and just installed the xvidcap binary into the /usr/bin directory. Ugly but worked.
...
Hope that helps.

Last edited by mwave (2010-02-08 23:25:52)

Offline

#3 2010-02-09 06:29:52

jarav
Member
Registered: 2008-09-04
Posts: 63

Re: No audio support in latest version of xvidcap

thanks.  I did that already. Did you do a 'sudo make install'? That should have worked.  Reported a bug too.

Offline

#4 2010-03-15 07:57:52

Proofrific
Member
Registered: 2008-01-05
Posts: 215

Re: No audio support in latest version of xvidcap

I have the same "Audio support not present in this binary" problem on an x86_64 machine.

The Arch Linux package already includes mwave's suggestion to change "shmstr.h" to "shmproto.h" (http://repos.archlinux.org/wsvn/communi … .1.1.patch).  But, I got the "no audio" problem.  I tried makepkg-ing the package myself, but I got the same "no audio" problem.

Offline

#5 2010-03-15 20:29:14

Proofrific
Member
Registered: 2008-01-05
Posts: 215

Re: No audio support in latest version of xvidcap

I tried applying a (slightly modified) patch from http://bugs.gentoo.org/show_bug.cgi?id=258042 that modifies "configure.in", but I still get "Audio support not present in this binary" when running "xvidcap --audio yes".

For those interested, here is my patch (xvidcap-1.1.7-avcodec_decode_audio.patch):

--- xvidcap-1.1.7/configure.in.orig    2010-03-15 13:16:54.814871227 -0700
+++ xvidcap-1.1.7/configure.in    2010-03-15 13:15:15.140697228 -0700
@@ -424,7 +424,7 @@
 # with audio detection in shared library libavformat
 if ( test x${ac_cv_lib_avcodec_avcodec_encode_video} = xyes ) ; then
     test x`(uname -s)` = xSunOS && ac_my_avcodec_libs="-lnsl -lsocket"
-    AC_CHECK_LIB_STATIC(avcodec, avcodec_decode_audio,[ac_my_have_ffmpeg_audio="1"],[unset ac_cv_lib_avcodec_avcodec_decode_audio ; AC_CHECK_LIB(avcodec, avcodec_decode_audio,[ac_my_have_ffmpeg_audio="1"],[ac_my_have_ffmpeg_audio="0"],[$ac_my_avcodec_libs])],[$ac_my_avcodec_libs])
+    AC_CHECK_LIB_STATIC(avcodec, avcodec_decode_audio2,[ac_my_have_ffmpeg_audio="1"],[unset ac_cv_lib_avcodec_avcodec_decode_audio2 ; AC_CHECK_LIB(avcodec, avcodec_decode_audio2,[ac_my_have_ffmpeg_audio="1"],[ac_my_have_ffmpeg_audio="0"],[$ac_my_avcodec_libs])],[$ac_my_avcodec_libs])
 fi
 
 ################################################################

Here is my PKGBUILD:

# $Id: PKGBUILD 63169 2010-01-15 14:58:38Z giovanni $
# Maintainer: Thorsten Töpper <atsutane at freethoughts dot de>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: red_over_blue, Abaddon <kukububu@go2.pl>
# Contributor: damir <damir@archlinux.org>

pkgname=xvidcap
pkgver=1.1.7
pkgrel=3
pkgdesc="A small tool to capture things going on on an X-Windows display to either individual frames or an MPEG video"
arch=("i686" "x86_64")
license=('GPL')
url="http://xvidcap.sourceforge.net/"
depends=('dbus-glib' 'lame' 'libxmu' 'libglade' 'ffmpeg' 'dbus')
makedepends=('perlxml' 'rarian')
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
    'xextproto-7.1.1.patch'
    'xvidcap-ffmpeg.patch'
    'xvidcap-1.1.7-avcodec_decode_audio.patch')
md5sums=('b39a682d3ef9fcbf424af771936780e2'
    'fbde2b076c5ea05723883b87f3ef2a65'
    'f18817da1c0dada05fa791ae53193b2c'
    'a0ae26fb5830a0f3106fa3e09092c5b4')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}

  patch -Np1 -i ${srcdir}/xextproto-7.1.1.patch
  patch -Np1 -i ${srcdir}/xvidcap-1.1.7-avcodec_decode_audio.patch
  patch -Np0 -i ${srcdir}/xvidcap-ffmpeg.patch || return 1

  ./configure --prefix=/usr \
    --with-x \
    --with-gtk2 \
    --enable-libmp3lame \
    --without-forced-embedded-ffmpeg
  make || return 1
  make prefix=${pkgdir}/usr install || return 1
}

The other two patches can be found at http://repos.archlinux.org/wsvn/communi … ty-x86_64/.

Offline

#6 2010-04-06 12:37:10

qubodup
Member
Registered: 2008-01-19
Posts: 66

Re: No audio support in latest version of xvidcap

Did anybody manage to get audio to work?

According to http://bugs.archlinux.org/task/18038#comment56539 the last thing to fix is to replace 'av_fifo_init', 'av_fifo_write' and 'av_fifo_read'.

Does anybody have alternatives to offer? besides recordmydesktop and glc? smile

Offline

#7 2010-04-11 03:47:22

tatofoo
Member
Registered: 2009-05-18
Posts: 6

Re: No audio support in latest version of xvidcap

qubodup wrote:

Did anybody manage to get audio to work?

According to http://bugs.archlinux.org/task/18038#comment56539 the last thing to fix is to replace 'av_fifo_init', 'av_fifo_write' and 'av_fifo_read'.

Does anybody have alternatives to offer? besides recordmydesktop and glc? smile

I tried what mwave did and it worked

Offline

Board footer

Powered by FluxBB