Kodi Community Forum

Full Version: [LINUX] External Libraries Support (eg. FFmpeg) in XBMC
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
There is a great new (old) feature in XBMC thanks for Devs make it possible. There is a branch called external libraries support branch working on svn servers.

It is great news because this way anyone could test xbmc with custom ffmpeg builds. This way we could get closer having a properly multithreaded working x264 decoding on Intrepid's and newer kernels.

You can get the source:

svn checkout https://xbmc.svn.sourceforge.net/svnroot...port/XBMC/

The configuration and build is

./configure --enable-external-ffmpeg
make
sudo make install

Make sure you have a working ffmpeg build with the libraries in /usr/lib or /usr/local/lib.

I tested the FFMPEG-MT branch with working frame level multithreading.
This way it works exactly like if i compiled xbmc with orig source and Aron's ffmpeg-mt patch applied:

I have great x264 playback with good core utilization, but with avi playback fastforward drops me back to command prompt with segmentation error.

But only when playing back AC3 encoded AVI video using liba52
when playing back MP3 encoded sterero AVI video using libmad ALL OK.
AC3 encoded MKV is also OK.

It really is strange as there is already an ffmpeg-mt branch build version from Jester for windows platform:

http://forum.xbmc.org/showthread.php?tid=43993

It works great both x264 and avi(AC3) no problem. There is also a win project called ffdshow-mt based on ffmpeg-mt. It also works perfectly with all types of files.

We need a little helpfrom Devs, how we could use ffmpeg-mt with xbmc properly. It could ease the problems of lot of users having bad performance on Intrepid.

I a little gave up with xbmc's original CABAC Entripy decoding patch to work it right with new kernels. We trierd everything and can not move forward without the Devs help. Thread:

http://forum.xbmc.org/showthread.php?tid=43075

Anyone has an idea how we can make it work ?
Any feedback are welcom about the tests.

Thanks for XBMC team for the great work !
Question to Devs:

Isn't libavc has ac3 decoding feature ?

I just saw it on ffmpeg devel page, that it even supports e-ac3 now.

http://ffmpeg.mplayerhq.hu/index.html
http://www.irisa.fr/texmex/people/dufoui...ource.html

How is it that xbmc uses liba52 for ac3 decoding ? Couldn't libavc able to make it ?

(Sorry for my lack of knowledge :o)
Are you saying that if I don't install this I can't playback x264 or that it wont play back as well? Is there still a real speed benefit from ffmpg-mt on a dual core 2.5Ghz even if I have VDPAU support?

Im compiling XBMC right now and trying to decide if I should build in the external libraries, it seems when I add ffmpeg support it disables VDPAU

Also is it listed somewhere what each of these external libraries are used for?
I never thought of this use case. I'm glad to know that there's more use for this feature besides making XBMC more distro friendly.

I'll see what I can do to make this easier for internal lib users as well.
alanwww1 Wrote:There is a great new (old) feature in XBMC thanks for Devs make it possible. There is a branch called external libraries support branch working on svn servers.

After my recent rant on using ffmpeg as an external library, I see that you already did the work but that it seems to have been lost in the infinte space.

And XBMC developpers are still asking for patches? Gees.
?

ceros did ALL the work in that branch and it is now sitting in the linuxport branch. get a clue before you start talking smack, k?