zoukankan      html  css  js  c++  java
  • 视频流操作记录

    nanopcT4:

    RTSP USB摄像头(gst-rtsp-server):

    ./test-launch "( v4l2src device=/dev/video8 norm=255 ! image/jpeg,width=1280,height=720,framerate=30/1 ! jpegdec ! videoconvert ! queue ! mpph264enc ! rtph264pay name=pay0 pt=96 )"

    RTP USBcam

    gst-launch-1.0 v4l2src device=/dev/video8 ! "image/jpeg,width=640,height=480,framerate=30/1" ! jpegdec ! videoconvert ! mpph264enc ! rtph264pay  config-interval=10 pt=96 ! udpsink host=192.168.1.4 port=5000

    VLC sdp file:

    v=0
    m=video 5000 RTP/AVP 96
    c=IN IP4 192.168.1.4
    a=rtpmap:96 H264/80000

    RTMP USBcam

    gst-launch-1.0 v4l2src device=/dev/video8 ! "image/jpeg,width=1280,height=720,framerate=30/1" ! jpegdec ! videoconvert ! queue ! mpph264enc ! queue ! h264parse ! flvmux streamable=true ! queue ! rtmpsink sync=false location='rtmp://127.0.0.1:1935/live/test'

    nvidia tx2:

    RTMP USBcam

    gst-launch-1.0 v4l2src device=/dev/video0 ! "image/jpeg,width=1280,height=720,framerate=30/1" ! jpegdec ! videoconvert ! queue ! omxh264enc ! queue ! h264parse ! flvmux streamable=true ! queue ! rtmpsink sync=false location='rtmp://192.168.1.7:1935/live/test'

    RTP USBcam

    gst-launch-1.0 v4l2src device=/dev/video0 ! "image/jpeg,width=1280,height=720,framerate=30/1" ! jpegdec ! videoconvert ! omxh264enc ! rtph264pay  config-interval=10 pt=96 ! udpsink host=192.168.1.4 port=5000

    VLC sdp file:

    v=0
    m=video 5000 RTP/AVP 96
    c=IN IP4 192.168.1.4
    a=rtpmap:96 H264/80000

     注:由于使用的UDP方式,所以192.168.1.4是显示端地址(接收端)

  • 相关阅读:
    [USACO08FEB]酒店Hotel 线段树 BZOJ 1593
    有趣的数 zoj 月赛
    [ZJOI2008]生日聚会 BZOJ1037 dp
    借教室 差分+二分答案
    HackerRank
    旅行计划 记忆化搜索
    灾后重建 Floyd
    [USACO10OCT]湖计数Lake Counting 联通块
    [TJOI2013]循环格 费用流 BZOJ3171
    高斯消元
  • 原文地址:https://www.cnblogs.com/guanglun/p/12662101.html
Copyright © 2011-2022 走看看