NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
talmage
Aug 14, 2017Tutor
ReadyDLNA cannot allocate memory while scanning mkv file
ReadyDLNA on my ReadyNAS Pro 4 with RAIDiator 4.2.31 says that it cannot allocate memory when processing the metadata of three MKV files. Why would that be?
I bought more memory, upgrading the Pro 4 from 1GB to 4GB. ReadyDLNA still says it cannot allocate memory.
Here is are examples of the error message in /var/log/upnp-av.log:
[2017/08/14 14:20:26] metadata.c:686: warn: Opening /c/media/Collected/Foo/Foo.mkv failed! [Cannot allocate memory]
[2017/08/14 14:20:26] scanner.c:490: warn: Unsuccessful getting details for /c/media/Foo/Foo.mkv!
6 Replies
Replies have been turned off for this discussion
- StephenBGuru - Experienced User
When you do a rescan, do these messages always show up on the same files? If so, did it get further when you upgraded the memory?
- talmageTutor
ReadyDLNA always complains about the same files. Judging by the error message and the source code, it's failing while reading metadata, not the video in the files. I asked about the problem here so that I won't have to read the source code to find the answer. I think the problem occurs in libavformat, for which I don't yet have the source code.
I expec that the solution is to convert the MKV file into an MP4 file with ffmpeg. Like so:
ffmpeg -i /path/to/Foo.mkv -codec copy /path/to/Foo.mp4
I found that solution at askubuntu.com
- StephenBGuru - Experienced User
talmage wrote:
ReadyDLNA always complains about the same files. Judging by the error message and the source code, it's failing while reading metadata, not the video in the files.
It's extracting the metadata from the files. Since it's always crashing on the same ones, it is mostly file corruption. Remuxing the MKV (which is what your ffmpeg command does) likely will solve it - though it is better remux it to another MKV. MP4 players generally are expecting AAC audio, and if your file doesn't use that you likely won't be able to play it. BTW There are other free tools you can use for this, including mkvtoolnix and avidemux.
Note if there is file corruption, there could be some issues with playback (both with the original and the remuxed files). If that's the case you'll need to re-rip it (or download it again).
- bedlam1Prodigy
talmage wrote:ReadyDLNA on my ReadyNAS Pro 4 with RAIDiator 4.2.31 says that it cannot allocate memory when processing the metadata of three MKV files. Why would that be?
I bought more memory, upgrading the Pro 4 from 1GB to 4GB. ReadyDLNA still says it cannot allocate memory.
Could you advise what brand/model/reference no./part no. of memory you upgraded to please
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!