≡ Menu

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

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?

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

Share this tutorial on:
{ 2 comments… add one }
  • brian tAugust 28, 2012, 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.

  • rmilApril 5, 2013, 11:26 pm

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

Security: Are you a robot or human?

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">

   Tagged with: , , , , , ,