Back

使minidlna支持rmvb视频

|

发现MiniDLNA几乎是最好的DLNA解决方案了,唯一的缺陷就是不支持RMVB格式的视频,不过幸好它是个开源软件。
从[这里](http://sourceforge.net/projects/minidlna/files/minidlna/1.1.0/minidlna-1.1.0.tar.gz/download)下载Minidlna 1.1的源代码并解压,然后下载[这个](https://www.skylast.com/blog/wp-content/uploads/2013/09/minidlna_patch.7z)补丁包,覆盖源代码中的同名文件,重新编译并运行就好了。
编译minidlna依赖如下的几个包:

* libexif
* libjpeg
* libid3tag
* libFLAC
* libvorbis
* libsqlite3
* libavformat

在Ubuntu上,使用下面的命令安装编译环境:
[cc lang="bash"]sudo apt-get install build-essential libexif-dev libjpeg-dev libid3tag0-dev libFLAC-dev libvorbis-dev libsqlite3-dev libavformat-dev[/cc]
编译过程:
[cc lang="bash"]
cd minidlna-1.1.0
./configure
make
sudo make install
[/cc]
最后执行:
[cc lang="bash"]
/usr/local/sbin/minidlnad -f /etc/minidlna.conf
[/cc]
-f参数指定配置文件,如果你不知道配置文件的写法,可以参考我的[这份](https://www.skylast.com/blog/wp-content/uploads/2013/09/minidlna.conf_.7z)。

No comments yet

Leave a comment

About me

I live in Tasmania, an island a little far from the rest of the world and very close to the sea.
Father of two little girls, have two puppies.

Work

Work in IT industry, AI is my working partner.