total time

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Supra

    #1

    total time

    i know how to get filesize (using filelen) but don't how to get total
    time. i am using mpegs or songs. i can retreived filename but not total
    times in listhbox.
    i done in vb6 b4.

    300 = 30 sec
    71277=1 min 11sec
    2941584=49 min 01 sec
    if i do in math ....2941584\100 0\60=49.01 instead of 49:01
    71277\1000\60=1 .18 instead of 1.11.
    can ne 1 gives me an hints?
    regards,
  • C-Services Holland b.v.

    #2
    Re: total time

    Supra wrote:[color=blue]
    > i know how to get filesize (using filelen) but don't how to get total
    > time. i am using mpegs or songs. i can retreived filename but not total
    > times in listhbox.
    > i done in vb6 b4.
    >
    > 300 = 30 sec
    > 71277=1 min 11sec
    > 2941584=49 min 01 sec
    > if i do in math ....2941584\100 0\60=49.01 instead of 49:01
    > 71277\1000\60=1 .18 instead of 1.11.
    > can ne 1 gives me an hints?
    > regards,[/color]

    Filesize in itself has little to do with the length of the clip in your
    file. My guess is you'll need to figure out the bitrate and use that in
    combination with the filesize to figure our the length. For example, 2
    clips of the same length using different bitrates will give you 2
    different filesizes (i.e. a MP3 file of 320KBps wil be twice as large as
    a 160Kbps one).

    Comment

    • Supra

      #3
      Re: total time

      i solved it.. i used procedure event called duration. will worked =-O
      regards

      C-Services Holland b.v. wrote:
      [color=blue]
      > Supra wrote:
      >[color=green]
      >> i know how to get filesize (using filelen) but don't how to get
      >> total time. i am using mpegs or songs. i can retreived filename but
      >> not total times in listhbox.
      >> i done in vb6 b4.
      >>
      >> 300 = 30 sec
      >> 71277=1 min 11sec
      >> 2941584=49 min 01 sec
      >> if i do in math ....2941584\100 0\60=49.01 instead of 49:01
      >> 71277\1000\60=1 .18 instead of 1.11.
      >> can ne 1 gives me an hints?
      >> regards,[/color]
      >
      >
      > Filesize in itself has little to do with the length of the clip in
      > your file. My guess is you'll need to figure out the bitrate and use
      > that in combination with the filesize to figure our the length. For
      > example, 2 clips of the same length using different bitrates will give
      > you 2 different filesizes (i.e. a MP3 file of 320KBps wil be twice as
      > large as a 160Kbps one).[/color]

      Comment

      Working...