TX2 NX での gstreamer フュージョン オーディオとビデオの例とその他の例

mp4 と wav を新しい mp4 に結合します

gst-launch-1.0 filesrc location=test.mp4 ! qtdemux name=demux demux.video_0 ! 列 !h264パース!omxh264dec ! nvv4l2h264enc ! h264パース!qtmux 名=mux ! filesink の場所=test1.mp4 filesrc の場所=test.wav ! ウェーブパース!マックス。

カメラストリーミング

 std::string パイプライン = " nvarguscamerasrc "

        "! video/x-raw(memory:NVMM)、format=(string)NV12、width=(int)1640、"

        「高さ=(int)1232、フレームレート=(分数){fps}/1」

        "! nvvidconv 左=0 右=1640 上=136 下=1096 "

        "! video/x-raw,format=(string)I420、width=(int)1024、height=(int)600"

        「!ビデオ変換」

        "! video/x-raw,format=(string)BGR "

        "! アプリシンク";

rtspストリーミング

 std::string パイプライン_ビデオ_ライター =

        「アプリ」

        "! video/x-raw、format=BGR "

        「!ビデオ変換」

        「!nvvidconv」

        "! nvv4l2h264enc iframeinterval=10 idrinterval=32 "

        "! rtspclientsink latency=8000 location=rtsp://{ip_address}:8554/my_pipeline";

ビデオ録画 h264 エンコード

std::string パイプライン =

        "appsrc ! video/x-raw, format=BGR ! queue ! videoconvert ! video/x-raw,format=RGBA ! nvvidconv ! nvv4l2h264enc "

        "! h264parse ! qtmux ! filesink location={filename} sync=false";

  // nvcompositor の 2 つの入力は同じ画像形式とメモリ形式である必要があり、雲画像の透明な部分は白 (255, 255, 255) で塗りつぶされる必要があります。

双方向ビデオフュージョン、カッティング

    std::string パイプライン_nvcompsositor =

        「アプリ」

        "! video/x-raw、format=BGR "

        「!ビデオ変換」

        "! video/x-raw、format=(string)RGBA、width=(int)1024、height=(int)600"

        「!nvvidconv」

        「!キュー2」

        "! nvcompositor 名 = コンポsink_0::zorder=1 sing_0::alpha=0.5 "

        「シンク_1::アルファ=1」

        "シンク_1::zorder=0 シンク_1::幅=1024 シンク_1::高さ=600 "

        「!nvvidconv」

        「!nvv4l2h264enc」

        "! rtspclientsink location=rtsp://192.168.20.99:8554/my_pipeline"

        " nvarguscamerasrc "

        "! video/x-raw(memory:NVMM)、format=(string)NV12、width=(int)1640、height=(int)1232、framerate=(fraction)25/1 "

        "! nvvidconv 左=0 右=1640 上=136 下=1096 "

        "! video/x-raw,format=(string)RGBA、width=(int)1024、height=(int)600"

        "! ビデオバランスの明るさ=0.3 "

        「!nvvidconv」

        「!キュー2」

        「!コンポ。」;

おすすめ

転載: blog.csdn.net/zanglengyu/article/details/131080537