You are not logged in.
I need to record on daily basis something froma windows media mms:// stream. Its audio only, and I think its encoded with WMA v9.
Is there any (preferably command line) on linux to record this? a cron background job would be ideal, because now im forced to keep a dedicated windows xp machine for this purpose.
Offline
Offline
You can use mplayer. try,
mplayer -dumpfile <OUTPUTFILE> -dumpstream mms://Offline
Check out mimms in the AUR, I used it once and worked perfectly
Offline
I think i tried mimms before some years for the same reason, but didnt work. I ll give it a shot again though.
Regarding mplayer, do you know what argument i need to use for it to record only 4 hours and not keep recording indefinitely?
(Maybe thats a stupid question and I just can configure on cron to stop running after 4 hours? I dont really know because rarely use linux)
Last edited by Dj_kourampies (2010-08-13 01:28:32)
Offline
I use this function in my .bashrc
recstop()
{
ps aux | grep -v grep | grep "[m]player -dumpfile" | awk '{printf $2" "}' | xargs kill -9
}so, sleep 240m && recstop in another terminal or easier if you use screen as well.
Offline
That seems interesting, I ll try it out with mplayer, since it played my stream right away with no complications. (This stream sometimes gets messed up even on Windows computers, the broadcasters must be using some weird encoding or something)
Thanks everybody for your replies.
Last edited by Dj_kourampies (2010-08-13 01:34:08)
Offline
I used mimms after all. mimms and mplayer both require rebulding asf headers, asf tools on windows does the job, and since im editing the asf file on windows anyway, thats not a problem.
Offline
You could try with FFmpeg. The -t switch (duration) is in seconds in this example. 'man ffmpeg' will give you the other option:
ffmpeg -t 14400 -i mms://<your_input_url> -acodec copy <your_output_filename>.wmaOffline