|
Joined: Feb 2003
Posts: 143
Vogon poet
|
OP
Vogon poet
Joined: Feb 2003
Posts: 143 |
Is there a way I can use mIRC Script to script a way to get the bitrate and length and all that?
We don't just write the scripts, we put them to the test! (ScriptBusters)
|
|
|
|
Joined: Dec 2002
Posts: 18
Pikka bird
|
Pikka bird
Joined: Dec 2002
Posts: 18 |
this might not be much help to u but check www.mircscripts.org and look at a mp3 player with that stuff... if its in their script just look for it...
|
|
|
|
Joined: Dec 2002
Posts: 271
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 271 |
how bout you try /help /splay, that page contains all the information pertaining to playing songs, volume, length, etc etc...
|
|
|
|
Joined: Feb 2003
Posts: 143
Vogon poet
|
OP
Vogon poet
Joined: Feb 2003
Posts: 143 |
because that is only made for mp3's and not other media types. I want to know if their is another way to script a way to get the file information such as the bitrate, length, songname and such since $sound identifiers dont work.
We don't just write the scripts, we put them to the test! (ScriptBusters)
|
|
|
|
Joined: Dec 2002
Posts: 332
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 332 |
/splay -cwmpq [filename | stop | pause | resume | seek | skip] [pos] Plays the specified sound, which can be a .wav, .mid, or .mp3 file.
Properties: album, title, artist, year, comment, genre, track, length, version, bitrate, vbr, sample, mode, copyright, private, crc
/help /splay
|
|
|
|
Joined: Feb 2003
Posts: 143
Vogon poet
|
OP
Vogon poet
Joined: Feb 2003
Posts: 143 |
READ IT FOR YOURSELF... If all you are going to do is show me the same thing over and over then why not read the FINE PRINT. I can read the help file fine... I dont need help reading the help file. "hence" I didnt ask for help reading the help file. The help file states.
$sound(filename) Returns either the directory for that file type, as above, or information about the sound file. Currently, only " mp3" files are supported with the following properties.
Properties: album, title, artist, year, comment, genre, track, length, version, bitrate, vbr, sample, mode, copyright, private, crc.
Meaning that ONLY MP3's have the capability to use the $sound identifier and not .mid .wav and .WMA. So I will ask again.
Does anyone know how to read the file information from .wma files without the $sound identifer or any other identifier for that matter that has anything to do with /splay so I can get information like the bitrate and song length,
We don't just write the scripts, we put them to the test! (ScriptBusters)
|
|
|
|
Joined: Dec 2002
Posts: 699
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 699 |
No, the properties belong to $sound $sound(filename) Returns either the directory for that file type, as above, or information about the sound file. Currently, only mp3 files are supported with the following properties. Properties: album, title, artist, year, comment, genre, track, length, version, bitrate, vbr, sample, mode, copyright, private, crc
|
|
|
|
Joined: Feb 2003
Posts: 143
Vogon poet
|
OP
Vogon poet
Joined: Feb 2003
Posts: 143 |
that helps me very little when I need to know if there is a possible way to get file information from .wma sound files other then "/help splay" when that helps me not at all.
We don't just write the scripts, we put them to the test! (ScriptBusters)
|
|
|
|
Joined: Dec 2002
Posts: 699
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 699 |
That reply was to Cheech :tongue:
|
|
|
|
Joined: Dec 2002
Posts: 204
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 204 |
i am not sure about this but you might try /bread. I seem to remember someone telling me about that when i asked about getting the ID3v2 information from an mp3 file, which mirc doesnt support either, just ID3v1. It might not be anything you could use, and i would not know where to begin with such a script, but it just might be a worth while thing to look at.
keek: Scots - intr.v. keeked, keekĀ·ing, keeks To peek; peep.
|
|
|
|
Joined: Dec 2002
Posts: 699
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 699 |
|
|
|
|
Joined: Feb 2003
Posts: 143
Vogon poet
|
OP
Vogon poet
Joined: Feb 2003
Posts: 143 |
I've tried that script once and I get no reply when I try it.
//echo 0 $wma("C:\My Documents\My Music\Avril Lavigne\Let Go\Complicated.wma").bitrate
My reply is.
The spaces here is what the error is. I guess it's no error, but it still returns nothing.
We don't just write the scripts, we put them to the test! (ScriptBusters)
|
|
|
|
Joined: Dec 2002
Posts: 699
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 699 |
Do you mean you see nothing at all, or do you get an error? "/echo 0 ..." will echo <whatever> in colour0 which is white, usually. Is it possible that is your "spaces"? If the script returned nothing at all, you should see "* /echo: insufficient parameters" I cannot test the snippet as I have no .WMA files at all
|
|
|
|
Joined: Feb 2003
Posts: 143
Vogon poet
|
OP
Vogon poet
Joined: Feb 2003
Posts: 143 |
it returns nothing but yet it gives no error. I tried it with /say /echo /blah and nothing happens. no error no nothing.
We don't just write the scripts, we put them to the test! (ScriptBusters)
|
|
|
|
Joined: Dec 2002
Posts: 332
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 332 |
ok i see what you are saying however i was refering to the $inwave identifier with either of these Properties: fname, pos, length $sound wasnt specified and i also am still using V 5.91 but anyhow i hope it works out
|
|
|
|
Joined: Dec 2002
Posts: 699
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 699 |
OK I made a couple of .wma files and tested that snippet out, it does work here. Try this.. ; Usage:
; /testwma
; /testwma <path\filename>
testwma {
if !$isfile($1-) { var %a = $+(",$$sfile(*.wma,Choose a WMA file),") }
else var %a = $+(",$remove($1-,"),")
splay %a
echo 2 -s * Info for: $nopath($insong.fname)
echo 3 -s * $!WMA: Length: $duration($wma(%a).length) Sample: $wma(%a).sample Mode: $wma(%a).mode $&
Bitrate: $wma(%a).bitrate
echo 4 -s * $!insong: Length: $duration($calc($insong.length /1000)) POS = $insong.pos
} * Info for: Shaggy - Shake Shake Shake.wma* $WMA: Length: 3mins 23secs Sample: 44 Mode: stereo Bitrate: 192* $insong: Length: 3mins 27secs POS = 228Well,. $wma().length is a little off, but theres $insong.length too.
|
|
|
|
Joined: Feb 2003
Posts: 143
Vogon poet
|
OP
Vogon poet
Joined: Feb 2003
Posts: 143 |
That's cool. I'll try it back to my house. Continue sending me idea's if you can so I can get this script done.
We don't just write the scripts, we put them to the test! (ScriptBusters)
|
|
|
|
Joined: Feb 2003
Posts: 143
Vogon poet
|
OP
Vogon poet
Joined: Feb 2003
Posts: 143 |
I get this when I try it.
* Info for: 02 Cold.wma * $WMA: Length: Sample: Mode: Bitrate: * $insong: Length: 3mins 16secs POS = 8
We don't just write the scripts, we put them to the test! (ScriptBusters)
|
|
|
|
|