GithubHelp home page GithubHelp logo

Comments (4)

Sami32 avatar Sami32 commented on September 4, 2024

I don't know if it will acceptable or even follow the MediaInfo "convention", but i find an easyway to woraround that.

After having saw that renderers use some approximation algorithm for the duration, certainly the same as WMP, that are not accurate at all.
I then played with FFmpeg and discovered that -bsf:a aac_adtstoasc filter will give me an immediate and accurate result: of course as M4A ;)

So i wondered if MediaInfo could use a similar filter for such case ?

I guess that you already knew about that, but as i was happy to find a way to solve my duration issue, and would like share it, in case that it can be useful to someone else as well.

from mediainfo.

JeromeMartinez avatar JeromeMartinez commented on September 4, 2024

So i wondered if MediaInfo could use a similar filter for such case ?

Are you sure FFmpeg does not parse the whole file? pure AAC files are usually small so if you test on a single file you may miss the fact the whole file is parsed.
Parsing the whole file and getting the duration is also possible, but it would not be by default (in case someone parses thousands of files, it would be too slow).

from mediainfo.

Sami32 avatar Sami32 commented on September 4, 2024

Sure...no 😳
As it was too fast, i thought that it was, but you could be right.
And yes, i'm thinking about thousand of files been parsed as well, so that's interest me, as some users have huge libraries of 20.000 files, far biggest than my little test library.

How can i make sure FFmpeg filter do not parse the file ?
I admit that checking at the FFmpeg code could be incertain for me, so perhaps try create a huge ADTS(AAC) file ?

from mediainfo.

Sami32 avatar Sami32 commented on September 4, 2024

Sniff...you are right.

It taken 7.6 s for a 220 MB AAC-LC (ADTS) file (1H30mn), so it's really parsed.

EDIT: Thank you for the idea of impleming it as an option 👍 as i should have missed that it was parsed and that some delay was added to users libraries scanning.

from mediainfo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.