libav on debian squeeze
Added by Dolphs Lundgren about 11 years ago
Hi - trying to get libav going on debian squeeze.
Added squeeze-backports to sources.list and installed following packages: " apt-get install build-essential git pkg-config libssl-dev bzip2 wget libavahi-client-dev zlib1g-dev libcurl4-gnutls-dev libavcodec-dev libswscale-dev libavfilter-dev libavformat-dev libavcodec-extra-53 ", however as you can see below libav remains on " no ".
What package / step is missing here as I kinda follwed the tvheadend wiki at: https://tvheadend.org/projects/tvheadend/wiki/Building
tvh@omv:~/tvheadend-3.4patch1$ ./configure
Checking support/features
checking for cc execinfo.h ... ok
checking for cc -mmmx ... ok
checking for cc -msse2 ... ok
checking for cc getloadavg ... ok
checking for cc atomic64 ... ok
checking for py module gzip ... ok
checking for bzip2 ... ok
checking for pkg openssl ... ok
checking for pkg zlib ... ok
checking for pkg avahi-client ... ok
checking for cc sys/inotify.h ... ok
checking for pkg libcurl ... ok
fetching dvb-scan files ... ok
Compiler:
Using C compiler: cc
Build for arch: x86_64
Binaries:
Using PYTHON: python
Options:
cwc yes
v4l yes
linuxdvb yes
dvbscan yes
timeshift yes
imagecache yes
avahi yes
zlib yes
libav no
inotify yes
bundle no
dvbcsa no
execinfo yes
mmx yes
sse2 yes
getloadavg yes
atomic64 yes
py_gzip yes
bin_bzip2 yes
ssl yes
inotify_h yes
Packages:
openssl 0.9.8o
zlib 1.2.3.4
avahi-client 0.6.27
libcurl 7.21.0
Installation paths:
Prefix: /usr/local
Binaries: ${prefix}/bin
Libraries: ${prefix}/lib
Data files: ${prefix}/share
Man pages: ${datadir}/man
Final Binary:
/home/tvheadend/tvheadend-3.4patch1/build.linux/tvheadend
Tvheadend Data Directory:
/usr/local/share/tvheadend
Replies (10)
RE: libav on debian squeeze - Added by Alex . about 11 years ago
Hi Dolphs,
Although i think libav is enabled per default, did you try:
./configure --enable-libav
( you can use configure --help to see other options as well).
If this also doesnt work, then I would guess either libav cant be found, or it is the wrong version.
Alex.
RE: libav on debian squeeze - Added by Alex . about 11 years ago
Checked on my system, I got a different version of libav-codec , i.e. 54.59.100
But it seems 53 is also ok (needed > 52.96), so it would seem that somehow libav cant be found.
However, I do not use Debian, so I cant check the specific version that is available on Debian.
@
Checking support/features
checking for cc execinfo.h ... ok
checking for cc -mmmx ... ok
checking for cc -msse2 ... ok
checking for cc getloadavg ... ok
checking for cc atomic64 ... ok
checking for py module gzip ... ok
checking for bzip2 ... ok
checking for pkg openssl ... ok
checking for pkg zlib ... ok
checking for pkg avahi-client ... ok
checking for pkg libavcodec <=55.0.0 ... ok
checking for pkg libavcodec >=52.96.0 ... ok
checking for pkg libavutil >=50.43.0 ... ok
checking for pkg libavformat <=55.0.0 ... ok
checking for pkg libavformat >=53.10.0 ... ok
checking for pkg libswscale >=0.13.0 ... ok
checking for cc sys/inotify.h ... ok
checking for pkg libcurl ... ok
fetching dvb-scan files ... ok
Compiler:
Using C compiler: cc
Build for arch: x86_64
Binaries:
Using PYTHON: python
Options:
cwc yes
v4l yes
linuxdvb yes
dvbscan yes
timeshift yes
trace yes
imagecache yes
avahi yes
zlib yes
libav yes
inotify yes
bundle no
dvbcsa no
epoll yes
kqueue no
execinfo yes
mmx yes
sse2 yes
getloadavg yes
atomic64 yes
py_gzip yes
bin_bzip2 yes
ssl yes
inotify_h yes
Packages:
openssl 1.0.1c
zlib 1.2.7
avahi-client 0.6.31
libavcodec 54.59.100
libavutil 51.73.101
libavformat 54.29.104
libswscale 2.1.101
libcurl 7.30.0
Installation paths:
Prefix: /opt/tvheadend
Binaries: ${prefix}/bin
Libraries: ${prefix}/lib
Data files: ${prefix}/share
Man pages: ${datadir}/man
@
RE: libav on debian squeeze - Added by Dolphs Lundgren about 11 years ago
thanks for response... Yet I took a VM image and started from scratch with debian squeeze:
It seems in squeeze there is no libavcodec53-dev so need to find 1-1 what libraries are needed as squeeze-backports do support 53 ( limited ).
Gave it an unfortunate try with:
:~# apt-get install libavcodec-dev libavcodec53
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libavcodec52 libavutil51 libdirac-encoder0 libfaad2 libgsm1 libmp3lame0
libogg0 libopenjpeg2 liborc-0.4-0 libschroedinger-1.0-0 libspeex1 libtheora0
libva1 libvorbis0a libvorbisenc2 libvpx0 libx264-120 libxvidcore4
Suggested packages:
libfaad-dev libgsm1-dev libogg-dev libschroedinger-dev libspeex-dev
libtheora-dev libvorbis-dev libx11-dev libxext-dev libraw1394-dev
libdc1394-22-dev speex
The following NEW packages will be installed:
libavcodec-dev libavcodec52 libavcodec53 libavutil51 libdirac-encoder0
libfaad2 libgsm1 libmp3lame0 libogg0 libopenjpeg2 liborc-0.4-0
libschroedinger-1.0-0 libspeex1 libtheora0 libva1 libvorbis0a libvorbisenc2
libvpx0 libx264-120 libxvidcore4
0 upgraded, 20 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/11.1 MB of archives.
After this operation, 31.6 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
so this will result in the expected libavcodec that does not meet the requirement :
:~$ ./configure --enable-libav
Checking support/features
checking for cc execinfo.h ... ok
checking for cc -mmmx ... ok
checking for cc -msse2 ... ok
checking for cc getloadavg ... ok
checking for cc atomic64 ... ok
checking for py module gzip ... ok
checking for bzip2 ... ok
checking for pkg openssl ... ok
checking for pkg zlib ... ok
checking for pkg avahi-client ... ok
checking for pkg libavcodec <=55.0.0 ... ok
checking for pkg libavcodec >=52.96.0 ... fail
ERROR: libav development support not found (use --disable-libav)
RE: libav on debian squeeze - Added by Alex . about 11 years ago
You might try building libav from source:
RE: libav on debian squeeze - Added by Dolphs Lundgren about 11 years ago
looks interesting - however currently focussing on ffmpeg: https://trac.ffmpeg.org/wiki/UbuntuCompilationGuide ... least effort to get this libavcodec sorted
RE: libav on debian squeeze - Added by Dolphs Lundgren about 11 years ago
tried following still no joy:
apt-get install git pkg-config libcurl4-gnutls-dev libssl-dev libavahi-client-dev
cd /tmp
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar xzvf yasm-1.2.0.tar.gz
cd yasm-1.2.0
./configure
make && make install
make distclean
cd /tmp
git clone https://github.com/libav/libav
cd /tmp/libav
./configure --enable-shared --disable-static
make && make install
vi /etc/ld.so.conf
" include /etc/ld.so.conf.d/*.conf /usr/local/lib "
ldconfig
ldconfig -p |grep 55
# ldconfig -p |grep 55
libavformat.so.55 (libc6,x86-64) => /usr/local/lib/libavformat.so.55
libavcodec.so.55 (libc6,x86-64) => /usr/local/lib/libavcodec.so.55
git clone https://github.com/tvheadend/tvheadend.git
chown -R tvheadend:users /home/tvheadend
su - tvheadend
./configure
Checking support/features
checking for cc execinfo.h ... ok
checking for cc -mmmx ... ok
checking for cc -msse2 ... ok
checking for cc getloadavg ... ok
checking for cc atomic64 ... ok
checking for py module gzip ... ok
checking for bzip2 ... ok
checking for pkg openssl ... ok
checking for pkg zlib ... ok
checking for pkg avahi-client ... ok
checking for pkg libavcodec <=55.0.0 ... fail
checking for cc sys/inotify.h ... ok
checking for pkg libcurl ... ok
fetching dvb-scan files ... ok
Compiler:
Using C compiler: cc
Build for arch: x86_64
Binaries:
Using PYTHON: python
Options:
cwc yes
v4l yes
linuxdvb yes
dvbscan yes
timeshift yes
trace yes
imagecache yes
avahi yes
zlib yes
libav no
inotify yes
bundle no
dvbcsa no
epoll yes
kqueue no
execinfo yes
mmx yes
sse2 yes
getloadavg yes
atomic64 yes
py_gzip yes
bin_bzip2 yes
ssl yes
inotify_h yes
Packages:
openssl 0.9.8o
zlib 1.2.3.4
avahi-client 0.6.27
libcurl 7.21.0
Installation paths:
Prefix: /usr/local
Binaries: ${prefix}/bin
Libraries: ${prefix}/lib
Data files: ${prefix}/share
Man pages: ${datadir}/man
Final Binary:
/home/tvheadend/tvheadend/build.linux/tvheadend
Tvheadend Data Directory:
/usr/local/share/tvheadend
RE: libav on debian squeeze - Added by Alex . about 11 years ago
Maybe the version of libav you installed from source is too new ( since it is the most recent version with commits just 18 hours ago).
Looking at github there is also a version called release/0.5 , the last commit for that one is from half a year ago.
Maybe try to install that branch of libav using 'git checkout release/0.5' ?
( running out of ideas, but installing this older version might help).
RE: libav on debian squeeze - Added by Dolphs Lundgren about 11 years ago
yes we are getting close with release/0.7 but just not yet:
<snip snip>
checking for pkg libavcodec <=55.0.0 ... ok
checking for pkg libavcodec >=52.96.0 ... ok
checking for pkg libavutil >=50.43.0 ... ok
checking for pkg libavformat <=55.0.0 ... ok
checking for pkg libavformat >=53.10.0 ... fail
<snip snip>
RE: libav on debian squeeze - Added by Dolphs Lundgren about 11 years ago
release/0.8 works!
<snip snip>
checking for pkg libavcodec <=55.0.0 ... ok
checking for pkg libavcodec >=52.96.0 ... ok
checking for pkg libavutil >=50.43.0 ... ok
checking for pkg libavformat <=55.0.0 ... ok
checking for pkg libavformat >=53.10.0 ... ok
checking for pkg libswscale >=0.13.0 ... ok
<snip snip>
thanks for assitance, another hurdle taken!
Guess "kqueue" is not relevant on debian as it is for BSD flavours and Max OS X, so I will ignore it just like these two: "bundle" and "dvbcsa".
thanks again!
RE: libav on debian squeeze - Added by Alex . about 11 years ago
Good to know that it works .
( Good you checked all available version on github :-) )