This is the last script with improvements. The problem remains. During "minidlnad -v -d -R" see "Unhandled format: mov,mp4,m4a,3gp,3g2,mj2" and "Unhandled AAC type 0". Both types should be handled by libav (ffmpeg), which is linked.
>ldd minidlnad | grep av 00000f741c7b5000 00000f741ca3a000 rlib 0 1 0 /usr/local/lib/libavformat.so.23.0 00000f7492bec000 00000f7493f21000 rlib 0 2 0 /usr/local/lib/libavcodec.so.26.0 00000f7419301000 00000f741a3f1000 rlib 0 4 0 /usr/local/lib/libavutil.so.16.0 00000f73d37a9000 00000f73d39a8000 rlib 0 1 0 /usr/local/lib/libdav1d.so.3.0
minidlna.tgz
Description: application/compressed-tar

