Dec 21

目前 MiniDLNA 最新版本 1.1.5, 下载地址:


//line 840  
else if( strncmp(ctx->iformatctx->name, "matroska", 8) == 0 )  
    xasprintf(&m.mime, "video/x-matroska");  
else if( strcmp(ctx->iformatctx->name, "flv") == 0 )  
    xasprintf(&m.mime, "video/x-flv");  
else if( strcmp(ctx->iformat->name, "rm") == 0 )  
    xasprintf(&m.mime, "video/x-pn-realvideo");  
else if( strcmp(ctx->iformat->name, "rmvb") == 0 )  
    xasprintf(&m.mime, "video/x-pn-realvideo");  
if( m.mime )  
    goto video_nodlna;  


// Line 169  
    "http-get:*:audio/mp4:*," \  
    "http-get:*:audio/x-wav:*," \  
    "http-get:*:audio/x-flac:*," \  
    "http-get:*:application/ogg:*," \  
#define DLNA_FLAG_DLNA_V1_5      0x00100000
#define DLNA_FLAG_HTTP_STALLING  0x00200000


//line 381  
        ends_with(file, ".m2t") || ends_with(file, ".mkv")   ||  
        ends_with(file, ".vob") || ends_with(file, ".ts")    ||  
        ends_with(file, ".flv") || ends_with(file, ".xvid")  ||  
        ends_with(file, ".rm")  || ends_with(file, ".rmvb")  ||  
        ends_with(file, ".TiVo") ||  
        ends_with(file, ".mov") || ends_with(file, ".3gp"));


sudo apt-get install build-essential libexif-dev libjpeg-dev \  
libid3tag0-dev libFLAC-dev libvorbis-dev libsqlite3-dev libavformat-dev \  
autoconf automake  
make install  
sudo cp ./linux/minidlna.inot.d.script.tmpl  /etc/init.d/minidlna  
sudo cp ./minidlna.conf  /etc/minidlna.conf  
# 第一次启动使用-d –v选项看有没有出错  
sudo /usr/local/sbin/minidlnad -d -v  
# 没出错就ctrl+c 结束进程  
# 正常启动  
sudo service minidlna start  
# 刷新列表  
sudo service minidlna restart  

4.MiniDLNA 配置

# port for HTTP (descriptions, SOAP, media transfer) traffic  
# network interfaces to serve, comma delimited  
# specify the user account name or uid to run as  
# set this to the directory you want scanned.  
# * if you want multiple directories, you can have multiple media_dir= lines  
# * if you want to restrict a media_dir to specific content types, you  
#   can prepend the types, followed by a comma, to the directory:  
#   + "A" for audio  (eg. media_dir=A,/home/jmaggard/Music)  
#   + "V" for video  (eg. media_dir=V,/home/jmaggard/Videos)  
#   + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures)  
#   + "PV" for pictures and video (eg. media_dir=PV,/home/jmaggard/digital_camera)  
# set this to merge all media_dir base contents into the root container  
# note: the default is no  
# set this if you want to customize the name that shows up on your clients  
#friendly_name=My DLNA Server  
# set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache  
# set this if you would like to specify the directory where you want MiniDLNA to store its log file  
# set this to change the verbosity of the information that is logged  
# each section can use a different level: off, fatal, error, warn, info, or debug  
# this should be a list of file names to check for when searching for album art  
# note: names should be delimited with a forward slash ("/")  
# set this to no to disable inotify monitoring to automatically discover new files  
# note: the default is yes  
# set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO  
# set this to strictly adhere to DLNA standards.  
# * This will allow server-side downscaling of very large JPEG images,  
#   which may hurt JPEG serving performance on (at least) Sony DLNA products.  
# default presentation url is http address on port 80  
# notify interval in seconds. default is 895 seconds.  
# serial and model number the daemon will report to clients  
# in its XML description  
# specify the path to the MiniSSDPd socket  
# use different container as root of the tree  
# possible values:  
#   + "." - use standard container (this is the default)  
#   + "B" - "Browse Directory"  
#   + "M" - "Music"  
#   + "V" - "Video"  
#   + "P" - "Pictures"  
#   + Or, you can specify the ObjectID of your desired root container (eg. 1$F for Music/Playlists)  
# if you specify "B" and client device is audio-only then "Music/Folders" will be used as root  
# always force SortCriteria to this value, regardless of the SortCriteria passed by the client  
# maximum number of simultaneous connections  
# note: many clients open several simultaneous connections while streaming  


Leave a Reply