MP3 Info
Processes an MP3 file to extract key meta information such as MPEG version, MPEG layer version, bitrate, sample rate and duration. Can optionally process ID3 tags.
Usage
A simple usage example:
import 'dart:io';
import 'package:mp3_info/mp3_info.dart';
main() {
MP3Info mp3 = MP3Processor.fromFile(File("test_files/test_128kpbs_441khz_stereo_10s.mp3"));
print('MP3: test_128kpbs_441khz_stereo_10s.mp3');
switch(mp3.sampleRate) {
case SampleRate.rate_32000:
print('Sample rate: 32KHz');
break;
case SampleRate.rate_44100:
print('Sample rate: 44.1KHz');
break;
case SampleRate.rate_48000:
print('Sample rate: 48KHz');
break;
}
print('Bit rate: ${mp3.bitrate}bps');
print('Duration: ${mp3.duration}');
}
Task list
xMP3 Key fieldsxMPEG versionxMPEG layer versionxSample ratexBitratexDurationxCRC checkxChannel modeMode extensionxCopyright flagxOrigin (original/copy))xEmphasis
xCBR (Constant Bitrate) supportVBR (Variable Bitrate) supportID3 v1 Tag supportID3 v2 Tag supportAENC Audio encryptionAPIC Attached picturexCHAP ChaptersxCOMM CommentsCOMR Commercial frameENCR Encryption method registrationEQUA EqualizationETCO Event timing codesGEOB General encapsulated objectGRID Group identification registrationIPLS Involved people listLINK Linked informationMCDI Music CD identifierMLLT MPEG location lookup tableOWNE Ownership framePRIV Private framePCNT Play counterPOPM PopularimeterPOSS Position synchronisation frameRBUF Recommended buffer sizeRVAD Relative volume adjustmentRVRB ReverbSYLT Synchronized lyric/textSYTC Synchronized tempo codesxTALB Album/Movie/Show titlexTBPM BPM (beats per minute)xTCOM ComposerxTCON Content typexTCOP Copyright messagexTDAT DatexTDLY Playlist delayxTENC Encoded byxTEXT Lyricist/Text writerxTFLT File typexTIME TimexTIT1 Content group descriptionxTIT2 Title/songname/content descriptionxTIT3 Subtitle/Description refinementxTKEY Initial keyxTLAN Language(s)xTLEN LengthxTMED Media typexTOAL Original album/movie/show titlexTOFN Original filenamexTOLY Original lyricist(s)/text writer(s)xTOPE Original artist(s)/performer(s)xTORY Original release yearxTOWN File owner/licenseexTPE1 Lead performer(s)/Soloist(s)xTPE2 Band/orchestra/accompanimentxTPE3 Conductor/performer refinementxTPE4 Interpreted, remixed, or otherwise modified byxTPOS Part of a setxTPUB PublisherxTRCK Track number/Position in setxTRDA Recording datesxTRSN Internet radio station namexTRSO Internet radio station ownerxTSIZ SizexTSRC ISRC (international standard recording code)xTSSE Software/Hardware and settings used for encodingxTYER YearxTXXX User defined text information frameUFID Unique file identifierUSER Terms of useUSLT Unsychronized lyric/text transcriptionWCOM WCOM Commercial informationWCOP Copyright/Legal informationWOAF Official audio file webpageWOAR Official artist/performer webpageWOAS Official audio source webpageWORS Official internet radio station homepageWPAY PaymentWPUB Publishers official webpageWXXX User defined URL link frame