View Full Version : [CODIFICA MP3] Come estrarre le informazioni inerenti al bitrate?
Salve a tutti!
Per un programma che sto scrivendo avrei bisogno di estrarre da alcuni file Mp3 i seguenti dati:
sample rate,
bitrate.
Ho dato un'occhiata a diversi siti, incluso mp3 technologies, ma non riesco a capire una cosa: dove trovo i 32 bit che mi forniscono le informazioni header in merito al file?
Grazie mille!
fantoibed
30-12-2004, 18:48
Cito da http://www.id3.org/id3v1.html :
If you one sum the the size of all these fields we see that 30+30+30+4+30+1 equals 125 bytes and not 128 bytes. The missing three bytes can be found at the very beginning of the tag, before the song title. These three bytes are always "TAG" and is the identification that this is indeed a ID3 tag. The easiest way to find a ID3v1/1.1 tag is to look for the word "TAG" 128 bytes from the end of a file.
Non mi riferivo a quello, comunque ho risolto ;)!
E' sufficiente leggere il primi 32 bit del file per trovare codificate tutte le informazioni!
Grazie comunque!
VegetaSSJ5
31-12-2004, 12:28
giusto per sapere. questi 32 bit come vanno interpretati?
fantoibed
31-12-2004, 13:22
Per Stobby: scusa, mi sembrava che quei dati facessero parte dell'ID3 tag, ma non è così, peto veniam :ops:
Originariamente inviato da VegetaSSJ5
giusto per sapere. questi 32 bit come vanno interpretati?
Segui questo link (http://www.oreilly.com/catalog/mp3/chapter/ch02.html) verso la fine c'è una tabella che spiega come vanno interpretati quei 32bits... :)
Scherzavo daii, nn prendertela sennò piango :cry: !!
Per Vegeta, puoi anche guardare questi due link:
http://www.mp3-tech.org/
http://www.id3.org/mp3frame.html
Il primo in particolare contiene tutto quello che puoi sognare sugli mp3 :sofico:
VegetaSSJ5
31-12-2004, 18:29
Originariamente inviato da Stobby
Il primo in particolare contiene tutto quello che puoi sognare sugli mp3 :sofico:
ti quoto in pieno! :eek:
vBulletin® v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.