{"id":234229,"date":"2024-09-29T20:26:35","date_gmt":"2024-09-29T20:26:35","guid":{"rendered":"https:\/\/www.emtrion.de\/using-gstreamer-on-dimm-mx53-under-linux-2\/"},"modified":"2024-10-24T07:35:38","modified_gmt":"2024-10-24T07:35:38","slug":"using-gstreamer-on-dimm-mx53-under-linux-2","status":"publish","type":"page","link":"https:\/\/www.emtrion.de\/en\/using-gstreamer-on-dimm-mx53-under-linux-2\/","title":{"rendered":"Using GStreamer  on DIMM-MX53 under Linux"},"content":{"rendered":"<div class=\"level1\">\n<p>This is a list of examples on how you can use gstreamer with our boards. Please note that per default the digital camera input is used, if you want to use analog cameras, please contact emtrion support.<\/p>\n<\/div>\n<h1><a id=\"hardware_specific\" name=\"hardware_specific\"><\/a>Hardware specific<\/h1>\n<div class=\"level1\">\n<p>To capture video from the camera, you can use the mfw_v4lsrc.<\/p>\n<p>To encode the video using the hardware encoder, have a look at mfw_vpuencoder.<\/p>\n<p>To display it on the screen, you can use the mfw_v4lsink.<\/p>\n<\/div>\n<h1><a id=\"examples\" name=\"examples\"><\/a>Examples<\/h1>\n<div class=\"level1\">\n<p>The examples are tested on Lothrom 3\/Verno 3 with Dimm-MX53 and a digital camera connected to the first input.<\/p>\n<p>Files are stored to \/mnt. If you want to, you can mount a NFS there or change the location.<\/p>\n<\/div>\n<h2><a id=\"camera_to_display\" name=\"camera_to_display\"><\/a>Camera to display<\/h2>\n<div class=\"level2\">\n<p>Display what the camera sees on the screen. You can stop this with ctrl-c.<\/p>\n<pre class=\"uboot\"> gst-launch mfw_v4lsrc capture-height=480 capture-width=640 ! mfw_v4lsink<\/pre>\n<p>Display a USB camera. It must be compatible to the linux UVC driver<\/p>\n<pre class=\"uboot\"> gst-launch v4l2src device=\/dev\/video1 ! mfw_v4lsink<\/pre>\n<\/div>\n<h2><a id=\"camera_to_file\" name=\"camera_to_file\"><\/a>Camera to file<\/h2>\n<div class=\"level2\">\n<p>Take a single picture and store to \/mnt.<\/p>\n<pre class=\"uboot\"> gst-launch -e mfw_v4lsrc capture-height=480 capture-width=640 num-buffers=1  ! mfw_ipucsc  ! jpegenc  ! filesink location=\/mnt\/capture.jpeg <\/pre>\n<p>Capture an AVI with MJPEG in it. You can stop recording using ctrl-c and view this file on your PC using VLC.<\/p>\n<pre class=\"uboot\">gst-launch -e mfw_v4lsrc capture-height=480 capture-width=640  ! mfw_ipucsc  ! mfw_vpuencoder codec-type=std_mjpg  ! avimux  ! filesink location=\/mnt\/capture.avi<\/pre>\n<p>Capture mp4 file using the hardware encoder:<\/p>\n<pre class=\"uboot\"> gst-launch -e mfw_v4lsrc capture-height=480 capture-width=640  ! mfw_ipucsc  ! queue  ! \"video\/x-raw-yuv, format=(fourcc)I420, width=(int)640, height=(int)480, framerate=(fraction)30\/1\"  ! mfw_vpuencoder codec-type=std_mpeg4  ! \"video\/mpeg, height=(int)480, width=(int)640, framerate=(fraction)30\/1, mpegversion=(int)4, systemstream=(boolean)false\"  ! mp4mux  ! filesink location=\/mnt\/capture.mp4 <\/pre>\n<\/div>\n<h2><a id=\"camera_to_display_and_file\" name=\"camera_to_display_and_file\"><\/a>Camera to display and file<\/h2>\n<div class=\"level2\">\n<p>Use tee to split the video and display it on the screen while recording it to a file.<\/p>\n<pre class=\"uboot\">gst-launch -e mfw_v4lsrc capture-height=480 capture-width=640  ! tee name=camera  ! queue leaky=downstream  ! mfw_v4lsink  camera.  ! mfw_ipucsc  ! queue  ! \"video\/x-raw-yuv, format=(fourcc)I420, width=(int)640, height=(int)480, framerate=(fraction)30\/1\"  ! mfw_vpuencoder codec-type=std_mpeg4 loopback=false  ! \"video\/mpeg, height=(int)480, width=(int)640, framerate=(fraction)30\/1, mpegversion=(int)4, systemstream=(boolean)false\"  ! mp4mux  ! filesink location=\/mnt\/capture.mp4<\/pre>\n<\/div>\n<h2><a id=\"file_to_display\" name=\"file_to_display\"><\/a>File to display<\/h2>\n<div class=\"level2\">\n<p>Replay the film avi captured above:<\/p>\n<pre class=\"uboot\">gst-launch filesrc location=\/mnt\/capture.avi ! decodebin2 ! mfw_v4lsink<\/pre>\n<p>Replay the mp4 file:<\/p>\n<pre class=\"uboot\">gst-launch filesrc location=\/mnt\/capture.mp4 ! decodebin2 ! mfw_v4lsink<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This is a list of examples on how you can use gstreamer with our boards. Please note that per default the digital camera input is used, if you want to use analog cameras, please contact emtrion support. Hardware specific To capture video from the camera, you can use the mfw_v4lsrc. To encode the video using [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-234229","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Using GStreamer on DIMM-MX53 under Linux - emtrion<\/title>\n<meta name=\"description\" content=\"Using GStreamer on DIMM-MX53 with Linux: Learn to capture, encode, and display video efficiently. For analog cameras, please contact emtrion support.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.emtrion.de\/en\/using-gstreamer-on-dimm-mx53-under-linux-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using GStreamer on DIMM-MX53 under Linux - emtrion\" \/>\n<meta property=\"og:description\" content=\"Using GStreamer on DIMM-MX53 with Linux: Learn to capture, encode, and display video efficiently. For analog cameras, please contact emtrion support.\" \/>\n<meta property=\"og:site_name\" content=\"emtrion\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-24T07:35:38+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.emtrion.de\\\/en\\\/using-gstreamer-on-dimm-mx53-under-linux-2\\\/\",\"url\":\"https:\\\/\\\/www.emtrion.de\\\/en\\\/using-gstreamer-on-dimm-mx53-under-linux-2\\\/\",\"name\":\"Using GStreamer on DIMM-MX53 under Linux - emtrion\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.emtrion.de\\\/en\\\/#website\"},\"datePublished\":\"2024-09-29T20:26:35+00:00\",\"dateModified\":\"2024-10-24T07:35:38+00:00\",\"description\":\"Using GStreamer on DIMM-MX53 with Linux: Learn to capture, encode, and display video efficiently. For analog cameras, please contact emtrion support.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.emtrion.de\\\/en\\\/using-gstreamer-on-dimm-mx53-under-linux-2\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.emtrion.de\\\/en\\\/using-gstreamer-on-dimm-mx53-under-linux-2\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.emtrion.de\\\/en\\\/using-gstreamer-on-dimm-mx53-under-linux-2\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.emtrion.de\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using GStreamer on DIMM-MX53 under Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.emtrion.de\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.emtrion.de\\\/en\\\/\",\"name\":\"emtrion\",\"description\":\"Embedded Software and Hardware Development\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.emtrion.de\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using GStreamer on DIMM-MX53 under Linux - emtrion","description":"Using GStreamer on DIMM-MX53 with Linux: Learn to capture, encode, and display video efficiently. For analog cameras, please contact emtrion support.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.emtrion.de\/en\/using-gstreamer-on-dimm-mx53-under-linux-2\/","og_locale":"en_US","og_type":"article","og_title":"Using GStreamer on DIMM-MX53 under Linux - emtrion","og_description":"Using GStreamer on DIMM-MX53 with Linux: Learn to capture, encode, and display video efficiently. For analog cameras, please contact emtrion support.","og_site_name":"emtrion","article_modified_time":"2024-10-24T07:35:38+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.emtrion.de\/en\/using-gstreamer-on-dimm-mx53-under-linux-2\/","url":"https:\/\/www.emtrion.de\/en\/using-gstreamer-on-dimm-mx53-under-linux-2\/","name":"Using GStreamer on DIMM-MX53 under Linux - emtrion","isPartOf":{"@id":"https:\/\/www.emtrion.de\/en\/#website"},"datePublished":"2024-09-29T20:26:35+00:00","dateModified":"2024-10-24T07:35:38+00:00","description":"Using GStreamer on DIMM-MX53 with Linux: Learn to capture, encode, and display video efficiently. For analog cameras, please contact emtrion support.","breadcrumb":{"@id":"https:\/\/www.emtrion.de\/en\/using-gstreamer-on-dimm-mx53-under-linux-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.emtrion.de\/en\/using-gstreamer-on-dimm-mx53-under-linux-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.emtrion.de\/en\/using-gstreamer-on-dimm-mx53-under-linux-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.emtrion.de\/en\/"},{"@type":"ListItem","position":2,"name":"Using GStreamer on DIMM-MX53 under Linux"}]},{"@type":"WebSite","@id":"https:\/\/www.emtrion.de\/en\/#website","url":"https:\/\/www.emtrion.de\/en\/","name":"emtrion","description":"Embedded Software and Hardware Development","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.emtrion.de\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.emtrion.de\/en\/wp-json\/wp\/v2\/pages\/234229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.emtrion.de\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.emtrion.de\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.emtrion.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.emtrion.de\/en\/wp-json\/wp\/v2\/comments?post=234229"}],"version-history":[{"count":1,"href":"https:\/\/www.emtrion.de\/en\/wp-json\/wp\/v2\/pages\/234229\/revisions"}],"predecessor-version":[{"id":234230,"href":"https:\/\/www.emtrion.de\/en\/wp-json\/wp\/v2\/pages\/234229\/revisions\/234230"}],"wp:attachment":[{"href":"https:\/\/www.emtrion.de\/en\/wp-json\/wp\/v2\/media?parent=234229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}