What's new

MiniDLNA inotify limitation ?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

SebZab

Regular Contributor
Is there any limitation for types of files which inotify serves properly ?

For example: when I add files *.mp4 to media folder inotify add them at once to db and they are immediatelly visible in DLNA server.
But when I do the same with *.mts files inotify doesn't update db and I must refresh and rebuild db to be able to see this files in DLNA server.
 
Last edited:
Here is what the video files are supported: https://github.com/RMerl/asuswrt-me...63fa2bfbc/release/src/router/minidlna/utils.c
Code:
is_video(const char * file)
{
    return (ends_with(file, ".mpg") || ends_with(file, ".mpeg")  ||
        ends_with(file, ".avi") || ends_with(file, ".divx")  ||
        ends_with(file, ".asf") || ends_with(file, ".wmv")   ||
        ends_with(file, ".mp4") || ends_with(file, ".m4v")   ||
        ends_with(file, ".mts") || ends_with(file, ".m2ts")  ||
        ends_with(file, ".m2t") || ends_with(file, ".mkv")   ||
        ends_with(file, ".vob") || ends_with(file, ".ts")    ||
        ends_with(file, ".tp")  || ends_with(file, ".rmvb")  ||
        ends_with(file, ".flv") || ends_with(file, ".xvid")  ||
#ifdef TIVO_SUPPORT
        ends_with(file, ".TiVo") ||
#endif
        ends_with(file, ".mov") || ends_with(file, ".3gp"));
}


HOWTO debug the MiniDLNA INotify?
Try change the log_level for inotify to 'debug'.
If you use Entware, the configuration file is here: /opt/etc/minidlna.conf. Otherwise, if you use the firmware MiniDLNA, you must add the config line here /jffs/configs/minidlna.conf.add.
Code:
log_level=general,artwork,database,inotify=debug,scanner,metadata,http,ssdp,tivo=warn
 
Last edited:
Log in debug mode looks quite normal:

[2015/06/13 09:24:08] inotify.c:733: debug: The file /tmp/mnt/Seagate/media/bajki/20131209_173910.mp4 was changed.
[2015/06/13 09:24:25] minidlna.c:1407: debug: HTTP connection from 192.168.0.209:6004
[2015/06/13 09:24:25] minidlna.c:1407: debug: HTTP connection from 192.168.0.209:6003
[2015/06/13 09:25:16] inotify.c:733: debug: The file /tmp/mnt/Seagate/media/bajki/00011.MTS was changed.
[2015/06/13 09:25:22] minidlna.c:1407: debug: HTTP connection from 192.168.0.209:6015
[2015/06/13 09:25:23] minidlna.c:1407: debug: HTTP connection from 192.168.0.209:6016

File 20131209_173910.mp4 is immediatelly visible in server by inotify
File 00011.MTS is not visible in server (I must rebuilt db to make him visible)
 
Does renaming the file to 00011.mts instead of 00011.MTS fix it? Could be a case-related problem.
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top