Autor Beitrag
Jakob Schöttl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 929
Erhaltene Danke: 1


Delphi 7 Professional
BeitragVerfasst: Mo 09.01.06 16:55 
Hi, ich hätte eine Frage:

Jede MP3-Datei hat einen Programmkopf, in der Dinge, wie z. B. Interpret, Dauer, und vieles mehr steht.
Weiß jemand, wie man diesen Programmkopf auslesen kann um die Daten z. B. in eine Tabelle zu schreiben?
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 09.01.06 16:59 
Moin und :welcome: im Forum!

Du kannst dir mit der Suchfunktion auch sehr schnell selbst weiter helfen: Suche in: Delphi-Forum, Delphi-Library MP3 AND ID3

cu
Narses
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 09.01.06 17:13 
Ein :welcome: auch von mir!

Ich mach mal Werbung für das hier. 8)

btw: Die Dauer steht nirgendwo, und Titel etc. stehen nicht unbedingt am Kopf, sondern oft auch am Ende ;-)

_________________
We are, we were and will not be.
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Mo 09.01.06 17:34 
user profile iconGausi hat folgendes geschrieben:
Die Dauer steht nirgendwo
In den MPEG-Frames :mrgreen:

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 09.01.06 17:41 
user profile icontommie-lie hat folgendes geschrieben:
user profile iconGausi hat folgendes geschrieben:
Die Dauer steht nirgendwo
In den MPEG-Frames :mrgreen:

Wenn ich mich recht erinnere, auch dort nicht. in den MPEG-Frames steht nur drin, wie groß (in Bytes) der Frame ist (bzw. ist das aus den Infos über Bitrate etc. berechenbar). Und aus diversen anderen Informationen (Dateigröße bei CBR / XING-Header bei VBR) muss man dann herausfinden, wieviele Frames es gibt, um daraus die Spieldauer zu berechnen.

_________________
We are, we were and will not be.
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Mo 09.01.06 17:54 
user profile iconGausi hat folgendes geschrieben:
Wenn ich mich recht erinnere, auch dort nicht.
Ich habe nicht gesagt, daß dort wortwörtlich "Ich bin elf Minuten und einunddreißig Sekunden lang" drin steht ;-)
Die Dauer einer MP3-Datei kann man effektiv nur über die einzelnen MPEG-Frames rauskriegen, bei VBR darf man sogar die gesamte Datei durchgehen und für jeden Frame die passende Bitrate für die Berechnung benutzen.

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 09.01.06 18:00 
Ok, dann hab ich dich nicht ganz richtig verstanden. Unter "drinstehen" verstehe ich eigentlich, dass man das mehr oder weniger direkt auslesen kann, und nicht erst diverse Berechnungen anstellen muss. Daher mein Kommentar ;-)

Und auch wenns langsam OT wird: Auch bei vbr muss man nicht die ganze Datei durchgehen, um die Länge zu bestimmen. Denn es ist allgemein üblich, dass dort die Frame-Anzahl im sog. Xing-Header steht. Das beschleunigt das Bestimmen der Spieldauer natürlich um einiges.

_________________
We are, we were and will not be.
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Mo 09.01.06 18:18 
Gausi hat folgendes geschrieben:
Denn es ist allgemein üblich, dass dort die Frame-Anzahl im sog. Xing-Header steht. Das beschleunigt das Bestimmen der Spieldauer natürlich um einiges.
Zum einen muss der Xing-Header nicht bei jeder VBR-Datei vorhanden sein, und zum anderen enthält der Xing-Tag meines Wissens nach die Anzahl der Frames sowie die Länge des MPEG-Bitstreams, aber nicht gleichzeitig Bitrateninformationen über alle Frames im Stream. Man könnte also aus dem Xing-Tag auslesen, wieviele Frames ich habe, aber nicht wie lang der gesamte Titel ist.

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
Jakob Schöttl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 929
Erhaltene Danke: 1


Delphi 7 Professional
BeitragVerfasst: Mi 11.01.06 15:17 
Titel: Habs gefunden, Danke
Ich hab jetzt danach gesucht und bin fündig geworden.
Darauf bin ich zuerst wohl nicht gekommen.

Danke für die Tipps!