{"id":1096,"date":"2023-11-09T22:32:04","date_gmt":"2023-11-09T14:32:04","guid":{"rendered":"https:\/\/www.fanyamin.com\/wordpress\/?p=1096"},"modified":"2023-11-12T08:54:05","modified_gmt":"2023-11-12T00:54:05","slug":"gstreamer-tips-2","status":"publish","type":"post","link":"https:\/\/www.fanyamin.com\/wordpress\/?p=1096","title":{"rendered":"gstreamer tips 2"},"content":{"rendered":"<h1>install gstreamer and plugins<\/h1>\n<pre><code>sudo apt-get install -y gstreamer1.0-tools gstreamer1.0-nice gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-plugins-good libgstreamer1.0-dev git libglib2.0-dev libgstreamer-plugins-bad1.0-dev libsoup2.4-dev libjson-glib-dev<\/code><\/pre>\n<h1>send\/receive rtp over rtp and udp<\/h1>\n<pre><code>\ngst-launch-1.0 videotestsrc ! video\/x-raw, width=640, height=360 ! queue ! vpuenc_h264 ! rtph264pay ! udpsink host=192.168.60.5 port=5555\n\ngst-launch-1.0 udpsrc port=5555 \\\n      ! application\/x-rtp, encoding-name=H264, payload=96 \\\n      ! queue \\\n      ! rtph264depay  \\\n      ! decodebin  \\\n      ! autovideosink<\/code><\/pre>\n<h1>play mp4<\/h1>\n<pre><code>gst-launch-1.0 filesrc location=test.mp4 ! decodebin ! nvvidconv ! videoconvert ! xvimagesink<\/code><\/pre>\n<h1>reference<\/h1>\n<ul>\n<li><a href=\"https:\/\/forums.developer.nvidia.com\/t\/gst-launch-1-0-is-failing-to-read-a-video-on-jetpack-4-3\/111074\/4\">https:\/\/forums.developer.nvidia.com\/t\/gst-launch-1-0-is-failing-to-read-a-video-on-jetpack-4-3\/111074\/4<\/a><\/li>\n<li><a href=\"https:\/\/docs.nvidia.com\/metropolis\/deepstream\/dev-guide\/text\/DS_plugin_gst-nvvideoconvert.html\">https:\/\/docs.nvidia.com\/metropolis\/deepstream\/dev-guide\/text\/DS_plugin_gst-nvvideoconvert.html<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/hissinger\/gstreamer-webrtcbin-demo\/blob\/main\/webrtc-sendrecv.c\">https:\/\/github.com\/hissinger\/gstreamer-webrtcbin-demo\/blob\/main\/webrtc-sendrecv.c<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>install gstreamer and plugins sudo apt-get install -y gstreamer1.0-tools gstreamer1.0-nice gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-plugins-good libgstreamer1.0-dev git libglib2.0-dev libgstreamer-plugins-bad1.0-dev libsoup2.4-dev libjson-glib-dev send\/receive rtp over rtp and udp gst-launch-1.0 videotestsrc ! video\/x-raw, width=640, height=360 ! queue ! vpuenc_h264 ! rtph264pay ! udpsink host=192.168.60.5 port=5555 gst-launch-1.0 udpsrc port=5555 \\ ! application\/x-rtp, encoding-name=H264, payload=96 \\ ! queue \\ ! rtph264depay [&hellip;] <a class=\"read-more\" href=\"https:\/\/www.fanyamin.com\/wordpress\/?p=1096\" title=\"Permanent Link to: gstreamer tips 2\">&rarr;Read&nbsp;more<\/a><\/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-1096","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1096"}],"collection":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1096"}],"version-history":[{"count":5,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1096\/revisions"}],"predecessor-version":[{"id":1101,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1096\/revisions\/1101"}],"wp:attachment":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}