Berkut
November 6th, 2005, 12:55 PM
Hi,
I was hoping if someone could help me with an easy script (I have almost no programming experience). I am recording an ogg stream to an mp3 file on my harddrive (so I can listen to it on my non-ogg-supported player).
ogg123 http://stream.ogg -d wav -f - | lame -h --abr 196 - test.mp3
What I would like to ask you, is how to make a script which will stop recordnig when the filesize of the file is 255 MB (the size of my players memory)?
I think it should be an IF command but I have no idea how it can check the size of the file.
TNX in advance
I was hoping if someone could help me with an easy script (I have almost no programming experience). I am recording an ogg stream to an mp3 file on my harddrive (so I can listen to it on my non-ogg-supported player).
ogg123 http://stream.ogg -d wav -f - | lame -h --abr 196 - test.mp3
What I would like to ask you, is how to make a script which will stop recordnig when the filesize of the file is 255 MB (the size of my players memory)?
I think it should be an IF command but I have no idea how it can check the size of the file.
TNX in advance