gdb
コマンドは、一般的なデバッグに使用します。
次のコマンドを使用して、アプリケーションを実行します。
gdb –args gst-launch-1.0 v4l2src io-mode=4 device=/dev/video0
! video/x-raw, width=3840,height=2160, format=NV12, framerate=60/1 ! omxh265enc
qp-mode=auto gop-mode=low-delay-p gop-length=60 periodicity-idr=60 b-frames=0
target-bitrate=60000 num-slices=8 control-rate=low-latency prefetch-buffer=TRUE
low-bandwidth=false filler-data=0 cpb-size=1000 initial-delay=500 ! video/x-h265,
alignment=nal ! queue max-size-buffers=0 ! rtph265pay ! udpsink host=192.168.25.89
port=5004 buffer-size=60000000 max-bitrate=120000000 max-lateness=-1
qos-dscp=60 async=false
このコマンドを実行すると、gdb シェルが起動します。アプリケーションを実行するには、run
と入力します。
(gdb)run
デバッグには、バックトレース関数を使用して直近の関数フローを表示します。
(gdb)bt