AAC parsed format is missing duration property
See original GitHub issueBug description
Parsed aac file is missing duration property. Using await parseFile(path, {duration: true});
{ format:
{ tagTypes: [],
lossless: false,
dataformat: 'ADTS/MPEG-4',
encoder: 'AAC',
sampleRate: 44100,
codecProfile: 'AAC LC',
bitrate: 127821.59375,
numberOfChannels: 2 },
native: undefined,
common:
{ track: { no: null, of: null }, disk: { no: null, of: null } } }
Expected behavior I would expect to have duration property.
Audio file demonstrating the problem (https://github.com/Borewit/music-metadata/files/3139850/NIK.TENDO.DECKY.-.Most.Wanted.x.YZOMANDIAS.OFF.VIZUAL.zip)
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Fail Parsing M4A, AAC file with Apple Audio File Stream ...
The trick here is that you need to get and set the necessary properties for m4a format in the right place, namely in...
Read more >aacparse - GStreamer
This is an AAC parser which handles both ADIF and ADTS stream formats. As ADIF format is not framed, it is not seekable...
Read more >4544 (Problem transcoding 5.1 AAC LATM audio streams)
I´ve captured some AAC LATM streams that are being broadcasted (DVB-T) here in Brazil and tried to transcode them using FFmpeg. The stereo...
Read more >RFC 3640 - RTP Payload Format for Transport of MPEG-4 ...
In some cases, the DTS can be derived from the RTP time stamp using frame rate information; this requires deep parsing in the...
Read more >DASH-IF Interoperability: Guidelines for Implementations
Figure 10: Different properties of a segment stream.. 105 ... If not present, it is inherited from the MPD or Period.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Because this issue is open since a long time I will give an update. To address this issue, to get the duration out of the ADTS file, I need to improve the MPEG/ADTS parser. Parsing ADTS files, I still experience loosing sync somewhere half way the file.
So it’s a lot of work, for a file format which is not very common. Once addressed it will be limited success (it will be slow) at most. Therefor it is not high on my priority list. Since there are not to many other issues, I may do fix it one day.
This performance issue should be definitively highlighted in docs with some related topic, that is for sure.
My app relies on the duration. So if no duration is present, i can not properly visualize progress of current track, so it makes
aac
more likely unusuable format. I would welcome duration property to be present anyway.