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 | + | 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> | |
- | + | ||
- | + | ||
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 | |
- | + | </syntaxhighlight> | |
On the PC run | On the PC run | ||
- | + | <syntaxhighlight lang="bash"> | |
- | + | 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 | |
- | + | </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 | |
+ | </syntaxhighlight> | ||
<br>'''PC''' | <br>'''PC''' | ||
- | + | <syntaxhighlight lang="bash"> | |
- | + | gst-launch udpsrc port=5000 ! smokedec ! autovideosink | |
- | + | </syntaxhighlight> | |
- | + | ||
- | + | ||
- | < | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
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.