question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AAC parsed format is missing duration property

See original GitHub issue

Bug 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Borewitcommented, Jul 27, 2019

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.

0reactions
Vondrycommented, May 3, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found