Find the answer to your Linux question:
Results 1 to 3 of 3
Hi all, Here an interesting question : I'm having an mp3 file of size 4MB -is it possible to calculate the time duration of this song? My problem is I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757

    One Interesting Question


    Hi all,
    Here an interesting question :

    I'm having an mp3 file of size 4MB -is it possible to calculate the time duration
    of this song?

    My problem is I need to compute time duration for a vodcasting site

    Any idea
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  2. #2
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    You would have to know the bitrate at which the track was encoded. A higher bitrate will mean a larger file, even if the track itself is short. For instance (these are just guesses; I don't know the exact conversion):

    Standard 3 minute song at 128kb : approximately 4MB
    Standard 3 minute song at 256kb: approximately 8MB

    Short 30 second track encoded at 495kb : approximately 4MB

    It all depends on the bitrate.
    Registered Linux user #270181
    TechieMoe's Tech Rants

  3. #3
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757
    Thanks techieMoe
    Do you have any docs or links regarding how the conversion works ?
    I tried google but not getting any useful links
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •