update ffmpeg incl. libmp3lame

Don't miss a thing. Post your questions and discussion about other uncategorized NAS features here.
Post Reply
abgestumpft
Starting out
Posts: 23
Joined: Mon Aug 22, 2011 8:44 pm

update ffmpeg incl. libmp3lame

Post by abgestumpft » Mon Nov 21, 2011 1:47 pm

Hi,
I'm currently trying to update ffmpeg and enable the libmp3lame.
After some search & try I'm stucked here. I'm not very familiar with this stuff, so the solution might be simple. I've managed to update ffmpeg but when I try to include libmp3lame it fails:

Code: Select all

ipkg install optware-devel 
ipkg install git
ipkg install yasm
ipkg install lame

mkdir /opt/compile
cd /opt/compile
git clone git://git.videolan.org/ffmpeg.git
cd ffmpeg
./configure --enable-ssse3 --prefix=/opt --extra-cflags='-I/opt/include' --extra-ldflags='-L/opt/lib' --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-libmp3lame
make
make install


But it ends up with this error:

Code: Select all

 [/opt/compile/ffmpeg] # /opt/bin/ffmpeg
/opt/bin/ffmpeg: error while loading shared libraries: libmp3lame.so.0: cannot open shared object file: No such file or directory
[/opt/compile/ffmpeg] #


So it looks like during compilation of ffmpeg the libmp3lame is not found.
How can I fix this?

abgestumpft
Starting out
Posts: 23
Joined: Mon Aug 22, 2011 8:44 pm

Re: update ffmpeg incl. libmp3lame

Post by abgestumpft » Thu Nov 24, 2011 9:42 pm

Hi,

I found the problem: /opt/lib which contains the libmp3lame.so was not considered by the OS.
After executing and adding those commands to autostart it works now

Code: Select all

#make libraries in /opt/lib visible, otherwise libmp3lame.so library etc. is not detected
echo "/opt/lib" >> /etc/ld.so.conf
ldconfig

#replace built-in ffmpeg with link to new version
rm /usr/bin/ffmpeg
ln -s /opt/bin/ffmpeg /usr/bin


The ipkg of lame is a little bit old, but I did not manage to compile the latest available lame version (3.99) myself.

roughana
Starting out
Posts: 19
Joined: Sun Oct 09, 2011 5:35 am

Re: update ffmpeg incl. libmp3lame

Post by roughana » Sun Sep 07, 2014 10:43 am

In the process of trying to emulate your achievement, I showed this thread to someone who has more experience with unix than I do.
They were concerned at the necessity to change the system library visibility. ie the change to /etc/ld.so.conf
Instead they encouraged me to provide some more parameters to ./configure
I also had some trouble with a segmentation fault during building and instruction invalid during execution on the QNAP 219P+
This is what I ended up using:

Code: Select all

./configure --arch=arm --enable-armv5te --prefix=/opt --extra-cflags='-I/opt/include' --extra-ldflags='-L/opt/lib -Wl,-rpath=/opt/lib' --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-libmp3lame --enable-rpath --disable-neon


My intention was to use pyTivo to support pulling m4a (iTunes) and transcoding to mp3 during streaming for playback on my TiVo. Unfortunately, the 219P+ does not have enough grunt to be able to manage this conversion in realtime.

Post Reply

Return to “Miscellaneous”