[vdr] Xine plugins and LATM AAC audio (was Re: vdr 1.7.15 & eHD & French HD DTV)

Jonas Bardino jonas at bardinosen.dk
Sat Jun 26 18:14:24 CEST 2010

Luis Fernandes wrote:
> 2010/6/23 Jonas Bardino <jonas at bardinosen.dk>:
>> Bjørnar Nilsen wrote:
>>> Den 22.06.2010 07:21, skrev ECLiPSE:
<cut: problems with LATM AAC audio in Scandinavia>
> hello, try to do as I did with svn xine-lib 1.2
> read this
> http://hg.debian.org/hg/xine-lib/xine-lib-1.2-vdpau/file/57d31b4ca5e0/contrib/README.contrib
> and compile xine-lib with new sources of libfaad2 on contrib folder
> http://www.audiocoding.com/faad2.html download from this site
> is working with me to Portugal.
> only on vdr-xineliboutput.
> and yes Femon 1.7.7 does not detect this audio codec, this one must be
> update like vdr-xine
> hope that helps,
> best regards.
> _______________________________________________
> vdr mailing list
> vdr at linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

Thanks for your advice!
I've tried to follow it but still get the libfaad errors[1] and no audio
with plain xine on the previously mentioned sample. No audio on the
relevant channels with vdr+xineliboutput+sxfe either.
Can you actually play the audio of that http://www.nilux.com/2.ts sample
with plain xine?

Perhaps you would be as kind as to explain a bit more about your
compilation to make completely sure I understand exactly what you mean?
A private mail is fine if it is irrelevant to the list.

I've tried building both with the yavdr source package and with a plain
xine checkout but with the same result. Configure says it uses internal
libfaad and ldd no longer says that the xine faad plugin file is
dynamically linked to libfaad. I had to make some changes to get it
compiled, though, as shown in my step by step description below[2].

Do you apply any additional faad or xine patches?

Thanks in advance!

Cheers, Jonas

[1] Error output from xine --verbose=2 2.ts
load_plugins: plugin faad will be used for audio streamtype 0e.
Allocate 4 reference frames
Create decoder: vdp_device: 1, profile: 8, res: 1280x720
audio_alsa_out: audio rate : 44100 requested, 48000 provided by device/sec
audio_alsa_out:open pause_resume=0
output sample rate 48000
will resample audio from 44100 to 48000
libfaad: Channel coupling not yet implemented
libfaad: Invalid number of channels
libfaad: Bitstream value not allowed by specification
... repeated ...

[2] Building from a xine-lib-1.2-vdpau checkout (the copying around to
tmp is slightly silly but it follows the structure I needed for the
yavdr package):
rm -rf faad2* xine-lib-1.2-vdpau*
wget http://downloads.sourceforge.net/faac/faad2-2.7.tar.gz
tar xvf faad2-2.7.tar.gz
hg clone http://hg.debian.org/hg/xine-lib/xine-lib-1.2-vdpau
mkdir -p tmp
cd tmp
rm -rf xine-lib-1.2-vdpau
rsync -aP ../xine-lib-1.2-vdpau .
rm -rf xine-lib-1.2-vdpau/contrib/libfaad/*.{c,h}
rsync -aP ../faad2-2.7/libfaad/ ../faad2-2.7/include/*.h
echo '/* dummy placeholder to mimic now removed header */

#include "neaacdec.h"
' > xine-lib-1.2-vdpau/contrib/libfaad/decoder.h
cat xine-lib-1.2-vdpau/contrib/libfaad/common.h | sed
's@"../config.h"@<config.h>@g' > \
mv xine-lib-1.2-vdpau/contrib/libfaad/common.h{.tmp,}
cd ..
rsync -aP tmp/xine-lib-1.2-vdpau/contrib/libfaad/*.{c,h}
echo 'xine-lib-1.2 (1.2.0~hg20100626-0dkvdr1) lucid; urgency=low

  * Updated to latest faad2 release in contrib

 -- Jonas Bardino <jonas at bardino.dk>  Sat, 26 Jun 2010 17:22:02 +0000
' > xine-lib-1.2-vdpau/debian/changelog.tmp
cat xine-lib-1.2-vdpau/debian/changelog >>
mv xine-lib-1.2-vdpau/debian/changelog{.tmp,}
cat xine-lib-1.2-vdpau/debian/control | sed 's/ libartsc0-dev,//g' > \
mv xine-lib-1.2-vdpau/debian/control{.tmp,}
cd xine-lib-1.2-vdpau
dpkg-buildpackage -rfakeroot
cd ..

More information about the vdr mailing list