{"id":50105,"date":"2025-07-30T21:22:07","date_gmt":"2025-07-30T13:22:07","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/50105.html"},"modified":"2025-07-30T21:22:07","modified_gmt":"2025-07-30T13:22:07","slug":"gstreamer%e5%bc%80%e5%8f%91%e7%ac%94%e8%ae%b0%ef%bc%88%e4%b9%9d%ef%bc%89%ef%bc%9agst-rtcp-server%e5%ae%89%e8%a3%85%e5%92%8c%e9%83%a8%e7%bd%b2%e5%ae%9e%e7%8e%b0%e7%ae%80%e5%8d%95%e7%9a%84rtsp-server","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/50105.html","title":{"rendered":"GStreamer\u5f00\u53d1\u7b14\u8bb0\uff08\u4e5d\uff09\uff1agst-rtcp-server\u5b89\u88c5\u548c\u90e8\u7f72\u5b9e\u73b0\u7b80\u5355\u7684rtsp-server\u670d\u52a1\u5668\u63a8\u6d41Demo"},"content":{"rendered":"<p>\u82e5\u8be5\u6587\u4e3a\u539f\u521b\u6587\u7ae0&#xff0c;\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u539f\u6587\u51fa\u5904 \u672c\u6587\u7ae0\u535a\u5ba2\u5730\u5740&#xff1a;https:\/\/blog.csdn.net\/qq21497936\/article\/details\/149054288<\/p>\n<p>\u957f\u6c99\u7ea2\u80d6\u5b50Qt&#xff08;\u957f\u6c99\u521b\u5fae\u667a\u79d1&#xff09;\u535a\u6587\u5927\u5168&#xff1a;\u5f00\u53d1\u6280\u672f\u96c6\u5408&#xff08;\u5305\u542bQt\u5b9e\u7528\u6280\u672f\u3001\u6811\u8393\u6d3e\u3001\u4e09\u7ef4\u3001OpenCV\u3001OpenGL\u3001ffmpeg\u3001OSG\u3001\u5355\u7247\u673a\u3001\u8f6f\u786c\u7ed3\u5408\u7b49\u7b49&#xff09;\u6301\u7eed\u66f4\u65b0\u4e2d\u2026<\/p>\n<h2>FFmpeg\u3001SDL\u548c\u6d41\u5a92\u4f53\u5f00\u53d1\u4e13\u680f<\/h2>\n<p>\u4e0a\u4e00\u7bc7&#xff1a;\u300aGStreamer\u5f00\u53d1\u7b14\u8bb0&#xff08;\u516b&#xff09;&#xff1a;gstreamer\u4ee3\u7801\u6253\u5f00usb\u6444\u50cf\u5934\u300b \u4e0b\u4e00\u7bc7&#xff1a;\u656c\u8bf7\u671f\u5f85\u2026<\/p>\n<h2>\u524d\u8a00<\/h2>\n<p>\u2003\u2003Gstreamer\u8fd8\u6709\u4e00\u4e2a\u91cd\u8981\u7684\u529f\u80fd\u5c31\u662f\u5145\u5f53rtsp\u6d41\u5a92\u4f53\u670d\u52a1\u5668\u3002<\/p>\n<h2>\u6ce8\u610f<\/h2>\n<p>\u2003\u2003\u672cubuntu\u662f\u865a\u62df\u673a&#xff0c;\u5bf9\u5ef6\u8fdf\u53ef\u80fd\u5f71\u54cd\u8f83\u5927&#xff0c;\u5ef6\u8fdf\u53ef\u4f5c\u4e3a\u53c2\u8003&#xff0c;\u7269\u7406\u673a\u53ef\u80fd\u66f4\u5feb\u3002<\/p>\n<h2>Demo<\/h2>\n<p>\u2003\u2003<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730132159-688a1c773772d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>RTP\u548cRTSP\u652f\u6301<\/h2>\n<p>\u2003\u2003GStreamer\u5bf9RTP\u548cRTSP\u90fd\u6709\u5f88\u597d\u7684\u652f\u6301&#xff0c;\u5176RTP\/RTSP\u6808\u591a\u5e74\u6765\u5df2\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5404\u79cd\u5173\u952e\u4efb\u52a1\u548c\u4f4e\u5ef6\u8fdf\u573a\u666f\u7684\u751f\u4ea7\u4e2d&#xff0c;\u4ece\u5c0f\u578b\u5d4c\u5165\u5f0f\u8bbe\u5907\u5230\u5927\u578b\u89c6\u9891\u4f1a\u8bae\u548c\u6307\u6325\u63a7\u5236\u7cfb\u7edf\u3002<\/p>\n<h2>\u5b89\u88c5gst\u548cgst-rtsp-server<\/h2>\n<h3>\u5b89\u88c5gstreamer1.0\u73af\u5883<\/h3>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> update<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> <span class=\"token function\">install<\/span> libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> <span class=\"token function\">install<\/span> libglib2.0-0<\/p>\n<h3>\u67e5\u770b\u672c\u5730gst\u7248\u672c<\/h3>\n<p>\u2003\u2003<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730132159-688a1c77ce2e2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u4e0b\u8f7d\u5bf9\u5e94\u7248\u672cGStreamer-rtsp-server<\/h3>\n<p>\u2003\u2003\u4e0b\u8f7d\u5730\u5740&#xff1a;https:\/\/gstreamer.freedesktop.org\/src\/gst-rtsp-server\/ \u2003\u2003<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730132200-688a1c786646b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>Ubuntu\u7f16\u8bd1gstreamer-rtsp-server<\/h2>\n<h3>\u6b65\u9aa4\u4e00&#xff1a;\u4e0b\u8f7d\u89e3\u538b<\/h3>\n<p>cd <span class=\"token operator\">~<\/span><span class=\"token operator\">\/<\/span>work<span class=\"token operator\">\/<\/span>src<br \/>\ntar xvf gst<span class=\"token operator\">&#8211;<\/span>rtsp<span class=\"token operator\">&#8211;<\/span>server<span class=\"token operator\">&#8211;<\/span><span class=\"token number\">1.16<\/span><span class=\"token punctuation\">.<\/span><span class=\"token number\">3.<\/span>tar<span class=\"token punctuation\">.<\/span>xz<\/p>\n<p>\u2003\u2003<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730132200-688a1c78c344a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u6b65\u9aa4\u4e8c&#xff1a;\u914d\u7f6e<\/h3>\n<p>cd gst<span class=\"token operator\">&#8211;<\/span>rtsp<span class=\"token operator\">&#8211;<\/span>server<span class=\"token operator\">&#8211;<\/span><span class=\"token number\">1.16<\/span><span class=\"token punctuation\">.<\/span><span class=\"token number\">3<\/span><span class=\"token operator\">\/<\/span><br \/>\n<span class=\"token punctuation\">.<\/span><span class=\"token operator\">\/<\/span>autogen<span class=\"token punctuation\">.<\/span>sh<\/p>\n<p>\u2003\u2003<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730132201-688a1c79309ac.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u6b65\u9aa4\u4e09&#xff1a;\u51fa\u73b0\u914d\u7f6e\u9519\u8bef\u201cgtk-doc &gt;&#061; 1\u202612\u201d<\/h3>\n<p>\u2003\u2003<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730132201-688a1c796ab77.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> <span class=\"token function\">install<\/span> gtk-doc-tools<\/p>\n<p>\u2003\u2003\u7ee7\u7eed&#xff1a;<\/p>\n<p>.\/autogen.sh<\/p>\n<p>\u2003\u2003\u5b8c\u6210&#xff1a; \u2003\u2003<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730132201-688a1c79ceea9.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u6b65\u9aa4\u56db&#xff1a;\u7f16\u8bd1<\/h3>\n<p><span class=\"token function\">make<\/span> -j4<br \/>\n<span class=\"token function\">make<\/span><\/p>\n<p>\u2003\u2003<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730132202-688a1c7a7e94e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u2003\u2003<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730132202-688a1c7ace808.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u6b65\u9aa4\u4e94&#xff1a;\u5b89\u88c5\u90e8\u7f72<\/h3>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">make<\/span> <span class=\"token function\">install<\/span><\/p>\n<p>\u2003\u2003<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730132203-688a1c7b0b66a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u2003\u2003<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730132203-688a1c7b2c7e7.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u6b65\u9aa4\u516d&#xff1a;\u6d4b\u8bd5gst-rtsp-server<\/h3>\n<p>.\/test-launch <span class=\"token string\">&#034;( v4l2src device&#061;\/dev\/video0 ! video\/x-raw, format&#061;NV12, width&#061;1920, height&#061;1080, framerate&#061;30\/1 ! mpph264enc ! rtph264pay name&#061;pay0 pt&#061;96 )&#034;<\/span><\/p>\n<p>\u2003\u2003<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730132203-688a1c7b768b2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>.\/test-launch \u201c<span class=\"token punctuation\">(<\/span> videotestsrc <span class=\"token operator\">!<\/span> video\/x-raw,width<span class=\"token operator\">&#061;<\/span><span class=\"token number\">640<\/span>,height<span class=\"token operator\">&#061;<\/span><span class=\"token number\">480<\/span>,framerate<span class=\"token operator\">&#061;<\/span><span class=\"token number\">30<\/span>\/1 <span class=\"token operator\">!<\/span> timeoverlay <span class=\"token operator\">!<\/span> <span class=\"token function\">tee<\/span> <span class=\"token assign-left variable\">name<\/span><span class=\"token operator\">&#061;<\/span>vsrc vsrc. <span class=\"token operator\">!<\/span> queue <span class=\"token operator\">!<\/span> videoconvert <span class=\"token operator\">!<\/span> ximagesink vsrc. <span class=\"token operator\">!<\/span> queue <span class=\"token operator\">!<\/span> x264enc <span class=\"token assign-left variable\">tune<\/span><span class=\"token operator\">&#061;<\/span>zerolatency <span class=\"token operator\">!<\/span> rtph264pay <span class=\"token assign-left variable\">name<\/span><span class=\"token operator\">&#061;<\/span>pay0 <span class=\"token assign-left variable\">pt<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">96<\/span> <span class=\"token punctuation\">)<\/span>\u201d<\/p>\n<p>\u2003\u2003<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730132203-688a1c7bdb502.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u2003\u2003<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730132204-688a1c7c310fb.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u2003\u2003\u5173\u6389\u9632\u706b\u5899\u91cd\u542f&#xff0c;\u518d\u6b21\u8fde\u63a5&#xff1a; \u2003\u2003<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730132204-688a1c7c6a0cd.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u2003\u2003\u68c0\u67e5\u6444\u50cf\u5934\u652f\u6301\u7684\u683c\u5f0f&#xff1a; \u2003\u2003<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730132204-688a1c7cb587d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u2003\u2003\u63a8\u9001\u6d4b\u8bd5\u89c6\u9891\u6d41&#xff1a;<\/p>\n<p>.\/test-launch <span class=\"token string\">&#034;( videotestsrc ! x264enc ! rtph264pay name&#061;pay0 pt&#061;96 )&#034;<\/span>  <\/p>\n<p>\u2003\u2003<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730132205-688a1c7d2d2fe.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u2003\u2003\u7ee7\u7eed\u6d4b\u8bd5\u6444\u50cf\u5934&#xff0c;\u589e\u52a0\u8c03\u8bd5\u5b8f&#xff1a; \u2003\u2003<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730132205-688a1c7d7ccfc.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u2003\u2003<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730132205-688a1c7dacacb.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u2003\u2003\u6574\u7406\u5982\u4e0b&#xff1a; \u2003\u2003<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730132205-688a1c7dccd0f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u2003\u2003\u5c06&#xff1a;<\/p>\n<p>.\/test-launch <span class=\"token string\">&#034;( v4l2src device&#061;\/dev\/video0 ! video\/x-raw,width&#061;640,height&#061;480,framerate&#061;30\/1 ! queue ! x264enc ! rtph264pay name&#061;pay0 pt&#061;96 )&#034;<\/span><\/p>\n<p>\u2003\u2003\u6539\u4e3a&#xff1a;<\/p>\n<p>.\/test-launch <span class=\"token string\">&#034;(  v4l2src device&#061;\/dev\/video0 ! video\/x-raw, format&#061;&#039;YUY2&#039;, width&#061;640, height&#061;480, framerate&#061;30\/1  ! queue ! x264enc ! rtph264pay name&#061;pay0 pt&#061;96 )&#034;<\/span><\/p>\n<p>\u2003\u2003\u7ee7\u7eed&#xff0c;\u62a5\u9519&#xff1a; \u2003\u2003<img decoding=\"async\" src=\"2025-07-30l1nqp0343fd.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u2003\u2003\u4fee\u6539&#xff1a;<\/p>\n<p><span class=\"token assign-left variable\">GST_DEBUG<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">1<\/span> .\/test-launch <span class=\"token string\">&#034;( v4l2src device&#061;\/dev\/video0 ! video\/x-raw, format&#061;YUY2, width&#061;640, height&#061;480, framerate&#061;30\/1  ! queue ! x264enc ! rtph264pay name&#061;pay0 pt&#061;96 )&#034;<\/span><\/p>\n<p>\u2003\u2003\u7ee7\u7eed&#xff1a; \u2003\u2003<img decoding=\"async\" src=\"2025-07-30xk4w5qxtztp.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u2003\u2003\u4fee\u6539&#xff1a;<\/p>\n<p>.\/test-launch <span class=\"token string\">&#034;( v4l2src device&#061;\/dev\/video0 ! video\/x-raw,format&#061;YUY2,width&#061;640,height&#061;480,framerate&#061;30\/1 ! queue ! videoconvert ! x264enc ! rtph264pay name&#061;pay0 pt&#061;96 )&#034;<\/span><\/p>\n<p>\u2003\u2003\u7ee7\u7eed&#xff0c;\u64ad\u653e\u4e86&#xff0c;\u5ef6\u8fdf4-5s\u5de6\u53f3&#xff1a; \u2003\u2003<img decoding=\"async\" src=\"2025-07-30teesbf1pxir.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u2003\u2003\u4f18\u5316\u53c2\u6570&#xff1a;<\/p>\n<p>.\/test-launch <span class=\"token string\">&#034;( v4l2src device&#061;\/dev\/video0 ! video\/x-raw,format&#061;YUY2,width&#061;640,height&#061;480,framerate&#061;30\/1 ! queue ! videoconvert ! x264enc tune&#061;zerolatency speed-preset&#061;ultrafast ! rtph264pay name&#061;pay0 pt&#061;96 )&#034;<\/span><\/p>\n<p>\u2003\u2003\u7ee7\u7eed&#xff0c;\u5ef6\u8fdf\u8fd8\u67091.4s\u5de6\u53f3&#xff1a; \u2003\u2003<img decoding=\"async\" src=\"2025-07-30vpyv00k5gck.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u2003\u2003\u7ee7\u7eed\u4f18\u5316&#xff1a;<\/p>\n<p>.\/test-launch <span class=\"token string\">&#034;( v4l2src device&#061;\/dev\/video0 ! video\/x-raw,format&#061;YUY2,width&#061;640,height&#061;480,framerate&#061;30\/1 ! queue max-size-buffers&#061;1 max-size-bytes&#061;0 max-size-time&#061;0 ! videoconvert ! x264enc tune&#061;zerolatency speed-preset&#061;ultrafast ! rtph264pay name&#061;pay0 pt&#061;96 )&#034;<\/span><\/p>\n<p>\u2003\u2003\u8fd8\u662f1.4s\u5de6\u53f3&#xff1a; \u2003\u2003<img decoding=\"async\" src=\"2025-07-30j2pwawvto4o.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u6b65\u9aa4\u4e03&#xff1a;\u4f7f\u7528image\/jepg\u683c\u5f0f<\/h3>\n<p>.\/test-launch <span class=\"token string\">&#034;( v4l2src device&#061;\/dev\/video0 ! image\/jpeg,width&#061;640,height&#061;480,framerate&#061;30\/1 ! queue max-size-buffers&#061;1 max-size-bytes&#061;0 max-size-time&#061;0 ! videoconvert ! x264enc tune&#061;zerolatency speed-preset&#061;ultrafast ! rtph264pay name&#061;pay0 pt&#061;96 )&#034;<\/span><\/p>\n<p>\u2003\u2003<img decoding=\"async\" src=\"2025-07-300nhpql5qvm5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u2003\u2003\u4fee\u6539\u4e3a&#xff1a;<\/p>\n<p>GST_DEBUG<span class=\"token operator\">&#061;<\/span><span class=\"token number\">1<\/span> <span class=\"token punctuation\">.<\/span><span class=\"token operator\">\/<\/span>test<span class=\"token operator\">&#8211;<\/span>launch <span class=\"token string\">&#034;( v4l2src device&#061;\/dev\/video0 ! image\/jpeg,width&#061;640,height&#061;480,framerate&#061;30\/1 ! queue max-size-buffers&#061;1 max-size-bytes&#061;0 max-size-time&#061;0 ! jpegdec ! videoconvert ! x264enc tune&#061;zerolatency speed-preset&#061;ultrafast ! rtph264pay name&#061;pay0 pt&#061;96 )&#034;<\/span><\/p>\n<p>\u2003\u2003<img decoding=\"async\" src=\"2025-07-303n22milho1s.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>\u4e0elive555\u76f4\u63a5\u5728getNextFramed\u5bf9\u6bd4<\/h2>\n<p>\u2003\u2003<img decoding=\"async\" src=\"2025-07-30fien1ekxqhb.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u2003\u2003 <img decoding=\"async\" src=\"2025-07-30b3nvsxwbyh2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u2003\u2003\u6b64\u65b9\u6cd5\u9700\u89812\u79d2\u591a&#xff0c;\u4e14\u7528\u7684\u662fmpeg\u3002<\/p>\n<p>\u4e0a\u4e00\u7bc7&#xff1a;\u300aGStreamer\u5f00\u53d1\u7b14\u8bb0&#xff08;\u516b&#xff09;&#xff1a;gstreamer\u4ee3\u7801\u6253\u5f00usb\u6444\u50cf\u5934\u300b \u4e0b\u4e00\u7bc7&#xff1a;\u656c\u8bf7\u671f\u5f85\u2026<\/p>\n<p>\u672c\u6587\u7ae0\u535a\u5ba2\u5730\u5740&#xff1a;https:\/\/blog.csdn.net\/qq21497936\/article\/details\/149054288<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.1k\u6b21\uff0c\u70b9\u8d5e74\u6b21\uff0c\u6536\u85cf21\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728Ubuntu\u73af\u5883\u4e0b\u4f7f\u7528GStreamer\u642d\u5efaRTSP\u6d41\u5a92\u4f53\u670d\u52a1\u5668\uff0c\u5305\u62ec\u5b89\u88c5GStreamer\u76f8\u5173\u7ec4\u4ef6\u3001\u7f16\u8bd1gst-rtsp-server\u6a21\u5757\u7684\u5177\u4f53\u6b65\u9aa4\u3002\u6587\u7ae0\u8be6\u7ec6\u8bb0\u5f55\u4e86\u4ece\u6e90\u7801\u4e0b\u8f7d\u3001\u73af\u5883\u914d\u7f6e\u5230\u7f16\u8bd1\u5b89\u88c5\u7684\u5168\u8fc7\u7a0b\uff0c\u5e76\u63d0\u4f9b\u4e86\u6d4b\u8bd5\u547d\u4ee4\u6765\u9a8c\u8bc1RTSP\u670d\u52a1\u5668\u7684\u529f\u80fd\u3002\u6d4b\u8bd5\u6848\u4f8b\u5305\u62ec\u4f7f\u7528\u865a\u62df\u6d4b\u8bd5\u89c6\u9891\u6e90(videotestsrc)\u548c\u5b9e\u9645\u6444\u50cf\u5934(v4l2src)\u4f5c\u4e3a\u6d41\u5a92\u4f53\u6e90\uff0c\u540c\u65f6\u7ed9\u51fa\u4e86\u89e3\u51b3\u5e38\u89c1\u9519\u8bef\u7684\u65b9\u6cd5\u3002\u8be5\u65b9\u6848\u9002\u7528\u4e8e\u4f4e\u5ef6\u8fdf\u89c6\u9891\u6d41\u4f20\u8f93\u573a\u666f\uff0c\u53ef\u90e8\u7f72\u4e8e\u5d4c\u5165\u5f0f\u8bbe\u5907\u5230\u5927\u578b\u89c6\u9891\u4f1a\u8bae\u7cfb\u7edf\u7b49\u591a\u79cd\u5e73\u53f0\u3002<\/p>\n","protected":false},"author":2,"featured_media":50085,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[4872,4874,4873,214],"topic":[],"class_list":["post-50105","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-gstreamer","tag-4874","tag-4873","tag-214"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>GStreamer\u5f00\u53d1\u7b14\u8bb0\uff08\u4e5d\uff09\uff1agst-rtcp-server\u5b89\u88c5\u548c\u90e8\u7f72\u5b9e\u73b0\u7b80\u5355\u7684rtsp-server\u670d\u52a1\u5668\u63a8\u6d41Demo - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\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.wsisp.com\/helps\/50105.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GStreamer\u5f00\u53d1\u7b14\u8bb0\uff08\u4e5d\uff09\uff1agst-rtcp-server\u5b89\u88c5\u548c\u90e8\u7f72\u5b9e\u73b0\u7b80\u5355\u7684rtsp-server\u670d\u52a1\u5668\u63a8\u6d41Demo - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.1k\u6b21\uff0c\u70b9\u8d5e74\u6b21\uff0c\u6536\u85cf21\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728Ubuntu\u73af\u5883\u4e0b\u4f7f\u7528GStreamer\u642d\u5efaRTSP\u6d41\u5a92\u4f53\u670d\u52a1\u5668\uff0c\u5305\u62ec\u5b89\u88c5GStreamer\u76f8\u5173\u7ec4\u4ef6\u3001\u7f16\u8bd1gst-rtsp-server\u6a21\u5757\u7684\u5177\u4f53\u6b65\u9aa4\u3002\u6587\u7ae0\u8be6\u7ec6\u8bb0\u5f55\u4e86\u4ece\u6e90\u7801\u4e0b\u8f7d\u3001\u73af\u5883\u914d\u7f6e\u5230\u7f16\u8bd1\u5b89\u88c5\u7684\u5168\u8fc7\u7a0b\uff0c\u5e76\u63d0\u4f9b\u4e86\u6d4b\u8bd5\u547d\u4ee4\u6765\u9a8c\u8bc1RTSP\u670d\u52a1\u5668\u7684\u529f\u80fd\u3002\u6d4b\u8bd5\u6848\u4f8b\u5305\u62ec\u4f7f\u7528\u865a\u62df\u6d4b\u8bd5\u89c6\u9891\u6e90(videotestsrc)\u548c\u5b9e\u9645\u6444\u50cf\u5934(v4l2src)\u4f5c\u4e3a\u6d41\u5a92\u4f53\u6e90\uff0c\u540c\u65f6\u7ed9\u51fa\u4e86\u89e3\u51b3\u5e38\u89c1\u9519\u8bef\u7684\u65b9\u6cd5\u3002\u8be5\u65b9\u6848\u9002\u7528\u4e8e\u4f4e\u5ef6\u8fdf\u89c6\u9891\u6d41\u4f20\u8f93\u573a\u666f\uff0c\u53ef\u90e8\u7f72\u4e8e\u5d4c\u5165\u5f0f\u8bbe\u5907\u5230\u5927\u578b\u89c6\u9891\u4f1a\u8bae\u7cfb\u7edf\u7b49\u591a\u79cd\u5e73\u53f0\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/50105.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-30T13:22:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730132159-688a1c773772d.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/50105.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/50105.html\",\"name\":\"GStreamer\u5f00\u53d1\u7b14\u8bb0\uff08\u4e5d\uff09\uff1agst-rtcp-server\u5b89\u88c5\u548c\u90e8\u7f72\u5b9e\u73b0\u7b80\u5355\u7684rtsp-server\u670d\u52a1\u5668\u63a8\u6d41Demo - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-07-30T13:22:07+00:00\",\"dateModified\":\"2025-07-30T13:22:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/50105.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/50105.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/50105.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GStreamer\u5f00\u53d1\u7b14\u8bb0\uff08\u4e5d\uff09\uff1agst-rtcp-server\u5b89\u88c5\u548c\u90e8\u7f72\u5b9e\u73b0\u7b80\u5355\u7684rtsp-server\u670d\u52a1\u5668\u63a8\u6d41Demo\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GStreamer\u5f00\u53d1\u7b14\u8bb0\uff08\u4e5d\uff09\uff1agst-rtcp-server\u5b89\u88c5\u548c\u90e8\u7f72\u5b9e\u73b0\u7b80\u5355\u7684rtsp-server\u670d\u52a1\u5668\u63a8\u6d41Demo - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/50105.html","og_locale":"zh_CN","og_type":"article","og_title":"GStreamer\u5f00\u53d1\u7b14\u8bb0\uff08\u4e5d\uff09\uff1agst-rtcp-server\u5b89\u88c5\u548c\u90e8\u7f72\u5b9e\u73b0\u7b80\u5355\u7684rtsp-server\u670d\u52a1\u5668\u63a8\u6d41Demo - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb2.1k\u6b21\uff0c\u70b9\u8d5e74\u6b21\uff0c\u6536\u85cf21\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728Ubuntu\u73af\u5883\u4e0b\u4f7f\u7528GStreamer\u642d\u5efaRTSP\u6d41\u5a92\u4f53\u670d\u52a1\u5668\uff0c\u5305\u62ec\u5b89\u88c5GStreamer\u76f8\u5173\u7ec4\u4ef6\u3001\u7f16\u8bd1gst-rtsp-server\u6a21\u5757\u7684\u5177\u4f53\u6b65\u9aa4\u3002\u6587\u7ae0\u8be6\u7ec6\u8bb0\u5f55\u4e86\u4ece\u6e90\u7801\u4e0b\u8f7d\u3001\u73af\u5883\u914d\u7f6e\u5230\u7f16\u8bd1\u5b89\u88c5\u7684\u5168\u8fc7\u7a0b\uff0c\u5e76\u63d0\u4f9b\u4e86\u6d4b\u8bd5\u547d\u4ee4\u6765\u9a8c\u8bc1RTSP\u670d\u52a1\u5668\u7684\u529f\u80fd\u3002\u6d4b\u8bd5\u6848\u4f8b\u5305\u62ec\u4f7f\u7528\u865a\u62df\u6d4b\u8bd5\u89c6\u9891\u6e90(videotestsrc)\u548c\u5b9e\u9645\u6444\u50cf\u5934(v4l2src)\u4f5c\u4e3a\u6d41\u5a92\u4f53\u6e90\uff0c\u540c\u65f6\u7ed9\u51fa\u4e86\u89e3\u51b3\u5e38\u89c1\u9519\u8bef\u7684\u65b9\u6cd5\u3002\u8be5\u65b9\u6848\u9002\u7528\u4e8e\u4f4e\u5ef6\u8fdf\u89c6\u9891\u6d41\u4f20\u8f93\u573a\u666f\uff0c\u53ef\u90e8\u7f72\u4e8e\u5d4c\u5165\u5f0f\u8bbe\u5907\u5230\u5927\u578b\u89c6\u9891\u4f1a\u8bae\u7cfb\u7edf\u7b49\u591a\u79cd\u5e73\u53f0\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/50105.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-07-30T13:22:07+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730132159-688a1c773772d.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/50105.html","url":"https:\/\/www.wsisp.com\/helps\/50105.html","name":"GStreamer\u5f00\u53d1\u7b14\u8bb0\uff08\u4e5d\uff09\uff1agst-rtcp-server\u5b89\u88c5\u548c\u90e8\u7f72\u5b9e\u73b0\u7b80\u5355\u7684rtsp-server\u670d\u52a1\u5668\u63a8\u6d41Demo - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-07-30T13:22:07+00:00","dateModified":"2025-07-30T13:22:07+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/50105.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/50105.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/50105.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"GStreamer\u5f00\u53d1\u7b14\u8bb0\uff08\u4e5d\uff09\uff1agst-rtcp-server\u5b89\u88c5\u548c\u90e8\u7f72\u5b9e\u73b0\u7b80\u5355\u7684rtsp-server\u670d\u52a1\u5668\u63a8\u6d41Demo"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/50105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=50105"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/50105\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/50085"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=50105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=50105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=50105"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=50105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}