{"id":1145,"date":"2023-12-11T17:34:30","date_gmt":"2023-12-11T09:34:30","guid":{"rendered":"https:\/\/www.fanyamin.com\/wordpress\/?p=1145"},"modified":"2023-12-11T17:34:30","modified_gmt":"2023-12-11T09:34:30","slug":"audio-pipeline","status":"publish","type":"post","link":"https:\/\/www.fanyamin.com\/wordpress\/?p=1145","title":{"rendered":"audio pipeline"},"content":{"rendered":"<ul>\n<li>\n<p>read rtsp and demux to video and audio<\/p>\n<pre><code>gst-launch-1.0 rtspclientsink name=s location=rtsp:\/\/localhost:8554\/mystream libcamerasrc ! video\/x-raw, width=640, height=480, framerate=30\/1 ! videoconvert ! videoscale ! clockoverlay time-format=&quot;%d\/%m\/%y %H:%M:%S&quot; ! x264enc speed-preset=ultrafast bitrate=600 key-int-max=40 ! queue ! s.sink_0 alsasrc ! queue ! audioconvert ! opusenc ! s.sink_1<\/code><\/pre>\n<\/li>\n<li>\n<p>read and record<\/p>\n<pre><code>gst-launch-1.5 v4l2src do-timestamp=true ! videoconvert ! videoscale !\nvideo\/x-raw,framerate=30\/1 ! timeoverlay shaded-background=1 ! queue !\nx264enc ! queue ! mpegtsmux name=mux alsasrc ! queue ! audioconvert ! queue\n! audioresample ! queue ! audiorate ! voaacenc bitrate=160000 ! queue !\naacparse ! queue ! mux. mux. ! queue ! hlssink sync=false<\/code><\/pre>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>read rtsp and demux to video and audio gst-launch-1.0 rtspclientsink name=s location=rtsp:\/\/localhost:8554\/mystream libcamerasrc ! video\/x-raw, width=640, height=480, framerate=30\/1 ! videoconvert ! videoscale ! clockoverlay time-format=&quot;%d\/%m\/%y %H:%M:%S&quot; ! x264enc speed-preset=ultrafast bitrate=600 key-int-max=40 ! queue ! s.sink_0 alsasrc ! queue ! audioconvert ! opusenc ! s.sink_1 read and record gst-launch-1.5 v4l2src do-timestamp=true ! videoconvert ! videoscale ! [&hellip;] <a class=\"read-more\" href=\"https:\/\/www.fanyamin.com\/wordpress\/?p=1145\" title=\"Permanent Link to: audio pipeline\">&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-1145","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\/1145"}],"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=1145"}],"version-history":[{"count":1,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1145\/revisions"}],"predecessor-version":[{"id":1146,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1145\/revisions\/1146"}],"wp:attachment":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}