View Single Post
Posts: 395 | Thanked: 509 times | Joined on Jan 2011 @ Brisbane, Australia
#94
I figured it out if anyone cares.

n900:
Code:
gst-launch v4l2camsrc device=/dev/video0 ! videoscale ! video/x-raw-yuv,width=640,height=480 ! ffmpegcolorspace ! dsph264enc ! rtph264pay ! udpsink host=192.168.2.14 port=1234
pc:
Code:
gst-launch-0.10 udpsrc port=1234 caps="application/x-rtp" ! rtph264depay ! ffdec_h264 ! ffmpegcolorspace ! v4l2loopback device=/dev/video0 sync=false
I get a small delay though and a weird green tint.
Can anyone else test it?

EDIT::
I changed it to use jpeg instead of h264, seems to a lot less delay, the tint is still there though.

n900:
Code:
gst-launch v4l2camsrc device=/dev/video0 ! videoscale ! video/x-raw-yuv,width=640,height=480 ! ffmpegcolorspace ! jpegenc ! rtpjpegpay ! udpsink host=192.168.2.14 port=1234
pc:
Code:
gst-launch-0.10 udpsrc port=1234 caps="application/x-rtp" ! rtpjpegdepay ! jpegdec ! ffmpegcolorspace ! v4l2loopback device=/dev/video0 sync=false

Last edited by azkay; 2011-02-04 at 22:32.
 

The Following 6 Users Say Thank You to azkay For This Useful Post: