Editing Streaming video from built-in webcam

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
-
It is possible to use the [[Nokia N800|N800]] and [[Nokia N900|N900]] camera as a source of streaming video.  
+
It is possible to use the [[Nokia N800|N800]] and N900 camera as a source of streaming video.  
== N800 ==
== N800 ==
Line 50: Line 50:
The instructions for the N900 are very similar to the N800.
The instructions for the N900 are very similar to the N800.
First install gstreamer-tools.
First install gstreamer-tools.
-
 
+
<syntaxhighlight lang="bash">
$ apt-get install gstreamer-tools
$ apt-get install gstreamer-tools
-
 
+
</syntaxhighlight>
-
Note: on PC you might need to replace gst-launch by gst-launch-0.10 in the examples below
+
-
 
+
To access the back camera use:
To access the back camera use:
<br>''/dev/video0''
<br>''/dev/video0''
Line 65: Line 63:
On the N900 the command you want to run is:
On the N900 the command you want to run is:
-
 
+
<syntaxhighlight lang="bash">
-
$ 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
+
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
-
 
+
</syntaxhighlight>
On the PC run
On the PC run
-
 
+
<syntaxhighlight lang="bash">
-
$ gst-launch tcpclientsrc host=192.168.1.105 port=5000  ! jpegdec ! autovideosink
+
gst-launch tcpclientsrc host=192.168.1.105 port=5000  ! jpegdec ! autovideosink
-
 
+
</syntaxhighlight>
The below also works
The below also works
<br>'''N900'''
<br>'''N900'''
-
 
+
<syntaxhighlight lang="bash">
-
$ 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
+
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
-
 
+
</syntaxhighlight>
Another example using a different encoder/decoder and udp
Another example using a different encoder/decoder and udp
<br>'''N900'''
<br>'''N900'''
-
 
+
<syntaxhighlight lang="bash">
-
$ gst-launch v4l2src device=/dev/video0 ! videoscale ! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! smokeenc ! udpsink host=192.168.1.101 port=5000
+
gst-launch v4l2src device=/dev/video0 ! videoscale ! video/x-raw-yuv,width=320,height=240  
-
 
+
! ffmpegcolorspace ! smokeenc ! udpsink host=192.168.1.101 port=5000
 +
</syntaxhighlight>
<br>'''PC'''
<br>'''PC'''
-
 
+
<syntaxhighlight lang="bash">
-
$ gst-launch udpsrc port=5000 ! smokedec ! autovideosink
+
gst-launch udpsrc port=5000 ! smokedec ! autovideosink
-
 
+
</syntaxhighlight>
-
 
+
-
Another example using omap3cam driver
+
-
<br>'''N900'''
+
-
 
+
-
$ gst-launch-0.10 v4l2camsrc device=/dev/video0 driver-name=omap3cam ! videoscale ! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! jpegenc ! tcpserversink host=192.168.1.101 port=5000
+
-
 
+
-
<br>'''PC'''
+
-
 
+
-
$ gst-launch tcpclientsrc host=192.168.1.105 port=5000  ! jpegdec ! autovideosink
+
-
 
+
-
 
+
There are many ways to skin this particular cat. Recommendations are to look at [http://www.gstreamer.net/ gstreamer] and familiarise yourself.
There are many ways to skin this particular cat. Recommendations are to look at [http://www.gstreamer.net/ gstreamer] and familiarise yourself.

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)