{"id":215,"date":"2016-06-30T10:24:15","date_gmt":"2016-06-30T08:24:15","guid":{"rendered":"http:\/\/blog.matthias.roehser.de\/?p=215"},"modified":"2016-06-30T10:25:20","modified_gmt":"2016-06-30T08:25:20","slug":"streaming-video-with-raspberry-pi-camera","status":"publish","type":"post","link":"https:\/\/blog.matthias.roehser.de\/?p=215","title":{"rendered":"Streaming video with raspberry pi camera"},"content":{"rendered":"<p>Here is a collection of different ways to stream videos from a raspberry pi with a pi camera.<\/p>\n<h2>Lowest latency in my experiments: rpicamsrc g-streamer plugin<\/h2>\n<p>This requires the g-streamer rpicamsrc plugin. Google for it.<\/p>\n<pre>Source: gst-launch-1.0 rpicamsrc preview=0 bitrate=4000000 exposure-mode=6 intra-refresh-type=2 hflip=TRUE vflip=TRUE ! 'video\/x-h264, width=1280, height=720, framerate=49\/1,profile=high' ! h264parse ! rtph264pay config-interval=1 pt=96 ! udpsink host=192.168.5.63 port=9001<\/pre>\n<pre>Destination: gst-launch-1.0 -v udpsrc port=9001 caps='application\/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink sync=false<\/pre>\n<h2>RAW udp streaming with netcat<\/h2>\n<pre>Source: raspivid -n -ih -pf high -h 480 -w 640 -t 0 -hf -vf -fl -b 2000000 -o - | nc 192.168.5.63 5000 -u<\/pre>\n<pre>Destination: netcat -l -p 5000 -u | gst-launch-1.0 -v fdsrc ! h264parse ! avdec_h264 ! videoconvert ! autovideosink sync=false<\/pre>\n<h2>RTP Streaming with gstreamer<\/h2>\n<pre>Source: raspivid -n -hf -vf -pf baseline -w 800 -h 600 -fl --intra 10 -t 0 -b 2000000 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! udpsink host=192.168.5.63 port=9001<\/pre>\n<pre>Destination: gst-launch-1.0 -v udpsrc port=9001 caps='application\/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink sync=false<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is a collection of different ways to stream videos from a raspberry pi with a pi camera. Lowest latency in my experiments: rpicamsrc g-streamer plugin This requires the g-streamer rpicamsrc plugin. Google for it. Source: gst-launch-1.0 rpicamsrc preview=0 bitrate=4000000 exposure-mode=6 intra-refresh-type=2 hflip=TRUE vflip=TRUE ! &#8216;video\/x-h264, width=1280, height=720, framerate=49\/1,profile=high&#8217; ! h264parse ! rtph264pay config-interval=1 pt=96 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-215","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/posts\/215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=215"}],"version-history":[{"count":3,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/posts\/215\/revisions"}],"predecessor-version":[{"id":218,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=\/wp\/v2\/posts\/215\/revisions\/218"}],"wp:attachment":[{"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.matthias.roehser.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}