Help - Search - Members - Calendar
Full Version: time length of mp3 file
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - General
daniel.h
Could somebody help me?
How or in what way can I calculate the time length of mp3 file using bitrate and frequency? Or have you other suggestion?
Thanks Dan
Wikan
QUOTE(daniel.h @ Jan 14 2003 - 08:39 PM)
Could somebody help me?
How or in what way can I calculate the time length of mp3 file using bitrate and frequency? Or have you other suggestion?
Thanks Dan

If you know only bitrate and frequency you cannot calculate the length. You also need the file size.
---
A kdyby si mel zajem o cestinu tak poskytnu se staci ozvat wink.gif
daniel.h
From hydrogenaudio.org
Dik za odpoved. Cestina taky neni nejhorsi :-). Zajimala by me jedna vec: ve vsech info souborech ohledne *.mp3 se pise - je treba najit prvni frame, nacist jeho hlavicku a porovnat s ostatnimi framy jestli jsou stejne (mimo vbr). Jak najdu prvni frame a jeho hlavicku? Pak uz by to mohlo byt jasne. Pomoci bitrate, samplerate + padding bitu spocitat velikost framu a porovnat s dalsim framem. Doufam :-).
Jsou to prvni 4 bity v souboru(hlavicka prvniho framu)? :-)
Wikan
QUOTE(daniel.h @ Jan 15 2003 - 12:12 AM)
From hydrogenaudio.org
Dik za odpoved. Cestina taky neni nejhorsi :-). Zajimala by me jedna vec: ve vsech info souborech ohledne *.mp3 se pise - je treba najit prvni frame, nacist jeho hlavicku a porovnat s ostatnimi framy jestli jsou stejne (mimo vbr). Jak najdu prvni frame a jeho hlavicku? Pak uz by to mohlo byt jasne. Pomoci bitrate, samplerate + padding bitu spocitat velikost framu a porovnat s dalsim framem. Doufam :-).
Jsou to prvni 4 bity v souboru(hlavicka prvniho framu)? :-)

Hlavicka sice ma 4 byty, ale nemusi to bejt zrovna ta prvni. Prvni byte hlavicky je vzdycky 255 (FF). Ten druhy musi mit 3 nejvyssi bity nastaveny na 1. Podle toho ji najdes. Dalsi podrobnosti na tyhle strance.
Dibrom
Please post in English guys, this is an English forum after all, and it's one of the rules.

If you must post in a different language (you feel you can get your point across better that way), then at least provide a rough translation so that the rest of the board can participate in discussion.
Wikan
QUOTE(Dibrom @ Jan 15 2003 - 01:00 AM)
Please post in English guys, this is an English forum after all, and it's one of the rules.

If you must post in a different language (you feel you can get your point across better that way), then at least provide a rough translation so that the rest of the board can participate in discussion.

Ok wink.gif He want to know how to find header of the first frame in mp3 file. So I refered to "mp3 header page" on www.mp3-tech.org
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.