<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=86.152.162.24</id>
	<title>Maemo Wiki Mirror - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=86.152.162.24"/>
	<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php/Special:Contributions/86.152.162.24"/>
	<updated>2026-04-22T05:52:34Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Streaming_video_from_built-in_webcam&amp;diff=37888</id>
		<title>Streaming video from built-in webcam</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Streaming_video_from_built-in_webcam&amp;diff=37888"/>
		<updated>2009-02-15T14:35:03Z</updated>

		<summary type="html">&lt;p&gt;86.152.162.24: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Midgard article}}&lt;br /&gt;
&lt;br /&gt;
It is possible to use the N800 camera as a source of streaming video. This was originally described [https://maemo.org/community/wiki/howtostreamvideo/ here], but the referenced example has an error which prevents it working.&lt;br /&gt;
&lt;br /&gt;
This note describes how to stream video from the platform to an RTP sink, for example the [https://maemo.org/community/wiki/howtostreamvideo/ vlc] media player.&lt;br /&gt;
&lt;br /&gt;
First, you must install the &#039;&#039;&#039;gstreamer-tools&#039;&#039;&#039; package from the diablo repo on repository.maemo.org.&lt;br /&gt;
&lt;br /&gt;
# On the N800, the following script will stream video from the camera. Here, 172.31.0.244 is the Linux box with VLC installed, and 172.31.0.245 is the N800. I call this script &amp;lt;tt&amp;gt;~/bin/rtpstream.sh&amp;lt;/tt&amp;gt;.&amp;lt;br/&amp;gt; &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;#!/bin/sh&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt; &lt;br /&gt;
&amp;lt;tt&amp;gt;VPORT=5434&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;tt&amp;gt;APORT=5432&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;tt&amp;gt;HOST=${1:-172.31.0.244}&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt; &lt;br /&gt;
&amp;lt;tt&amp;gt;gst-launch-0.10 v4l2src ! \&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;tt&amp;gt;video/x-raw-yuv,width=176,height=144,framerate=\(fraction\)15/1 ! \&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;tt&amp;gt;hantro4200enc stream-type=1 profile-and-level=1001 ! \&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;tt&amp;gt;video/x-h263,framerate=\(fraction\)15/1 ! rtph263ppay mtu=1438 ! \&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;tt&amp;gt;udpsink host=$HOST port=$VPORT dsppcmsrc ! queue ! \&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;tt&amp;gt;audio/x-raw-int,channels=1,rate=8000 ! mulawenc ! rtppcmupay mtu=1438 ! \&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;      udpsink host=$HOST port=$APORT&lt;br /&gt;
# On the Linux box, the sample .sdp file from [http://web.media.mit.edu/%7Elifton/snippets/n800_to_sl/ the original article], with the address of our VLC player, saved as a file i.e. &amp;lt;tt&amp;gt;/tmp/n800.sdp&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;tt&amp;gt;v=0&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;tt&amp;gt;o=- 37 614155991 IN IP4 127.0.0.0&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;tt&amp;gt;s=QuickTime&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;tt&amp;gt;t=0 0&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;tt&amp;gt;a=range:npt=now-&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;tt&amp;gt;m=audio 5432 RTP/AVP 0&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;tt&amp;gt;c=IN IP4 172.31.0.245&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;tt&amp;gt;b=AS:63&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;tt&amp;gt;m=video 5434 RTP/AVP 96&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;tt&amp;gt;c=IN IP4 172.31.0.245&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;tt&amp;gt;a=rtpmap:96 H263-2000/90000&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;tt&amp;gt;a=fmtp:96 &amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt; &amp;lt;tt&amp;gt;a=cliprect:0,0,144,176&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;  a=framesize:96 176-144&lt;br /&gt;
# On the N800, pop out the camera and run:&amp;lt;br/&amp;gt;  $ ~/bin/rtpstream.sh # assume on PATH, +x etc.&lt;br /&gt;
# On Linux box (note VLC runs on other platforms as well):&amp;lt;br/&amp;gt;  $ vlc /tmp/n800.sdp&lt;br /&gt;
# Enjoy streaming video (and sound) from the N800.&lt;br /&gt;
&lt;br /&gt;
Thanks to [http://web.media.mit.edu/%7Elifton/snippets/n800_to_sl/ Josh Lifton] for the original leg wor&lt;br /&gt;
&lt;br /&gt;
On a N800, to make the image vertically flip automatically when the camera&#039;s pointing backwards (so it&#039;s not upside-down), change the source name from &amp;quot;v4l2src&amp;quot; to &amp;quot;gconfv4l2src&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
To adjust the video encoding quality, have a look at the parameters described by entering &amp;quot;gst-inspect hantro4200enc&amp;quot; at a shell prompt.  Setting the &amp;quot;bit-rate&amp;quot; parameter to its maximum (515) and the &amp;quot;profile-and-level&amp;quot; parameter to 1007 produces a much better quality image.  Also, I suspect the &amp;quot;stream-type&amp;quot; parameter should be &amp;quot;5&amp;quot; (H263), not &amp;quot;1&amp;quot; (MPEG4 Video).&lt;br /&gt;
&lt;br /&gt;
[[Category:Users]]&lt;br /&gt;
[[Category:Midgard wiki]]&lt;br /&gt;
[[Category:Connectivity]]&lt;br /&gt;
[[Category:Media]]&lt;/div&gt;</summary>
		<author><name>86.152.162.24</name></author>
	</entry>
</feed>