{"id":492,"date":"2016-02-05T21:09:57","date_gmt":"2016-02-06T05:09:57","guid":{"rendered":"http:\/\/www.communistech.com\/?page_id=492"},"modified":"2016-02-05T21:12:12","modified_gmt":"2016-02-06T05:12:12","slug":"streaming-video-from-raspberry-pi-to-linux-pc","status":"publish","type":"page","link":"https:\/\/www.communistech.com\/blog\/knowledge\/streaming-video-from-raspberry-pi-to-linux-pc\/","title":{"rendered":"Streaming Video from RPi"},"content":{"rendered":"<p>Below are the commands I have used to stream H264 Video from an <em>Raspberry Pi 2<\/em> to <em>Linux\/OSX<\/em>\u00a0computer\u200b<\/p>\n<h3>Install gstreamer 1.0<\/h3>\n<pre>$ sudo apt-get update\r\n$ sudo apt-get install gstreamer1.0\r\n$ gst-inspect-1.0 | grep h264parse # verify install<\/pre>\n<h3>\u200bStart Video Stream<\/h3>\n<p><span style=\"font-size: 16px;\">Target IP address is the Linux PC\u00a0<\/span><\/p>\n<pre>$ raspivid -n -w 640 -h 480 -b 1000000 -fps 15 -t 0 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=10 pt=96 ! udpsink host=10.0.1.201 port=9000<\/pre>\n<h3>Test Video on Target PC<\/h3>\n<pre>$ gst-launch-1.0 -v udpsrc port=9000 caps='application\/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtph264depay ! avdec_h264 ! videoconvert ! ximagesink<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Below are the commands I have used to stream H264 Video from an Raspberry Pi 2 to Linux\/OSX\u00a0computer\u200b Install gstreamer 1.0 $ sudo apt-get update $ sudo apt-get install gstreamer1.0 $ gst-inspect-1.0 | grep h264parse # verify install \u200bStart Video &hellip; <a href=\"https:\/\/www.communistech.com\/blog\/knowledge\/streaming-video-from-raspberry-pi-to-linux-pc\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":494,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-492","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.communistech.com\/blog\/wp-json\/wp\/v2\/pages\/492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.communistech.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.communistech.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.communistech.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.communistech.com\/blog\/wp-json\/wp\/v2\/comments?post=492"}],"version-history":[{"count":4,"href":"https:\/\/www.communistech.com\/blog\/wp-json\/wp\/v2\/pages\/492\/revisions"}],"predecessor-version":[{"id":498,"href":"https:\/\/www.communistech.com\/blog\/wp-json\/wp\/v2\/pages\/492\/revisions\/498"}],"up":[{"embeddable":true,"href":"https:\/\/www.communistech.com\/blog\/wp-json\/wp\/v2\/pages\/494"}],"wp:attachment":[{"href":"https:\/\/www.communistech.com\/blog\/wp-json\/wp\/v2\/media?parent=492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}