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 52: Line 52:
$ apt-get install gstreamer-tools
$ apt-get install gstreamer-tools
-
 
-
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:
Line 66: Line 64:
On the N900 the command you want to run is:
On the N900 the command you want to run is:
-
$ 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
On the PC run
On the PC run
-
$ gst-launch tcpclientsrc host=192.168.1.105 port=5000  ! jpegdec ! autovideosink
+
$gst-launch tcpclientsrc host=192.168.1.105 port=5000  ! jpegdec ! autovideosink
The below also works
The below also works
<br>'''N900'''
<br>'''N900'''
-
$ 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
Another example using a different encoder/decoder and udp
Another example using a different encoder/decoder and udp
<br>'''N900'''
<br>'''N900'''
-
$ 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
<br>'''PC'''
<br>'''PC'''
-
$ gst-launch udpsrc port=5000 ! smokedec ! autovideosink
+
$ gst-launch udpsrc port=5000 ! smokedec ! autovideosink
-
 
+
-
 
+
-
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)