<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/rss-style.xsl" type="text/xsl"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	     xmlns:dc="http://purl.org/dc/elements/1.1/"
	   xmlns:atom="http://www.w3.org/2005/Atom"
	     xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	  xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>mplayer &#8211; Terence Eden’s Blog</title>
	<atom:link href="https://shkspr.mobi/blog/tag/mplayer/feed/" rel="self" type="application/rss+xml" />
	<link>https://shkspr.mobi/blog</link>
	<description>Regular nonsense about tech and its effects 🙃</description>
	<lastBuildDate>Wed, 27 Nov 2024 07:40:03 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://shkspr.mobi/blog/wp-content/uploads/2023/07/cropped-avatar-32x32.jpeg</url>
	<title>mplayer &#8211; Terence Eden’s Blog</title>
	<link>https://shkspr.mobi/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title><![CDATA[Watching and Simultaneously Saving Video in mplayer - is it possible?]]></title>
		<link>https://shkspr.mobi/blog/2011/11/watching-and-simultaneously-saving-video-in-mplayer/</link>
					<comments>https://shkspr.mobi/blog/2011/11/watching-and-simultaneously-saving-video-in-mplayer/#comments</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Sun, 27 Nov 2011 09:00:41 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[camera]]></category>
		<category><![CDATA[dump]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[save]]></category>
		<category><![CDATA[stream]]></category>
		<category><![CDATA[watch]]></category>
		<category><![CDATA[ycam]]></category>
		<guid isPermaLink="false">http://shkspr.mobi/blog/?p=4841</guid>

					<description><![CDATA[This is a question I&#039;ve posed in the Ubuntu forums, but I haven&#039;t found the answer yet.  I&#039;ve got a great little IP security camera - the Y-Cam. It&#039;s Internet accessible, so it can email me photos of any suspicious behaviour.  It will also stream video and audio to a number of devices - including mobiles.  Under Linux, it&#039;s very easy to get the video and audio via mplayer.  mplayer…]]></description>
										<content:encoded><![CDATA[<p>This is <a href="http://ubuntuforums.org/showthread.php?t=1886048">a question I've posed in the Ubuntu forums</a>, but I haven't found the answer yet.</p>

<p>I've got a great little IP security camera - the <a href="https://shkspr.mobi/blog/tag/ycam/">Y-Cam</a>. It's Internet accessible, so it can email me photos of any suspicious behaviour.  It will also stream video and audio to a number of devices - including mobiles.</p>

<p>Under Linux, it's very easy to get the video and audio via mplayer.</p>

<pre>mplayer http://username:password@example.com/stream.asf</pre>

<p>And we get this rather spiffy video playing.
<img src="https://shkspr.mobi/blog/wp-content/uploads/2011/11/ycam-stream-mplayer.jpg" alt="ycam stream mplayer" title="ycam stream mplayer" width="512" height="202" class="aligncenter size-full wp-image-4842"></p>

<p>In fact, there are a number of streams available (depending on camera), including RTSP and 3GP.  The ASF stream seems the most Linux friendly.</p>

<p>It's also possible to save the video to a file - so if you catch a miscreant in the act of pilfering, you have video and audio evidence.</p>

<pre>mplayer http://user:password@example.com/stream.asf
    -dumpstream -dumpfile ycam.asf</pre>

<p>You now have a file which can be played back.</p>

<p>What I can't seem to work out is how to do the two together.  I want a command which will show me the video and <em>at the same time</em> save it to disk.</p>

<p>So, fearless Internet commentors - any helpful suggestions?</p>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=4841&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2011/11/watching-and-simultaneously-saving-video-in-mplayer/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		<enclosure url="http://example.com/stream.asf" length="648" type="video/x-ms-asf" />

			</item>
	</channel>
</rss>
