View Single Post
Posts: 22 | Thanked: 1 time | Joined on Sep 2009 @ Belgium
#9
Originally Posted by Renkon View Post
@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
(where xxx.xxx.xxx.xxx is the IP address of your computer and /dev/video1 is the front camera; video0 is back camera)

Note that this is v4l2src with an lowercase L, NOT 412

On your computer create the following .txt file:
Code:
v=0
m=video 5434 RTP/AVP 96
c=IN IP4 xxx.xxx.xxx.xxx
a=rtpmap:96 H264/90000
(where xxx.xxx.xxx is the IP address of your N900)

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.
I'm getting some errors while following your tutorial though

Code:
Nokia-N900:~# gst-launch-0.10 v4l2src device=/dev/video0 ! dsph264enc ! rtph264pay ! udpsink host=78.21.100.x port=5434
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
create_node: dsp node create failed
sink_setcaps: dsp node creation failed
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2378): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 558532714 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
Nokia-N900:~#