FS#18038 - [xvidcap] No audio support in latest version

Attached to Project: Community Packages
Opened by Jagadish R (jarav) - Wednesday, 27 January 2010, 15:40 GMT
Last edited by Thorsten Töpper (Atsutane) - Monday, 01 February 2010, 22:39 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Thorsten Töpper (Atsutane)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

No audio support in xvidcap. No audio settings in 'Preferences'

Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:
Invoking "xvidcap --audio yes"
gives:
Audio support not present in this binary.
This task depends upon

Closed by  Thorsten Töpper (Atsutane)
Monday, 01 February 2010, 22:39 GMT
Reason for closing:  Upstream
Additional comments about closing:  Upstream are bugreports opened, no code patch from my side.
Comment by Jagadish R (jarav) - Wednesday, 27 January 2010, 18:29 GMT
Compiling the source package produces a binary that works with audio. You have to change 'shmstr.h' in capture.c to 'shmproto.h' for the compile to work.
Comment by Thorsten Töpper (Atsutane) - Wednesday, 27 January 2010, 21:00 GMT
The patch to replace the extension header is already applied, that's done by the xextproto-7.1.1.patch. So the difference lies within the installed packages, I have to build packages for the repository in a clean chroot, but even if I build it at my system, I don't get the audio stuff enabled.

Please give me a list of the packages installed on your system to narrow the range of packages - that probably provide the needed files and have to be tested - down.

Also please tell me the version of your installed ffmpeg package and if you have modified it, as the configure scripts says "checking for avcodec_decode_audio in -lavcodec... no" when I build the package. (libavcodec is part of the ffmpeg installation.)
Comment by Jagadish R (jarav) - Wednesday, 27 January 2010, 22:13 GMT
hi,
I downloaded xvidcap from sourceforge and compiled it. My installed ffmpeg version is "ffmpeg 20100108-2". But I think when I compiled xvidcap from source, it built its own ffmpeg ( with static linking perhaps -- i am not an expert -- but the size of the binary is much larger than that of the pacman installed version) as shown in the output of configure:
...

make-ing prerequisite ffmpeg libraries
install prefix /usr/local
source path /home/jarav/installns/xvidcap-1.1.7/ffmpeg
C compiler gcc
.align is power-of-two no
ARCH x86_32 (generic)
big-endian no
MMX enabled yes
CMOV enabled no
CMOV is fast no
EBX available yes
EBP available no
gprof enabled no
debug symbols yes
strip symbols yes
optimizations yes
static yes
shared no
postprocessing support no
software scaler enabled yes
new filter support no
filters using lavformat no
video hooking yes
Imlib2 support yes
FreeType support yes
network support yes
IPv6 support yes
threading support pthreads
SDL support yes
Sun medialib support no
AVISynth enabled no
liba52 support no
liba52 dlopened no
libamr-nb support no
libamr-wb support no
libdc1394 support no
libfaac enabled no
libfaad enabled no
libfaad dlopened no
libgsm enabled no
libmp3lame enabled yes
libnut enabled no
libtheora enabled no
libvorbis enabled no
x264 enabled no
XviD enabled no
zlib enabled yes

Enabled decoders:
aasc fourxm qdm2
ac3 fraps qdraw
adpcm_4xm gif qpeg
adpcm_adx h261 qtrle
adpcm_ct h263 ra_144
adpcm_ea h263i ra_288
adpcm_ea_maxis_xa h264 rawvideo
adpcm_ea_r1 huffyuv rl2
adpcm_ea_r2 idcin roq
adpcm_ea_r3 imc roq_dpcm
adpcm_ea_xas indeo2 rpza
adpcm_g726 indeo3 rv10
adpcm_ima_amv interplay_dpcm rv20
adpcm_ima_dk3 interplay_video sgi
adpcm_ima_dk4 jpegls shorten
adpcm_ima_ea_eacs kmvc smackaud
adpcm_ima_ea_sead loco smacker
adpcm_ima_qt mace3 smc
adpcm_ima_smjpeg mace6 snow
adpcm_ima_wav mdec sol_dpcm
adpcm_ima_ws mimic sonic
adpcm_ms mjpeg sp5x
adpcm_sbpro_2 mjpegb sunrast
adpcm_sbpro_3 mmvideo svq1
adpcm_sbpro_4 mp2 svq3
adpcm_swf mp3 targa
adpcm_thp mp3adu theora
adpcm_xa mp3on4 thp
adpcm_yamaha mpc7 tiertexseqvideo
alac mpc8 tiff
amv mpeg1video truemotion1
ape mpeg2video truemotion2
asv1 mpeg4 truespeech
asv2 mpegvideo tscc
atrac3 msmpeg4v1 tta
avs msmpeg4v2 txd
bethsoftvid msmpeg4v3 ulti
bfi msrle vb
bmp msvideo1 vc1
c93 mszh vcr1
cavs nellymoser vmdaudio
cinepak nuv vmdvideo
cljr pcm_alaw vmnc
cook pcm_mulaw vorbis
cscd pcm_s16be vp3
cyuv pcm_s16le vp5
dca pcm_s16le_planar vp6
dnxhd pcm_s24be vp6a
dsicinaudio pcm_s24daud vp6f
dsicinvideo pcm_s24le vqa
dvbsub pcm_s32be wavpack
dvdsub pcm_s32le wmav1
dvvideo pcm_s8 wmav2
dxa pcm_u16be wmv1
eightbps pcm_u16le wmv2
eightsvx_exp pcm_u24be wmv3
eightsvx_fib pcm_u24le wnv1
escape124 pcm_u32be ws_snd1
ffv1 pcm_u32le xan_dpcm
ffvhuff pcm_u8 xan_wc3
flac pcm_zork xl
flashsv pcx xsub
flic png zlib
flv ptx zmbv

Enabled encoders:
ac3 ljpeg pcm_u8
adpcm_adx mjpeg pcm_zork
adpcm_g726 mp2 pgm
adpcm_ima_qt mpeg1video pgmyuv
adpcm_ima_wav mpeg2video png
adpcm_ms mpeg4 ppm
adpcm_swf msmpeg4v1 qtrle
adpcm_yamaha msmpeg4v2 rawvideo
asv1 msmpeg4v3 roq
asv2 pam roq_dpcm
bmp pbm rv10
dnxhd pcm_alaw rv20
dvbsub pcm_mulaw sgi
dvdsub pcm_s16be snow
dvvideo pcm_s16le sonic
ffv1 pcm_s24be sonic_ls
ffvhuff pcm_s24daud svq1
flac pcm_s24le targa
flashsv pcm_s32be tiff
flv pcm_s32le vorbis
gif pcm_s8 wmav1
h261 pcm_u16be wmav2
h263 pcm_u16le wmv1
h263p pcm_u24be wmv2
huffyuv pcm_u24le zlib
jpegls pcm_u32be zmbv
libmp3lame pcm_u32le

Enabled parsers:
aac h261 mpeg4video
ac3 h263 mpegaudio
cavsvideo h264 mpegvideo
dca mjpeg pnm
dvbsub mlp vc1
dvdsub

Enabled demuxers:
aac image2 pcm_u8
ac3 image2pipe pva
aiff ingenient rawvideo
amr ipmovie redir
apc lmlm4 rl2
ape m4v rm
asf matroska roq
au mjpeg rpl
avi mm rtsp
avs mmf sdp
bethsoftvid mov segafilm
bfi mp3 shorten
c93 mpc siff
daud mpc8 smacker
dsicin mpegps sol
dts mpegts str
dv mpegtsraw swf
dxa mpegvideo thp
ea msnwc_tcp tiertexseq
ea_cdata mtv tta
ffm mxf txd
flac nsv vc1
flic nut vc1t
flv nuv vmd
fourxm ogg voc
gif pcm_alaw wav
gsm pcm_mulaw wc3
gxf pcm_s16be wsaud
h261 pcm_s16le wsvqa
h263 pcm_s8 wv
h264 pcm_u16be xa
idcin pcm_u16le yuv4mpegpipe
iff

Enabled muxers:
ac3 image2pipe nut
adts ipod ogg
aiff m4v pcm_alaw
amr matroska pcm_mulaw
asf matroska_audio pcm_s16be
asf_stream mjpeg pcm_s16le
au mmf pcm_s8
avi mov pcm_u16be
avm2 mp2 pcm_u16le
crc mp3 pcm_u8
dts mp4 psp
dv mpeg1system rawvideo
ffm mpeg1vcd rm
flac mpeg1video roq
flv mpeg2dvd rtp
framecrc mpeg2svcd swf
gif mpeg2video tg2
gxf mpeg2vob tgp
h261 mpegts voc
h263 mpjpeg wav
h264 null yuv4mpegpipe
image2

Enabled protocols:
file pipe tcp
http rtp udp

Enabled filters:
crop

Enabled bsfs:
dump_extradata mov2textsub noise
h264_mp4toannexb mp3_header_compress remove_extradata
imx_dump_header mp3_header_decompress text2movsub
mjpega_dump_header

Enabled indevs:
dv1394 v4l v4l2
oss

Enabled outdevs:
oss

License: GPL
Creating config.mak and config.h...
config.h is unchanged
make: Nothing to be done for `all'.
checking for av_rescale in -lavutil... (static?) ... yes
checking for sws_scale in -lswscale... (static?) ... yes
checking for avcodec_encode_video in -lavcodec... (static?) ... yes
checking for av_write_header in -lavformat... (static?) ... yes
checking for avdevice_register_all in -lavdevice... (static?) ... yes
checking for avcodec_decode_audio in -lavcodec... (static?) ... yes
...

Please let me know whether you need any other info. You have probably seen this already : http://bugs.gentoo.org/show_bug.cgi?id=258042
Comment by Jagadish R (jarav) - Wednesday, 27 January 2010, 22:18 GMT
Also https://bugs.launchpad.net/ubuntu/+source/xvidcap/+bug/375711. As I said, I am not very much familiar with all this and basically just follow instructions.
Comment by Thorsten Töpper (Atsutane) - Thursday, 28 January 2010, 09:51 GMT
So you are building against the ffmpeg delivered with the xvidcap source code that was the problem for ticket  FS#17915 . Also when building against this ffmpeg the compiler already states that the functions 'av_fifo_init', 'av_fifo_write' and 'av_fifo_read' are deprecated.

These methods have by now been dropped:
http://git.ffmpeg.org/?p=ffmpeg;a=commit;h=86e5d7ad2036d6e06ceec7ea41279669a16172db
http://git.ffmpeg.org/?p=ffmpeg;a=commit;h=dbe69b900b8d9b3d057b2783d204451a6eaef6ae
http://git.ffmpeg.org/?p=ffmpeg;a=commitdiff;h=9f8370a9dea5f778c14ba94ca154faf1cf7749e5

So basically xvidcap uses old ffmpeg code. I'll set the severity of this bug to "low", try to patch the code within the next 36 hours and will then write an upstream bug, either with the patch or just as an update request. If you want to reproduce this, take the files from ABS and include the 01configure.diff from ticket  FS#17809  as patch.

Loading...