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 51: | Line 51: | ||
First install gstreamer-tools. | First install gstreamer-tools. | ||
- | + | apt-get install gstreamer-tools | |
- | + | ||
- | + | ||
To access the back camera use: | To access the back camera use: | ||
- | + | /dev/video0 | |
- | + | for the front | |
- | + | /dev/video1 | |
In the example below the IP for the two devices are as follows | In the example below the IP for the two devices are as follows | ||
- | *PC IP 192.168.1.101 | + | *PC IP 192.168.1.101 |
- | *N900 IP 192.168.1.105 | + | *N900 IP 192.168.1.105 |
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 | |
- | + | ||
On the PC run | On the PC run | ||
- | + | gst-launch tcpclientsrc host=192.168.1.105 port=5000 ! jpegdec ! autovideosink | |
- | + | ||
The below also works | The below also works | ||
- | + | *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 | |
- | + | ||
Another example using a different encoder/decoder and udp | Another example using a different encoder/decoder and udp | ||
- | + | * 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 | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
+ | * PC | ||
+ | gst-launch udpsrc port=5000 ! smokedec ! 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. | ||
Line 104: | Line 87: | ||
- | + | # For the future | |
- | + | #vloopback | |
http://talk.maemo.org/showthread.php?t=26288 | http://talk.maemo.org/showthread.php?t=26288 | ||
http://tektipsentriks.blogspot.com/2010/05/how-to-install-vloopback-on-ubuntu.html | http://tektipsentriks.blogspot.com/2010/05/how-to-install-vloopback-on-ubuntu.html | ||
- | + | #Webcam threads | |
http://talk.maemo.org/showthread.php?t=31567 | http://talk.maemo.org/showthread.php?t=31567 | ||
http://talk.maemo.org/showthread.php?t=46046 | http://talk.maemo.org/showthread.php?t=46046 | ||
- | + | # Flumotion mention | |
http://talk.maemo.org/showthread.php?t=31567&page=7 | http://talk.maemo.org/showthread.php?t=31567&page=7 | ||
extras-devel | extras-devel | ||
http://maemo.org/packages/package_instance/view/fremantle_extras-devel_free_i386/flumotion/0.7.0.1-1maemo4/ | http://maemo.org/packages/package_instance/view/fremantle_extras-devel_free_i386/flumotion/0.7.0.1-1maemo4/ | ||
+ | |||
== Streaming over ssh N900 == | == Streaming over ssh N900 == |
Learn more about Contributing to the wiki.