![]() |
Webcam N900 (gstreamer issues)
Ok so I installed gstreamer-tools and after a bit of messing I managed to get the N900 to stream to my ubuntu desktop using the following:
-- Server (N900) -- gst-launch v4l2src device=/dev/video0 ! videoscale! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! jpegenc ! multipartmux ! tcpserversink host=192.168.0.3 port=5000 -- Client (PC) -- gst-launch tcpclientsrc host=192.168.0.5 port=5000 ! multipartdemux ! jpegdec ! autovideosink It works but I am now trying to get it to play nice with VLC. I have had a look at : 1 and 2 But the encoder used, hantro4200enc, I do not have. Does any one know of a possible solution to stream to VLC? |
Re: Webcam N900 (gstreamer issues)
|
Re: Webcam N900 (gstreamer issues)
Hello every body.
I made to short scripts on bash in order to make the streaming easyer: First on the N900 with root privileges touch /usr/local/bin/stream-gst chmod +x /usr/local/stream-gst vi /usr/local/bin/stream-gst and there write (remeber to press "i" to edit and when you finish press ESC and then "x:" + ENTER ): Code: Code:
#!/bin/sh stream-gst 1 192.168.1.101 In this example you are transmiting from the /dev/video1 (Front Camera) to the computer 192.168.1.101 or You can also steam from the back camera to all the computers on your network by: stream-gst 0 192.168.1.255 Then on the PC (with linux and root privileges) touch /usr/local/bin/get-gst chmod +x /usr/local/get-gst vi /usr/local/bin/get-gs and there write (remeber to press "i" to edit and when you finish press ESC and then "x:" + ENTER ): Code: Code:
#!/bin/sh get-gst 192.168.1.102 It also work on the other way and direction. To see the web cam on yor PC form your N900. See you! Patricio Pd: Sorry for my english |
Re: Webcam N900 (gstreamer issues)
CAN YOU PACKAGE THAT .lol
|
Re: Webcam N900 (gstreamer issues)
If anyone has problems with the front camera not working, the front camera didn't work for me until I removed the ',framerate=30/1' part.
|
Re: Webcam N900 (gstreamer issues)
Hi everyone,
could any very gentle person out there explain me how to stream this damn camera to my PC? It seems that none of the procedure explained here works for me. Why the hell it says "no element "multipartmux""??? Where can I find that one? I'm a very noob in these kind of things, so please be patient with me. Thanks for reading, I really need that thing (for my job) so any help would be appreciated. |
Re: Webcam N900 (gstreamer issues)
Quote:
|
Re: Webcam N900 (gstreamer issues)
@torpedo48:
This will work and is tested with VLC: On your N900 execute the following command: Code:
gst-launch-0.10 v4l2src device=/dev/video1 ! dsph264enc ! rtph264pay ! udpsink host=xxx.xxx.xxx.xxx port=5434 Note that this is v4l2src with an lowercase L, NOT 412 On your computer create the following .txt file: Code:
v=0 Rename the file to some_cool_name_for_streaming.sdp and open it with VideoLAN player for greater justice. Try looking for the other posts to add additional parameters to gstreamer. This is video only, additional audio is also available, but not used by me so I can't say anything to that. Best regards, /me PS: Your N900 could get heated up and will drain battery somewhat fast, so if you intend to use this longer, please attach the charger. |
Re: Webcam N900 (gstreamer issues)
Quote:
Code:
Nokia-N900:~# gst-launch-0.10 v4l2src device=/dev/video0 ! dsph264enc ! rtph264pay ! udpsink host=78.21.100.x port=5434 |
Re: Webcam N900 (gstreamer issues)
^ I have the same problem.
|
All times are GMT. The time now is 14:54. |
vBulletin® Version 3.8.8