CentOS 6 and MiniDLNA

Screenshot_2014-06-01-23-24-11I’ve got a small home server made from a half-broken laptop nobody wanted any more. The screen was’t working, but otherwise the machine was fine, so I took it, shipped Centos 6 on it and it’s been serving as a media center at home for nearly two years now.

Now, I wanted to put MiniDLNA on it so that various small Android devices could stream video and music from there. In Debian, it’s as a straightforward task as installing the minidlna package (kudos to the maintainers). But in Centos, things got more complicated. There was no package in the main repositories. I could find some RPMs to download here and there, but it seemed like compiling the software from scratch would be the best option here.

The source can be found here:
http://sourceforge.net/projects/minidlna/ external_link

However, the

.configure

ended in an error:

configure: error: libavutil headers not found or not usable

There could be some packages starting with libav* found in the current repos, but none of them helped. Eventually, it turned out that the problem could be solved by installing ffmpeg package. One way to get it is to use the media-oriented ATrpms repository.

vim /etc/yum.repos.d/atrpms.repo
[atrpms]
name=Fedora Core $releasever - $basearch - ATrpms
baseurl=http://dl.atrpms.net/f$releasever-$basearch/atrpms/stable
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
enabled=1
gpgcheck=1

After installing ffmpeg, compilation went just fine and I can now play cartoons for the kids or listen to music on any device at home.