I'm relatively new to the Raspberry and Linux and this is my first post here.
Yesterday I finally started experimenting with RPi and in particular, with the video streaming.
Firstly, I used mjpg-streamer, and everything was just fine (320x240, ~1 sec latency).
Today, I encoutered a problem where both images either with mjpg-streamer and gstreamer are freezing with the first frames displayed.
I am using cheap Genius Facecam 320X (hope to obtain better one soon). YUYV only (from v4l2-ctl --list-fomats). I am using WiFi adapter with the Realtek RTL8192SU.
Commands I used for launching:
mjpg-streamer:
Code: Select all
sudo mjpg_streamer -i "/usr/lib/input_uvc.so -y -d /dev/video0 -r 320x240 -f 25" -o "/usr/lib/output_http.so -p 8090 -w /var/www/mjpg_streamer"
gstreamer:
Code: Select all
sudo gst-launch-0.10 v4l2src device=/dev/video0 ! 'video/x-raw-yuv,width=320,height=240, framerate=20/1'! ffmpegcolorspace ! rtpvrawpay ! udpsink host=192.168.16.2 port=4000 sync=false
Code: Select all
gst-launch-0.10 udpsrc caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)RAW, sampling=(string)YCbCr-4:2:0, depth=(string)8, width=(string)320, height=(string)240, ssrc=(uint)1825678493, payload=(int)96, clock-base=(uint)4068866987, seqnum-base=(uint)24582" port=4000 ! queue ! rtpvrawdepay ! queue ! ffmpegcolorspace ! autovideosink
Ideally, I would like to achieve 720p streaming with as low latency as possible.
Any help would be appreciated.