Linux / Unix: Record / Capture MMS Stream And Save To a File

by on August 27, 2012 · 2 comments· LAST UPDATED January 13, 2013


How do I capture capture mms-wmv (Microsoft Media Server) streams under Linux operating systems? How do I capture capture mms://ip/foo/bar streams under Unix like operating systems?

Tutorial details
DifficultyEasy (rss)
Root privilegesNo
Requirementsvlc or mencoder
Estimated completion timeN/A

Linux and Unix comes with various commands and apps that can be used to capture Microsoft Media Server (MMS) network streaming. MMS can be transported via UDP or TCP. The MMS default port is UDP/TCP 1755.

You can use mencoder command as follows to caputre mms stream:

mencoder mms://ip-address/foo.wmv -ovc copy -oac copy -o foo.avi
mencoder mms:// -ovc copy -oac copy -o bar.avi

Once done use mplayer command to play foo.avi:
$ mplayer foo.avi
VLC user can use the following command line option:
$ cvlc -vvv mms:// --sout file/avi:output.avi
$ vlc mms:// --sout=file/ps:output.mpg

Tweet itFacebook itG+ itDownload PDF versionFound an error/typo on this page?

{ 2 comments… read them below or add one }

1 brian t August 28, 2012 at 11:11 pm

I’ve used mplayer in a similar way with the “dumpstream” option: this is to record a MP3 stream:
mplayer -dumpstream -dumpfile .mp3 -cache 65536

Also, while this is going on, I found you can use VLC to play back the file as it’s being created – and thus listen to it almost live, just a few seconds behind. VLC recognises that the file is getting bigger and adjusts the playback accordingly.


2 rmil April 5, 2013 at 11:26 pm

Sometimes I noticed that instead of mms://ip you should use mmsh://ip and works well.


Leave a Comment

Tagged as: , , , , , ,

Previous Faq:

Next Faq: