<?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=94.168.168.61</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=94.168.168.61"/>
	<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php/Special:Contributions/94.168.168.61"/>
	<updated>2026-04-22T00:53:46Z</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=37880</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=37880"/>
		<updated>2010-12-21T14:11:32Z</updated>

		<summary type="html">&lt;p&gt;94.168.168.61: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;It is possible to use the [[Nokia N800|N800]] and N900 camera as a source of streaming video. &lt;br /&gt;
&lt;br /&gt;
== N800 ==&lt;br /&gt;
&lt;br /&gt;
This was originally described [https://maemo.org/community/wiki/howtostreamvideo/ here], but the referenced example has an error which prevents it from working.&lt;br /&gt;
&lt;br /&gt;
This note describes how to stream video from the platform to an RTP sink, for example the [[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;code&amp;gt;~/bin/rtpstream.sh&amp;lt;/code&amp;gt;.&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 VPORT=5434&lt;br /&gt;
 APORT=5432&lt;br /&gt;
 HOST=${1:-172.31.0.244}&lt;br /&gt;
 gst-launch-0.10 v4l2src ! video/x-raw-yuv,width=176,height=144,framerate=\(fraction\)15/1 ! hantro4200enc stream-type=1 profile-and-level=1001 ! video/x-h263,framerate=\(fraction\)15/1 ! rtph263ppay mtu=1438 ! udpsink host=$HOST port=$VPORT dsppcmsrc ! queue ! audio/x-raw-int,channels=1,rate=8000 ! mulawenc ! rtppcmupay mtu=1438 ! udpsink host=$HOST port=$APORT&lt;br /&gt;
&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;code&amp;gt;/tmp/n800.sdp&amp;lt;/code&amp;gt;&lt;br /&gt;
 v=0&lt;br /&gt;
 o=- 37 614155991 IN IP4 127.0.0.0&lt;br /&gt;
 s=QuickTime&lt;br /&gt;
 t=0 0&lt;br /&gt;
 a=range:npt=now-&lt;br /&gt;
 m=audio 5432 RTP/AVP 0&lt;br /&gt;
 c=IN IP4 172.31.0.245&lt;br /&gt;
 b=AS:63&lt;br /&gt;
 m=video 5434 RTP/AVP 96&lt;br /&gt;
 c=IN IP4 172.31.0.245&lt;br /&gt;
 a=rtpmap:96 H263-2000/90000&lt;br /&gt;
 a=fmtp:96&lt;br /&gt;
 a=cliprect:0,0,144,176&lt;br /&gt;
 a=framesize:96 176-144&lt;br /&gt;
* On the N800, pop out the camera and run:&lt;br /&gt;
 $ ~/bin/rtpstream.sh &lt;br /&gt;
assume on PATH, +x etc.&lt;br /&gt;
* On Linux box (note VLC runs on other platforms as well):&lt;br /&gt;
 $ vlc /tmp/n800.sdp&lt;br /&gt;
* Enjoy streaming video (and sound) from the N800.&lt;br /&gt;
&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;
&lt;br /&gt;
== N900 ==&lt;br /&gt;
&lt;br /&gt;
The instructions for the N900 are very similar to the N800.&lt;br /&gt;
First install gstreamer-tools.&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
apt-get install gstreamer-tools&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
To access the back camera use:&lt;br /&gt;
&#039;&#039;/dev/video0&#039;&#039;&lt;br /&gt;
for the front&lt;br /&gt;
&#039;&#039;/dev/video1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In the example below the IP for the two devices are as follows&lt;br /&gt;
*PC 	IP 192.168.1.101&lt;br /&gt;
*N900 	IP 192.168.1.105&lt;br /&gt;
&lt;br /&gt;
On the N900 the command you want to run is:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
gst-launch v4l2src device=/dev/video0 ! videoscale! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! jpegenc ! tcpserversink host=192.168.1.101 port=5000&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On the PC run&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
gst-launch tcpclientsrc host=192.168.1.105 port=5000  ! jpegdec ! autovideosink&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
The below also works&lt;br /&gt;
*N900&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
gst-launch v4l2camsrc device=/dev/video0 ! videoscale! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! jpegenc ! tcpserversink host=192.168.1.101 port=5000&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Another example using a different encoder/decoder and udp&lt;br /&gt;
* N900&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
gst-launch v4l2src device=/dev/video0 ! videoscale ! video/x-raw-yuv,width=320,height=240 &lt;br /&gt;
! ffmpegcolorspace ! smokeenc ! udpsink host=192.168.1.101 port=5000&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
* PC&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
gst-launch udpsrc port=5000 ! smokedec ! autovideosink&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
There are many ways to skin this particular cat. Recommendations are to look at [http://www.gstreamer.net/ gstreamer] and familiarise yourself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To stream from the N900 to VLC follow these [http://blog.pclewis.com/2010/02/streaming-nokia-n900-camera-to-vlc/ instructions]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# For the future&lt;br /&gt;
#vloopback&lt;br /&gt;
http://talk.maemo.org/showthread.php?t=26288&lt;br /&gt;
http://tektipsentriks.blogspot.com/2010/05/how-to-install-vloopback-on-ubuntu.html&lt;br /&gt;
&lt;br /&gt;
#Webcam threads&lt;br /&gt;
http://talk.maemo.org/showthread.php?t=31567&lt;br /&gt;
http://talk.maemo.org/showthread.php?t=46046&lt;br /&gt;
&lt;br /&gt;
# Flumotion mention&lt;br /&gt;
http://talk.maemo.org/showthread.php?t=31567&amp;amp;page=7&lt;br /&gt;
extras-devel &lt;br /&gt;
http://maemo.org/packages/package_instance/view/fremantle_extras-devel_free_i386/flumotion/0.7.0.1-1maemo4/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Streaming over ssh N900 ==&lt;br /&gt;
&lt;br /&gt;
Here is an alternative way of streaming video on the [[Nokia N900|N900]] over ssh.&lt;br /&gt;
&lt;br /&gt;
First get ssh to do X11 forwarding by installing xauth as follows:&lt;br /&gt;
&lt;br /&gt;
# Install libxmuu1 (needed by xauth) by &amp;quot;apt-get install libxmuu1&amp;quot;&lt;br /&gt;
# Install the xauth from https://bugs.maemo.org/show_bug.cgi?id=2494&lt;br /&gt;
&lt;br /&gt;
Now ssh to your N900 with the flag &amp;quot;-X&amp;quot; and then give the command:&lt;br /&gt;
&lt;br /&gt;
  gst-launch-0.10 v4l2src \&lt;br /&gt;
  ! videoscale ! video/x-raw-yuv,width=320,height=240 \&lt;br /&gt;
  ! xvimagesink&lt;br /&gt;
&lt;br /&gt;
A 320x240 video window should now popup on your desktop.&lt;br /&gt;
&lt;br /&gt;
[[Category:Connectivity]]&lt;br /&gt;
[[Category:Media]]&lt;br /&gt;
[[Category:Power users]]&lt;/div&gt;</summary>
		<author><name>94.168.168.61</name></author>
	</entry>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Streaming_video_from_built-in_webcam&amp;diff=37881</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=37881"/>
		<updated>2010-12-21T14:09:20Z</updated>

		<summary type="html">&lt;p&gt;94.168.168.61: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;It is possible to use the [[Nokia N800|N800]] and N900 camera as a source of streaming video. &lt;br /&gt;
&lt;br /&gt;
== N800 ==&lt;br /&gt;
&lt;br /&gt;
This was originally described [https://maemo.org/community/wiki/howtostreamvideo/ here], but the referenced example has an error which prevents it from working.&lt;br /&gt;
&lt;br /&gt;
This note describes how to stream video from the platform to an RTP sink, for example the [[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;code&amp;gt;~/bin/rtpstream.sh&amp;lt;/code&amp;gt;.&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 VPORT=5434&lt;br /&gt;
 APORT=5432&lt;br /&gt;
 HOST=${1:-172.31.0.244}&lt;br /&gt;
 gst-launch-0.10 v4l2src ! video/x-raw-yuv,width=176,height=144,framerate=\(fraction\)15/1 ! hantro4200enc stream-type=1 profile-and-level=1001 ! video/x-h263,framerate=\(fraction\)15/1 ! rtph263ppay mtu=1438 ! udpsink host=$HOST port=$VPORT dsppcmsrc ! queue ! audio/x-raw-int,channels=1,rate=8000 ! mulawenc ! rtppcmupay mtu=1438 ! udpsink host=$HOST port=$APORT&lt;br /&gt;
&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;code&amp;gt;/tmp/n800.sdp&amp;lt;/code&amp;gt;&lt;br /&gt;
 v=0&lt;br /&gt;
 o=- 37 614155991 IN IP4 127.0.0.0&lt;br /&gt;
 s=QuickTime&lt;br /&gt;
 t=0 0&lt;br /&gt;
 a=range:npt=now-&lt;br /&gt;
 m=audio 5432 RTP/AVP 0&lt;br /&gt;
 c=IN IP4 172.31.0.245&lt;br /&gt;
 b=AS:63&lt;br /&gt;
 m=video 5434 RTP/AVP 96&lt;br /&gt;
 c=IN IP4 172.31.0.245&lt;br /&gt;
 a=rtpmap:96 H263-2000/90000&lt;br /&gt;
 a=fmtp:96&lt;br /&gt;
 a=cliprect:0,0,144,176&lt;br /&gt;
 a=framesize:96 176-144&lt;br /&gt;
* On the N800, pop out the camera and run:&lt;br /&gt;
 $ ~/bin/rtpstream.sh &lt;br /&gt;
assume on PATH, +x etc.&lt;br /&gt;
* On Linux box (note VLC runs on other platforms as well):&lt;br /&gt;
 $ vlc /tmp/n800.sdp&lt;br /&gt;
* Enjoy streaming video (and sound) from the N800.&lt;br /&gt;
&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;
&lt;br /&gt;
== N900 ==&lt;br /&gt;
&lt;br /&gt;
The instructions for the N900 are very similar to the N800.&lt;br /&gt;
First install gstreamer-tools.&lt;br /&gt;
&lt;br /&gt;
apt-get install gstreamer-tools&lt;br /&gt;
&lt;br /&gt;
To access the back camera use:&lt;br /&gt;
/dev/video0&lt;br /&gt;
for the front&lt;br /&gt;
/dev/video1&lt;br /&gt;
&lt;br /&gt;
In the example below the IP for the two devices are as follows&lt;br /&gt;
*PC 	IP 192.168.1.101&lt;br /&gt;
*N900 	IP 192.168.1.105&lt;br /&gt;
&lt;br /&gt;
On the N900 the command you want to run is:&lt;br /&gt;
gst-launch v4l2src device=/dev/video0 ! videoscale! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! jpegenc ! tcpserversink host=192.168.1.101 port=5000&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
On the PC run&lt;br /&gt;
gst-launch tcpclientsrc host=192.168.1.105 port=5000  ! jpegdec ! autovideosink&lt;br /&gt;
&lt;br /&gt;
The below also works&lt;br /&gt;
*N900&lt;br /&gt;
gst-launch v4l2camsrc device=/dev/video0 ! videoscale! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! jpegenc ! tcpserversink host=192.168.1.101 port=5000&lt;br /&gt;
&lt;br /&gt;
Another example using a different encoder/decoder and udp&lt;br /&gt;
* N900&lt;br /&gt;
gst-launch v4l2src device=/dev/video0 ! videoscale ! video/x-raw-yuv,width=320,height=240 &lt;br /&gt;
! ffmpegcolorspace ! smokeenc ! udpsink host=192.168.1.101 port=5000&lt;br /&gt;
&lt;br /&gt;
* PC&lt;br /&gt;
gst-launch udpsrc port=5000 ! smokedec ! autovideosink&lt;br /&gt;
&lt;br /&gt;
There are many ways to skin this particular cat. Recommendations are to look at [http://www.gstreamer.net/ gstreamer] and familiarise yourself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To stream from the N900 to VLC follow these [http://blog.pclewis.com/2010/02/streaming-nokia-n900-camera-to-vlc/ instructions]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# For the future&lt;br /&gt;
#vloopback&lt;br /&gt;
http://talk.maemo.org/showthread.php?t=26288&lt;br /&gt;
http://tektipsentriks.blogspot.com/2010/05/how-to-install-vloopback-on-ubuntu.html&lt;br /&gt;
&lt;br /&gt;
#Webcam threads&lt;br /&gt;
http://talk.maemo.org/showthread.php?t=31567&lt;br /&gt;
http://talk.maemo.org/showthread.php?t=46046&lt;br /&gt;
&lt;br /&gt;
# Flumotion mention&lt;br /&gt;
http://talk.maemo.org/showthread.php?t=31567&amp;amp;page=7&lt;br /&gt;
extras-devel &lt;br /&gt;
http://maemo.org/packages/package_instance/view/fremantle_extras-devel_free_i386/flumotion/0.7.0.1-1maemo4/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Streaming over ssh N900 ==&lt;br /&gt;
&lt;br /&gt;
Here is an alternative way of streaming video on the [[Nokia N900|N900]] over ssh.&lt;br /&gt;
&lt;br /&gt;
First get ssh to do X11 forwarding by installing xauth as follows:&lt;br /&gt;
&lt;br /&gt;
# Install libxmuu1 (needed by xauth) by &amp;quot;apt-get install libxmuu1&amp;quot;&lt;br /&gt;
# Install the xauth from https://bugs.maemo.org/show_bug.cgi?id=2494&lt;br /&gt;
&lt;br /&gt;
Now ssh to your N900 with the flag &amp;quot;-X&amp;quot; and then give the command:&lt;br /&gt;
&lt;br /&gt;
  gst-launch-0.10 v4l2src \&lt;br /&gt;
  ! videoscale ! video/x-raw-yuv,width=320,height=240 \&lt;br /&gt;
  ! xvimagesink&lt;br /&gt;
&lt;br /&gt;
A 320x240 video window should now popup on your desktop.&lt;br /&gt;
&lt;br /&gt;
[[Category:Connectivity]]&lt;br /&gt;
[[Category:Media]]&lt;br /&gt;
[[Category:Power users]]&lt;/div&gt;</summary>
		<author><name>94.168.168.61</name></author>
	</entry>
</feed>