Sound not recorded with xvidcap but works with gtk-recordmydesktop

Bug #586719 reported by Martin Wildam
66
This bug affects 14 people
Affects Status Importance Assigned to Milestone
xvidcap (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: xvidcap

I can't get the sound capture working in xvidcap - tried several different sound devices in the configuration but without success.

First I had problems even with gtk-recordmydesktop where the sound quality was bad - parts missing. Then I closed Skype and that helped for gtk-recordmydesktop but within xvidcap I get no sound at all. Only some "crack"s from time to time.

I also tried starting it with
padsp xvidcap

but didn't help either. Ubuntu-restricted extras are installed.

Here is the output when starting from padsp, recording a few seconds and playing back:

 padsp xvidcap
[mpeg4 @ 0x840d070]removing common factors from framerate
MPlayer SVN-r29237-4.4.1 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing test-0000.mpeg.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [FMP4] 192x144 24bpp 10.000 fps 430.8 kbps (52.6 kbyte/s)
Clip info:
 Software: Lavf52.31.0
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: Permission denied.
[VO_3DFX] Unable to open /dev/3dfx.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 64.0 kbit/4.54% (ratio: 8000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[pulse] working around probably broken pause functionality,
        see http://www.pulseaudio.org/ticket/440
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 192 x 144 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 192x144 => 192x144 Planar YV12
A: 3.4 V: 3.4 A-V: 0.000 ct: -0.000 35/ 35 2% 0% 0.5% 0 0
Badly interleaved AVI file detected - switching to -ni mode...
A: 3.4 V: 3.4 A-V: 0.004 ct: -0.000 35/ 35 2% 0% 0.5% 0 0

Exiting... (End of file)

ProblemType: Bug
Architecture: i386
Date: Fri May 28 10:21:47 2010
DistroRelease: Ubuntu 9.10
Package: xvidcap 1.1.7-0.2ubuntu5.1
ProcEnviron:
 LANGUAGE=en_DK.UTF-8
 LANG=en_DK.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-21.59-generic
SourcePackage: xvidcap
Uname: Linux 2.6.31-21-generic i686

Revision history for this message
Martin Wildam (mwildam) wrote :
Revision history for this message
Martin Wildam (mwildam) wrote :

I have tried under Lucid now on another (also physical) machine without Skype ever been installed. Same issue.

Changed in xvidcap (Ubuntu):
importance: Undecided → Medium
status: New → In Progress
assignee: nobody → Alessio Treglia (quadrispro)
Changed in xvidcap (Ubuntu):
milestone: none → maverick-updates
Revision history for this message
Simon Blandford (home-simonb) wrote :

This is the error I get when I run padsp xvidcap...

xtoffmpeg.c add_audio_stream(): Can't initialize fifo for audio recording
missing -4 milli secs (100 needed per frame), pic no 0

I can see the application in pulse volume control, the VU meter is active, but xvidcap records a blank soundtrack.

Revision history for this message
Simos Xenitellis  (simosx) wrote :

There is a https://github.com/axiak/xvidcap-pulseaudio repository at GitHub.
Does the current xvidcap support PulseAudio?

Revision history for this message
chuck adams (chuck-adams-k7qo) wrote :

Here is my current trial of xvidcap on 11.04

It records screen area nicely. No sound.
Stop recordiing then hit 'play' and system brings up mplayer.
Missing /dev/mga_vid and /dev/fd0 has permission rw-rw---- bits set.

----------------------------------------------------------------------------------------------
lots os stuff on the Internet about this not working, but no solutions
that work. Using x86_64 or amd64 64-bit system.
----------------------------------------------------------------------------------------------

adams@quads:~/ft_tuthill$ cat run
padsp xvidcap --fps 30 --cap_geometry 600x480+200+300 --time 3600 --audio yes --file talk-$1.avi
adams@quads:~/ft_tuthill$ ./run 1
[oss @ 0x7fe02c07b140]Estimating duration from bitrate, this may be inaccurate
xtoffmpeg.c add_audio_stream(): Can't initialize fifo for audio recording
MPlayer 1.0rc4-4.5.2 (C) 2000-2010 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing talk-1.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
AVI: No audio stream found -> no sound.
VIDEO: [MP42] 600x480 24bpp 30.000 fps 60.7 kbps ( 7.4 kbyte/s)
Clip info:
 Software: Lavf52.64.2
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] This driver only supports the 3Dfx Banshee, Voodoo3 and Voodoo 5.
[VO_3DFX] Unable to open /dev/3dfx.
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmp42] vfm: ffmpeg (FFmpeg MSMPEG-4 v2)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
ADecoder init failed :(
ADecoder init failed :(
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Cannot find codec 'mp3float' in libavcodec...
ADecoder init failed :(
ADecoder init failed :(
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 64.0 kbit/4.54% (ratio: 8000->176400)
Selected audio codec: [ffmp3] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 600x480 => 600x480 Planar YV12
A: 0.0 V: 8.5 A-V: -8.467 ct:-108.821 255/255 4% 0% 0.0% 0 0

Exiting... (End of file)
adams@quads:~/ft_tuthill$

Revision history for this message
Martin Wildam (mwildam) wrote :

For Ubuntu 11.10 with v1.1.7-02ubuntu12 sound still does not work.

Neither the proposed solution from here works: http://dannyman.toldme.com/2009/09/28/howto-ubuntu-xvidcap-audio-support/

Revision history for this message
fastinetserver (fastinetserver) wrote :

> For Ubuntu 11.10 with v1.1.7-02ubuntu12 sound still does not work.
Same here: Ubuntu 11.10 64bit v1.1.7-02ubuntu12 sound still does not work.

Revision history for this message
BenginM (sary) wrote :
Download full text (3.6 KiB)

This effects me as well,

Ubunu 12.04

xvidcap Version : 1.1.7-0.2ubuntu12

# I have PulseAudio Volume Control installed, running it with " padsp xvidcap " i can see it under > Recording .. then playing the test file with MPlayer output the rest ..

sary@sm:~$ padsp xvidcap
[mpeg4 @ 0x92aca80] removing common factors from framerate
[oss @ 0x92a8ba0] Estimating duration from bitrate, this may be inaccurate
xtoffmpeg.c add_audio_stream(): Can't initialize fifo for audio recording
MPlayer svn r34540 (Ubuntu), built with gcc-4.6 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing test-0000.mpeg.
libavformat version 53.21.0 (external)
Mismatching header version 53.19.0
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
AVI: No audio stream found -> no sound.
VIDEO: [FMP4] 1192x596 24bpp 24.000 fps 661.5 kbps (80.8 kbyte/s)
Clip info:
 Software: Lavf53.21.0
Load subtitles in ./
Failed to open VDPAU backend libvdpau_nouveau.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 53.35.0 (external)
Mismatching header version 53.32.2
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Unknown/missing audio format -> no sound
ADecoder init failed :(
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Unknown/missing audio format -> no sound
ADecoder init failed :(
Requested audio codec family [mad] (afm=libmad) not available.
Enable it at compilation.
Opening audio decoder: [acm] Win32/ACM decoders
Loading codec DLL: 'l3codeca.acm'
Win32 LoadLibrary failed to load: /usr/lib/codecs/l3codeca.acm
Can't open library l3codeca.acm
ACM_Decoder: Unappropriate audio format
Could not load/initialize Win32/ACM audio codec (missing DLL file?).
ADecoder preinit failed :(
ADecoder init failed :(
Opening audio decoder: [hwmpa] MPEG audio pass-through (fake decoder)
Cannot sync MPA frame: 0
ADecoder init failed :(
ADecoder init failed :(
Opening audio decoder: [spdif] libavformat/spdifenc audio pass-through decoder.
AUDIO: 48000 Hz, 2 ch, mpeg2, 768.0 kbit/50.00% (ratio: 96000->192000)
Selected audio codec: [spdifmpa] afm: spdif (libavformat/spdifenc MPEG AUDIO BC pass-through decoder)
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
[format] Sample format big-endian MPEG-2 not yet supported
[libaf] Reinitialization did not work, audio filter 'format' returned error code -2
[libaf] Unab...

Read more...

Revision history for this message
BenginM (sary) wrote :
Revision history for this message
Alessio Treglia (quadrispro) wrote :

xvidcap is no longer maintained upstream so removing myself as assignee.

Changed in xvidcap (Ubuntu):
assignee: Alessio Treglia (quadrispro) → nobody
milestone: maverick-updates → none
status: In Progress → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.