The Following User Says Thank You to tetris11_ For This Useful Post: | ||
![]() |
2011-03-22
, 18:06
|
Posts: 1,378 |
Thanked: 1,604 times |
Joined on Jun 2010
@ Göteborg, Sweden
|
#172
|
A major advantage using UDP is that you dont have to define which address the signal is coming from, just which port. So maybe that's a starting point right there....
![]() |
2011-03-22
, 19:24
|
Posts: 309 |
Thanked: 519 times |
Joined on Oct 2010
|
#173
|
![]() |
2011-03-22
, 23:23
|
Posts: 356 |
Thanked: 172 times |
Joined on Jan 2010
@ Canada
|
#174
|
@ Bingley Joe: are you on Windows? I ask because the "xout" mode uses tcp (right tetrix_11?) and that might be the one to try. But Windows ... well there are gstreamer binaries one could install but 'nix systems are way easier for this.
Routers can route internally what appears to be externally addressed traffic. Mine does.
![]() |
2011-03-22
, 23:32
|
Posts: 46 |
Thanked: 22 times |
Joined on May 2008
@ London
|
#175
|
The Following User Says Thank You to *the_newbie* For This Useful Post: | ||
![]() |
2011-03-24
, 02:16
|
Posts: 1,378 |
Thanked: 1,604 times |
Joined on Jun 2010
@ Göteborg, Sweden
|
#176
|
![]() |
2011-03-24
, 19:34
|
Posts: 1,378 |
Thanked: 1,604 times |
Joined on Jun 2010
@ Göteborg, Sweden
|
#178
|
![]() |
2011-03-24
, 22:02
|
Posts: 309 |
Thanked: 519 times |
Joined on Oct 2010
|
#179
|
![]() |
2011-03-27
, 11:35
|
Posts: 309 |
Thanked: 519 times |
Joined on Oct 2010
|
#180
|
The Following User Says Thank You to tetris11_ For This Useful Post: | ||
![]() |
Tags |
gstreamer, lets rock, video stream |
Thread Tools | |
|
Xout:
gst-launch-0.10 v4l2src device=/dev/video ! videoscale ! video/x-raw-yuv,width="+width+",height="+height+" ! ffmpegcolorspace ! jpegenc ! tcpserversink host="+host+" port="+port+"
VLC:
gst-launch-0.10 v4l2src device=/dev/video ! ! videoscale ! video/x-raw-yuv,width="+width+",height="+height+" ! dsph264enc ! rtph264pay ! udpsinkhost="+host+" port="+port
Webcam:
gst-launch-0.10 v4l2src device=/dev/video ! videoscale ! video/x-raw-yuv,width="+width+",height="+height+" ! ffmpegcolorspace ! smokeenc ! udpsink host="+host+" port="+port
So for the record:
Xout uses mjpeg codecs and tcp protocols
VLC uses h264 codecs (which is why quality is worse) + UDP
Webcam uses smoke encoding (gstreamer only) + UDP
Though technically you could configure Xout or Webcam to use the same codecs or the same protocols....
(I just didn't because I wasnt sure whether smoke was better than mjpeg...)
===================================
As for receiving:
Xout:
gst-launch-0.10 tcpclientsrc host="+localip+" port="+port+" ! jpegdec ! autovideosink"
Webcam:
gst-launch-0.10 udpsrc port="+port1+" ! smokedec ! ffmpegcolorspace ! v4l2loopback device=/dev/video0
A major advantage using UDP is that you dont have to define which address the signal is coming from, just which port. So maybe that's a starting point right there....