追蹤latency.
GST_DEBUG="GST_TRACER:7" GST_TRACERS="latency(flags=pipeline+element+reported)" gst-launch-1.0 playbin uri=rtsp://192.168.59.45:8554/hevc
追蹤各個source , sink
export GST_DEBUG_DUMP_DOT_DIR=/media/usb0/debug
將debug下的.dot選擇一個時間點
dot -Tpng 0.00.15.437143880-gst-launch.PLAYING_PAUSED.dot > pipeline.png
就可以從png看出各個element流程圖.
減少latency指令
GST_DEBUG=*:none gst-launch-1.0 -q playbin video-sink='rtkv1sink async=false sync=false' audio-sink='alsasink async=false sync=false' flags=0x13 buffer-size=0 buffer-duration=0 delay=0 uri=rtsp://192.168.59.78:8554/hevc uridecodebin0::source::latency=0 uridecodebin0::source::udp-buffer-size=0 > /dev/null
sample code:
https://github.com/GStreamer/gst-docs.git
DEBUG
export GST_DEBUG_FILE=/media/usb0/gstreamer_debug
export GST_DEBUG_NO_COLOR=1
沒有留言:
張貼留言