473,398 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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\1000\60=49.01 instead of 49:01
71277\1000\60=1.18 instead of 1.11.
can ne 1 gives me an hints?
regards,
Nov 21 '05 #1
2 1208
Supra wrote:
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\1000\60=49.01 instead of 49:01
71277\1000\60=1.18 instead of 1.11.
can ne 1 gives me an hints?
regards,


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).
Nov 21 '05 #2
i solved it.. i used procedure event called duration. will worked =-O
regards

C-Services Holland b.v. wrote:
Supra wrote:
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\1000\60=49.01 instead of 49:01
71277\1000\60=1.18 instead of 1.11.
can ne 1 gives me an hints?
regards,

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).

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rajani | last post by:
Hello, I have a table(msaccess) with the structure... job_code text 6 style text 10 qty number fabrication text 65 ship_date date/time
7
by: Egor Shipovalov | last post by:
I'm implementing paging through search results using cursors. Is there a better way to know total number of rows under a cursor than running a separate COUNT(*) query? I think PostgreSQL is bound...
4
by: Bill Dika | last post by:
Hi I am trying to calculate a running total of a calculated textbox (tbAtStandard) in GroupFooter1 for placement in a textbox (tbTotalAtStandard) on my report in Groupfooter0. The problem...
4
by: JWilliams | last post by:
I am trying to calculate the total minutes in a day that an employee provides services. When an employee works starts at 11 am in the morning and finishes at 12 am (midnight) it is calculating it...
0
by: brianpmccullough | last post by:
Hello, Anyone ever implemented a solution that allows you to track the total page request time in and ASP.NET page? The time would need to include the server processing time and client side...
14
by: Kevin G. Anderson | last post by:
What: CAUG Meeting - QuickBooks IIF Files; Total Access Analyzer; CAUG Social When: Thursday, May 25, 2006, 6PM Who: Chris Monaghan and Kevin Anderson Where: The Information Management Group...
17
by: barkarlo | last post by:
I need help to make grand total time in continuous forms. to calculate total work time I use following formula =format(+1--nz();"short time"). but when I make grand total time in form footer (for...
11
by: Lloydm | last post by:
Not that of a guru with excel but tryin to write a formula that will calculate total hrs worked for normal mon-fri 9a-5p week schedule. I have figured out how to calculate daily totals but for week...
15
klarae99
by: klarae99 | last post by:
I am working on an Inventory Database in Access 2003. I am working on a report that I could print when its time to file our State Sales Tax paperwork. The figures I need for this report are Total...
7
by: Ecohouse | last post by:
I'm working on a project that was dropped in my lap. It is in Access 2003. There are short time fields which get calculated values (eg. 1:30). But I will need to total up those values for...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.