Comments (4)
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.
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.
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.
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)
- open folder / limitation? HOT 21
- The theme always follows Windows HOT 3
- MediaInfo and FFMpeg disagree on number of audio channels HOT 1
- 24.06 - some pixels or cut off text and "moved" object in options dialog HOT 16
- 24.06 - "Allgemein" is cut off if HTML is selected -> scaling @200% HOT 44
- 24.06 - Open Preferences and click on "Adavanced" -> GUI buttons appear HOT 10
- Character police issue HOT 17
- Export icon is missing HOT 4
- Menu is disappearing with Windows light theme HOT 18
- No libmediainfo0v5_24.06-1_amd64.deb package in Ubuntu Jammy repo HOT 2
- MediaInfo CLI read Menu ONLY HOT 4
- [Feature request] Notify user when more info in available in Full parsing HOT 5
- Seconds missing from duration when one hour or longer
- MediaInfo CLI: How to add MP3 text
- Mapping Color Config Semantics HOT 2
- [UI] [24.06] About dialog has text cut HOT 4
- [Subtitles] [24.06] Number of recognized subtitle tracks varies depending on resolution and fps
- Feature request: Language options on minimal MediaInfo
- MediaInfo pulling "Identity" Matrix Coefficients HOT 3
- TTML Files Missing TimeCode_FirstFrame and TimeCode_LastFrame HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mediainfo.