Ich habe mich auch mit dem Problem des fehlenden Rescan beim minidlna befasst. Dabei bin ich auch auf folgenden Beitrag in einem anderen Forum gestoßen:
ZitatAlles anzeigenOK, so I've done some more digging. It seems for whatever reason inotify tells minidlna that the .ts file has been deleted when you start a recording.
And only once the recording stops inotify tells minidlna the file has changed and to scan the file and add it to the database.
Recording Starts...
[2012/12/10 15:39:46] inotify.c:716: debug: The file /media/hdd/movie/20121210 0600 - 169 - BBC HD - BBC HD Preview.ts.meta was changed.
[2012/12/10 15:39:46] inotify.c:716: debug: The file /media/hdd/movie/20121210 0600 - 169 - BBC HD - BBC HD Preview.eit was changed.
[2012/12/10 15:39:47] inotify.c:725: debug: The file /media/hdd/movie/20121210 0600 - 169 - BBC HD - BBC HD Preview.ts was deleted.
Recording Stops
[2012/12/10 15:41:45] inotify.c:716: debug: The file /media/hdd/movie/20121210 0600 - 169 - BBC HD - BBC HD Preview.ts.sc was changed.
[2012/12/10 15:41:45] inotify.c:716: debug: The file /media/hdd/movie/20121210 0600 - 169 - BBC HD - BBC HD Preview.ts.ap was changed.
[2012/12/10 15:41:45] inotify.c:716: debug: The file /media/hdd/movie/20121210 0600 - 169 - BBC HD - BBC HD Preview.ts was changed.
So while a recording is in-progress minidlna does not tell you about it unless to do the stop and start as in my post above.
I wonder if there's anyway we channge this behaviour? As it would be good to be able to play it as soon as the file is available
Das bezog sich aber auf eine VU+. Beim Versuch, das auf der Dreambox nachzuvollziehen, habe ich aber gar keine inotify-tools gefunden. Ist das evt. der Grund, warum das nicht funktioniert?
Als Workaround habe ich nun "kill $(cat /var/run/minidlna.pid)" und "/usr/bin/minidlna -R -f /etc/minidlna.conf" in ein Restart-Script verpackt, welches ich mittels cronjob (Blue Panel => Daemons => Cron) jede Nacht aufrufe.
Leider habe ich die inotify-Funktionalität für die Dream nicht gefunden, sonst könnte man selbst einen Daemon programmieren, der minidlna bei jedem Change einer ts-Datei einfach restartet.