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?

Tutorial details
DifficultyEasy (rss)
Root privilegesNo
Requirementsvlc or mencoder
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.

ADVERTISEMENTS

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://1.2.3.4/bar.wmv -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://1.2.3.4/foo/bar --sout file/avi:output.avi
$ vlc mms://1.2.3.4/foo/bar --sout=file/ps:output.mpg

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
3 comments… add one
  • brian t Aug 28, 2012 @ 23:11

    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.

  • rmil Apr 5, 2013 @ 23:26

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

  • Erum Nazir Jan 19, 2017 @ 6:13

    how can i save my recordings from crush linux system ?

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.