Please Disable Ad-Block To View This Website.

If you block ads, this site can not survive!

Ads are very minimal for registered users. If you don't have an account please register now!

DOWNLOAD
 Full Scripts
 Addons
 Snippets
 DLLs
 MTS Themes
 Tutorials
 Misc.
 File Queue
 Download mIRC
INTERACT
 Screenshots
 Challenge
 Top Downloads
 Submit Form
 Forums

SEARCH
Site Search

FRIENDS
Link to us!
PhotoShelf

Home | Forum:
mircscripts.org Forums > Scripting Help     Search Forums...

  Thread mode:   Index | < Prev. | Next >

Andy
  new!   RE: How to show the bitrate of a file on chan announce?Copy to Clipboard

User: #23498
Joined: Jun 23rd 2003
Posts: 753
Here you go..

; //load -rs mp3.mrc ..
menu channel,query {
  -
  open file :{
    var %file = $$sfile(C:,Select File)
    run %file
    var %len = $calc($sound(%file).length / 1000)
    var %dur = $asctime(%len,$iif(%len >= 3600,hh:) $+ nn:ss)
    if (*.avi iswm %file) say avi ( $+ $nofile(%file) $+ ) ( $+ $remove($nopath(%file),) $+ )
    if (*.m3u iswm %file) say m³u ( $+ $nopath(%file) $+ ) ( $+ consists of $lines(%file) tracks $+ )
    if (*.mp3 iswm %file) say mp³ ( $+ $nofile(%file) $+ ) ( $+ $remove($nopath(%file),) $+ ) ( $+ %dur $+ ) ( $+ $sound(%file).bitrate $+ kbps $+ )
  }
  -
}

Tested it with songs over one hour and it works fine


Jun/2/2010 6:28PM


Replies


 How to show the bitrate of a file on chan announce? - neek (May 29, 2010 @ 1:49AM)   new!   

 RE: How to show the bitrate of a file on chan announce? - Andy (May 29, 2010 @ 7:25AM)   new!   

 RE: How to show the bitrate of a file on chan announce? - neek (Jun 1, 2010 @ 2:24PM)   new!   

 RE: How to show the bitrate of a file on chan announce? - Andy (Jun 1, 2010 @ 3:19PM)   new!   

 RE: How to show the bitrate of a file on chan announce? - neek (Jun 1, 2010 @ 4:41PM)   new!   

 RE: How to show the bitrate of a file on chan announce? - Andy (Jun 2, 2010 @ 4:26AM)   new!   

 RE: How to show the bitrate of a file on chan announce? - Andy (Jun 2, 2010 @ 6:28PM)   new!   

 RE: How to show the bitrate of a file on chan announce? - neek (Jun 2, 2010 @ 7:17PM)   new!   

 RE: How to show the bitrate of a file on chan announce? - Andy (Jun 4, 2010 @ 2:22PM)   new!   

 RE: How to show the bitrate of a file on chan announce? - neek (Jun 5, 2010 @ 12:43PM)   new!   

 RE: How to show the bitrate of a file on chan announce? - Andy (Jun 5, 2010 @ 8:25PM)   new!   



Post Reply

You must be logged in to post messages.