The Following 2 Users Say Thank You to shadow12 For This Useful Post: | ||
|
2010-02-27
, 17:04
|
Posts: 102 |
Thanked: 22 times |
Joined on Oct 2009
|
#2
|
The Following User Says Thank You to shadow12 For This Useful Post: | ||
|
2010-03-23
, 12:34
|
Posts: 4 |
Thanked: 9 times |
Joined on Jan 2010
@ Buenos Aires, Argentina
|
#3
|
#!/bin/sh gst-launch v4l2src device=/dev/video$1 ! videoscale! video/x-raw-yuv,width=320,height=240,framerate=30/1 ! ffmpegcolorspace ! jpegenc ! tcpserversink host=$2 port=5000
#!/bin/sh gst-launch tcpclientsrc host=$1 port=5000 ! jpegdec ! autovideosink
|
2010-03-23
, 17:03
|
|
Posts: 304 |
Thanked: 20 times |
Joined on Jan 2010
@ irvine
|
#4
|
|
2010-04-06
, 02:09
|
Posts: 2 |
Thanked: 1 time |
Joined on Apr 2010
|
#5
|
|
2010-09-16
, 17:18
|
Posts: 489 |
Thanked: 404 times |
Joined on Dec 2009
|
#6
|
|
2010-09-17
, 07:21
|
Posts: 992 |
Thanked: 738 times |
Joined on Jun 2010
@ Low Earth Orbit
|
#7
|
Why the hell it says "no element "multipartmux""??? Where can I find that one?
The Following User Says Thank You to kureyon For This Useful Post: | ||
|
2010-09-17
, 09:19
|
Posts: 86 |
Thanked: 28 times |
Joined on Jan 2010
@ That beer and prezels country in Europe -_-
|
#8
|
gst-launch-0.10 v4l2src device=/dev/video1 ! dsph264enc ! rtph264pay ! udpsink host=xxx.xxx.xxx.xxx port=5434
v=0 m=video 5434 RTP/AVP 96 c=IN IP4 xxx.xxx.xxx.xxx a=rtpmap:96 H264/90000
|
2010-10-17
, 15:26
|
Posts: 22 |
Thanked: 1 time |
Joined on Sep 2009
@ Belgium
|
#9
|
@torpedo48:
This will work and is tested with VLC:
On your N900 execute the following command:
(where xxx.xxx.xxx.xxx is the IP address of your computer and /dev/video1 is the front camera; video0 is back camera)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:
(where xxx.xxx.xxx is the IP address of your N900)Code:v=0 m=video 5434 RTP/AVP 96 c=IN IP4 xxx.xxx.xxx.xxx a=rtpmap:96 H264/90000
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.
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:~#
|
2010-10-17
, 17:53
|
|
Posts: 346 |
Thanked: 139 times |
Joined on Jan 2008
@ Houston Texas
|
#10
|
-- 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?