Alex Olshansky - 2011-04-06

When I set "media_dir=V,/Movies/One" (with one m2ts file in it), MiniDLNA scanning is OK. But when I set "media_dir=V,/Movies/Two" or "media_dir=V,/Movies/Three" or even "media_dir=V,/Movies" (with three m2ts files inside) scanning is stuck. I don't see any special in movies 2 & 3 in comparison to movie 1, that can cause that (they are Blu-ray 1920x1080 videofiles).

What I have in log when I set "media_dir=V,/Movies/One":

[2011/04/06 16:12:21] minidlna.c:848: warn: Starting MiniDLNA version 1.0.19 [SQLite 3.7.3].
[2011/04/06 16:12:21] minidlna.c:871: warn: Creating new database...
[2011/04/06 16:12:21] minidlna.c:936: warn: HTTP listening on port 8200
[2011/04/06 16:12:21] scanner.c:726: warn: Scanning /Movies/One
[2011/04/06 16:12:21] scanner.c:798: warn: Scanning /Movies/One finished (1 files)!

And that's the log when I set "media_dir=V,/Movies/Two" (or other "bad" dir):

[2011/04/06 16:25:39] minidlna.c:848: warn: Starting MiniDLNA version 1.0.19 [SQLite 3.7.3].
[2011/04/06 16:25:39] minidlna.c:871: warn: Creating new database...
[2011/04/06 16:25:39] minidlna.c:936: warn: HTTP listening on port 8200
[2011/04/06 16:25:39] scanner.c:726: warn: Scanning /Movies/Two

— and that's all. MiniDLNA process use 50-90% CPU for a minute or two, and then become normal, and even keep working, but don't write "finished" in log and don't add file to DB (neither problem file, nor any other following files or folders).

--

I managed to debug that situation to "metadata.c:673" line with "av_find_stream_info(ctx);" in it. When I commented this line and compiled code, scanning works! But without resolution, duration, bitrate and other info in DB, of course.

And then I even found the same problem here in MiniDLNA tracker: https://sourceforge.net/tracker/index.php?func=detail&aid=3230971&group_id=243163&atid=1121516. But there was no solution.

--

So, please, maybe someone can help me to make av_find_stream_info() work? My NAS is "WD My Book Live" (Debian, PowerPC). Maybe, I can have some advices about test something in ffmpeg or install another version of it or anything else?