You are not logged in.

#1 2010-08-13 00:16:13

Dj_kourampies
Member
From: Greece
Registered: 2005-11-02
Posts: 32
Website

Ripping Windows Media Audio Streams (mms://)

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

#2 2010-08-13 00:38:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Ripping Windows Media Audio Streams (mms://)

Offline

#3 2010-08-13 00:40:12

my0pic
Member
From: Melbourne, Australia
Registered: 2008-05-23
Posts: 206

Re: Ripping Windows Media Audio Streams (mms://)

You can use mplayer. try,

mplayer -dumpfile <OUTPUTFILE> -dumpstream mms://

Offline

#4 2010-08-13 00:47:26

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: Ripping Windows Media Audio Streams (mms://)

Check out mimms in the AUR, I used it once and worked perfectly

Offline

#5 2010-08-13 01:20:10

Dj_kourampies
Member
From: Greece
Registered: 2005-11-02
Posts: 32
Website

Re: Ripping Windows Media Audio Streams (mms://)

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

#6 2010-08-13 01:29:52

my0pic
Member
From: Melbourne, Australia
Registered: 2008-05-23
Posts: 206

Re: Ripping Windows Media Audio Streams (mms://)

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

#7 2010-08-13 01:33:40

Dj_kourampies
Member
From: Greece
Registered: 2005-11-02
Posts: 32
Website

Re: Ripping Windows Media Audio Streams (mms://)

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

#8 2010-09-03 21:53:17

Dj_kourampies
Member
From: Greece
Registered: 2005-11-02
Posts: 32
Website

Re: Ripping Windows Media Audio Streams (mms://)

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

#9 2010-09-04 04:53:16

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Ripping Windows Media Audio Streams (mms://)

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

Offline

Board footer

Powered by FluxBB