{"id":7217,"date":"2018-02-01T14:37:51","date_gmt":"2018-02-01T14:37:51","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=7217"},"modified":"2018-05-01T17:05:33","modified_gmt":"2018-05-01T17:05:33","slug":"raspberry-pi-3-gstreamer","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=7217","title":{"rendered":"Raspberry Pi 3, GStreamer"},"content":{"rendered":"<ul>\n<li><code>v4l2-ctl<\/code><\/li>\n<li><code>gst-launch-1.0<\/code><\/li>\n<li><code>gst-inspect-1.0<\/code><\/li>\n<\/ul>\n<ul>\n<li><a href=\"https:\/\/de.wikipedia.org\/wiki\/CCD-Sensor\">CCD-Sensor<\/a><\/li>\n<li><a href=\"https:\/\/de.wikipedia.org\/wiki\/Active_Pixel_Sensor\">Active Pixel Sensor (APS) aka. CMOS-Sensor<\/a><\/li>\n<li><a href=\"https:\/\/de.wikipedia.org\/wiki\/Bayer-Sensor\">Bayer-Sensor<\/a>, Raw Bayer data<\/li>\n<li><a href=\"https:\/\/de.wikipedia.org\/wiki\/Rohdatenformat\">Rohdatenformat<\/a><\/li>\n<li><a href=\"https:\/\/de.wikipedia.org\/wiki\/Demosaicing\">Demosaicing<\/a><\/li>\n<li><a href=\"https:\/\/de.wikipedia.org\/wiki\/Interpolation_(Fotografie)\">Interpolation (Fotografie)<\/a><\/li>\n<\/ul>\n<p><a href=\"https:\/\/gstreamer.freedesktop.org\/download\/\">GStreamer: open source multimedia framework<\/a><br \/>\n<a href=\"http:\/\/robogoby.blogspot.ch\/2014\/01\/raspi-camera-gstreamer-10-w-windows-7.html\">RasPi Camera: GStreamer-1.0 w\/ Windows 7<\/a><br \/>\n<a href=\"http:\/\/www.raspberry-projects.com\/pi\/pi-hardware\/raspberry-pi-camera\/streaming-video-using-gstreamer\">Streaming Video Using gstreamer<\/a><br \/>\n<a href=\"https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?f=36&#038;t=127778\">Video streaming from Rpi camera using Gstreamer(IP and Port)<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ sudo apt-get install libgstreamer1.0-dev\r\n<\/pre>\n<h1>HowTo&#8217;s<\/h1>\n<p><a href=\"http:\/\/wiki.oz9aec.net\/index.php\/Gstreamer_cheat_sheet\">Gstreamer cheat sheet<\/a><br \/>\n<a href=\"http:\/\/developer.ridgerun.com\/wiki\/index.php?title=Category:GStreamer\">RidgeRun Wiki<\/a><\/p>\n<h2>With Raspberry Pi<\/h2>\n<p><a href=\"http:\/\/platypus-boats.readthedocs.io\/en\/latest\/source\/rpi\/video\/video-streaming-gstreamer.html\">Video Streaming with RapsberryPI Using gStreamer<\/a><\/p>\n<h2>Tutorials<\/h2>\n<h4>Basic tutorials<\/h4>\n<p><a href=\"https:\/\/gstreamer.freedesktop.org\/documentation\/tutorials\/basic\/hello-world.html\">Basic tutorial 1: Hello world!<\/a><br \/>\n<a href=\"https:\/\/gstreamer.freedesktop.org\/documentation\/tutorials\/basic\/short-cutting-the-pipeline.html\">Basic tutorial 8: Short-cutting the pipeline<\/a> (AppSrc)<\/p>\n<h2>Application Development Manual<\/h2>\n<h4>Building an Application<\/h4>\n<p><a href=\"https:\/\/gstreamer.freedesktop.org\/documentation\/application-development\/basics\/pads.html\">Pads and capabilities<\/a><br \/>\n<a href=\"https:\/\/gstreamer.freedesktop.org\/documentation\/application-development\/basics\/helloworld.html\">Your first application<\/a><\/p>\n<h2>Plugin Writer&#8217;s Guide<\/h2>\n<h4>Advanced Concepts<\/h4>\n<p><a href=\"https:\/\/gstreamer.freedesktop.org\/documentation\/plugin-development\/advanced\/request.html\">Request and Sometimes pads<\/a><\/p>\n<h2>API Documents<\/h2>\n<p><a href=\"https:\/\/gstreamer.freedesktop.org\/data\/doc\/gstreamer\/head\/gstreamer\/html\/GstElement.html\">GstElement<\/a>, Abstract base class for all pipeline elements.<br \/>\n<a href=\"https:\/\/gstreamer.freedesktop.org\/data\/doc\/gstreamer\/head\/gstreamer\/html\/GstPad.html\">GstPad<\/a>, Object contained by elements that allows links to other elements.<br \/>\n<a href=\"https:\/\/gstreamer.freedesktop.org\/data\/doc\/gstreamer\/head\/gstreamer\/html\/GstPadTemplate.html\">GstPadTemplate<\/a, Describe the media type of a pad.\n<a href=\"https:\/\/gstreamer.freedesktop.org\/data\/doc\/gstreamer\/head\/gstreamer\/html\/GstStructure.html\">GstStructure<\/a>, Generic structure containing fields of names and values.<br \/>\n<a href=\"https:\/\/gstreamer.freedesktop.org\/data\/doc\/gstreamer\/head\/gstreamer\/html\/GstPipeline.html\">GstPipeline<\/a>, Top-level bin with clocking and bus management functionality.<br \/>\n<a href=\"https:\/\/gstreamer.freedesktop.org\/data\/doc\/gstreamer\/head\/gstreamer\/html\/GstBin.html\">GstBin<\/a>, Base class and element that can contain other elements.<br \/>\n<a href=\"https:\/\/gstreamer.freedesktop.org\/data\/doc\/gstreamer\/head\/gst-plugins-base-libs\/html\/GstDiscoverer.html\">GstDiscoverer<\/a>, Utility for discovering information on URIs.<br \/>\n<a href=\"https:\/\/gstreamer.freedesktop.org\/data\/doc\/gstreamer\/head\/gst-plugins-base-plugins\/html\/gst-plugins-base-plugins-appsrc.html\">appsrc<\/a><br \/>\n<a href=\"https:\/\/gstreamer.freedesktop.org\/data\/doc\/gstreamer\/head\/gst-plugins-base-libs\/html\/gst-plugins-base-libs-appsrc.html\">GstAppSrc<\/a>, Easy way for applications to inject buffers into a pipeline<\/p>\n<h3>Plugins<\/h3>\n<p><a href=\"https:\/\/gstreamer.freedesktop.org\/documentation\/plugins.html\">List of Elements and Plugins<\/a><\/p>\n<h4>Source<\/h4>\n<p>Typical source elements include:<\/p>\n<ul>\n<li>file readers<\/li>\n<li>network elements (live or not)<\/li>\n<li>capture elements (video\/audio\/\u2026)<\/li>\n<li>generators (signals\/video\/audio\/\u2026)<\/li>\n<\/ul>\n<p><a href=\"https:\/\/gstreamer.freedesktop.org\/data\/doc\/gstreamer\/head\/gst-plugins-good\/html\/gst-plugins-good-plugins-v4l2src.html\">v4l2src<\/a>, capture video from v4l2 devices, like webcams and tv cards.<br \/>\n<a href=\"https:\/\/gstreamer.freedesktop.org\/data\/doc\/gstreamer\/head\/gst-plugins-good\/html\/gst-plugins-good-plugins-ximagesrc.html\">ximagesrc<\/a>, captures your X Display and creates raw RGB video.<\/p>\n<h4>Sink<\/h4>\n<p>Typical sink elements include:<\/p>\n<ul>\n<li>audio\/video renderers<\/li>\n<li>network sinks<\/li>\n<li>filesinks<\/li>\n<\/ul>\n<p><a href=\"https:\/\/gstreamer.freedesktop.org\/data\/doc\/gstreamer\/head\/gstreamer-plugins\/html\/gstreamer-plugins-filesink.html\">filesink<\/a>, writes incoming data to a file in the local file system.<\/p>\n<h2>Code Examples<\/h2>\n<p><a href=\"https:\/\/wiki.gnome.org\/Projects\/Vala\/GStreamerSample\">GStreamerSample<\/a><br \/>\n<a href=\"https:\/\/gist.github.com\/EdoPut\/77aa7725d4a5b44d8b98\"> main.vala <\/a>, an approach to Gstreamer with Vala<br \/>\n<a href=\"https:\/\/wiki.gnome.org\/Projects\/Vala\/GStreamerSamples\">Vala GStreamer Samples<\/a><br \/>\n<a href=\"https:\/\/gist.github.com\/nzjrs\/725122\/16ceee88aafae389bab207818e0661328921e1ab\">GStreamer Streaming AppSrc Example<\/a><\/p>\n<h2>Images to Video<\/h2>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/16680841\/gstreamer-memory-buffer-usage\">GStreamer memory buffer usage<\/a><br \/>\n<a href=\"https:\/\/stackoverflow.com\/questions\/5314562\/pushing-images-into-a-gstreamer-pipeline\">Pushing images into a gstreamer pipeline<\/a><br \/>\n<a href=\"https:\/\/gstreamer.freedesktop.org\/data\/doc\/gstreamer\/head\/gst-plugins-good\/html\/gst-plugins-good-plugins-imagefreeze.html\">imagefreeze Plug-In<\/a><br \/>\n<a href=\"https:\/\/gstreamer.freedesktop.org\/data\/doc\/gstreamer\/head\/gst-plugins-good\/html\/gst-plugins-good-plugins-multifilesrc.html\">multifilesrc Plug-In<\/a><\/p>\n<h1>Examples<\/h1>\n<h2>UDP Streaming<\/h2>\n<pre class=\"brush: plain; title: RPi3; notranslate\" title=\"RPi3\">\r\n### OWN IP=160.85.151.104\r\nroot@rpi3:\/home\/pi# raspivid -t 0 -w 1080 -h 720 -fps 30 -hf -b 2000000 -o - | \\\r\ngst-launch-1.0 -e -vvvv fdsrc ! \\\r\nh264parse ! \\\r\nrtph264pay config-interval=5 pt=96 ! \\\r\nudpsink host=160.85.41.144 port=5000\r\n<\/pre>\n<pre class=\"brush: plain; title: Windows; notranslate\" title=\"Windows\">\r\n### OWN IP: 160.85.41.144\r\nC:\\gstreamer\\1.0\\x86_64\\bin&gt;gst-launch-1.0 -e -v udpsrc port=5000 ! application\/x-rtp, payload=96 ! rtpjitterbuffer ! rtph264depay ! avdec_h264 ! fpsdisplaysink sync=false text-overlay=false\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>v4l2-ctl gst-launch-1.0 gst-inspect-1.0 CCD-Sensor Active Pixel Sensor (APS) aka. CMOS-Sensor Bayer-Sensor, Raw Bayer data Rohdatenformat Demosaicing Interpolation (Fotografie) GStreamer: open source multimedia framework RasPi Camera: GStreamer-1.0 w\/ Windows 7 Streaming Video Using gstreamer Video streaming from Rpi camera using Gstreamer(IP and Port) $ sudo apt-get install libgstreamer1.0-dev HowTo&#8217;s Gstreamer cheat sheet RidgeRun Wiki With Raspberry [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7217","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/7217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7217"}],"version-history":[{"count":18,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/7217\/revisions"}],"predecessor-version":[{"id":7723,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/7217\/revisions\/7723"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}