What's new
  • 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!

AC68U - MiniDLNA can't index some videos

xantier

Occasional Visitor
I'm trying to setup DLNA server on 6TB HDD with ext3 partition and it has huge files around 50GB each. Some of those 50GB files can be indexed but some are not, due to out of memory error. But what I don't understand is that if the file size is the problem, why some of them can be indexed?

this is the minidlna log:
Code:
[1970/01/01 14:45:09] metadata.c:742: warn: Opening /tmp/mnt/sda1/Filmler/Blade Runner 1982.2160p.BluRay.x265.10bit.SDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ/Blade Runner 1982.2160p.BluRay.x265.10bit.SDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ.mkv failed! [Cannot allocate memory]
[1970/01/01 14:45:09] scanner.c:678: warn: Unsuccessful getting details for /tmp/mnt/sda1/Filmler/Blade Runner 1982.2160p.BluRay.x265.10bit.SDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ/Blade Runner 1982.2160p.BluRay.x265.10bit.SDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ.mkv
[1970/01/01 14:45:10] metadata.c:742: warn: Opening /tmp/mnt/sda1/Filmler/Blade.Runner.2049.2017.2160p.BluRay.x265.10bit.SDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ/Blade.Runner.2049.2017.2160p.BluRay.x265.10bit.SDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ.mkv failed! [Cannot allocate memory]
[1970/01/01 14:45:10] scanner.c:678: warn: Unsuccessful getting details for /tmp/mnt/sda1/Filmler/Blade.Runner.2049.2017.2160p.BluRay.x265.10bit.SDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ/Blade.Runner.2049.2017.2160p.BluRay.x265.10bit.SDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ.mkv
[1970/01/01 14:45:16] metadata.c:742: warn: Opening /tmp/mnt/sda1/Filmler/The.Matrix.1999.2160p.UHD.BluRay.X265-IAMABLE/Sample/the.matrix.1999.2160p.uhd.bluray.x265-iamable-sample.mkv failed! [Cannot allocate memory]
[1970/01/01 14:45:16] scanner.c:678: warn: Unsuccessful getting details for /tmp/mnt/sda1/Filmler/The.Matrix.1999.2160p.UHD.BluRay.X265-IAMABLE/Sample/the.matrix.1999.2160p.uhd.bluray.x265-iamable-sample.mkv

and I checked the sources, this is the problematic part:
Code:
int64_t
GetVideoMetadata(const char *path, char *name)
{
    struct stat file;
    int ret, i;
    struct tm *modtime;
    AVFormatContext *ctx = NULL;
    AVCodecContext *ac = NULL, *vc = NULL;
    int audio_stream = -1, video_stream = -1;
    enum audio_profiles audio_profile = PROFILE_AUDIO_UNKNOWN;
    char fourcc[4];
    int64_t album_art = 0;
    char nfo[MAXPATHLEN], *ext;
    struct song_metadata video;
    metadata_t m;
    uint32_t free_flags = 0xFFFFFFFF;
    char *path_cpy, *basepath;

    memset(&m, '\0', sizeof(m));
    memset(&video, '\0', sizeof(video));

    //DEBUG DPRINTF(E_DEBUG, L_METADATA, "Parsing video %s...\n", name);
    if ( stat(path, &file) != 0 )
        return 0;
    strip_ext(name);
    //DEBUG DPRINTF(E_DEBUG, L_METADATA, " * size: %jd\n", file.st_size);

    ret = lav_open(&ctx, path);
    if( ret != 0 )
    {
        char err[128];
        av_strerror(ret, err, sizeof(err));
        DPRINTF(E_WARN, L_METADATA, "Opening %s failed! [%s]\n", path, err);
        return 0;
    }

So basically it can't read the metadata. But those movies can be played through SMB, they are not corrupted. I have no idea what's wrong.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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