Gstreamer 파이프라인 디버깅
gstreamer playbin 이 동작했던 pipeline 을 알 수 있는 방법
GST_DEBUG_DUMP_DOT_DIR 환경변수에 .dot 파일경로 추가
ex)
툴 설치 : sudo apt-get install graphviz
1) 폴더경로를 추가한다.
export GST_DEBUG_DUMP_DOT_DIR=/home/kjjeong
2) Playing 시작
gst-launch-1.0 playbin uri=file:///home/kjjeong/바탕화면/drama.mp4
재생중 종료
3) /home/kjjeong 경로에
0.00.00.032689710-gst-launch.NULL_READY.dot
0.00.00.286938026-gst-launch.READY_PAUSED.dot
0.00.00.296558276-gst-launch.PAUSED_PLAYING.dot
파일생성
4)
dot -Tpng ./0.00.00.296558276-gst-launch.PAUSED_PLAYING.dot > play.png
http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+11%3a+Debugging+tools
GST_DEBUG=*sink*:5
GST_DEBUG=mfw_v4lsink:5,vpudec:5
https://community.nxp.com/docs/DOC-93449
GST_DEBUG_BIN_TO_DOT_FILE (GST_BIN (pipeline), GST_DEBUG_GRAPH_SHOW_ALL, "mypipeline"); GST_DEBUG_DUMP_DOT_DIR=$PWD dot -Tpng mypipeline.dot -o mypipeline.png
참고문헌
Basic tutorial 11: Debugging tools
: https://gstreamer.freedesktop.org/documentation/tutorials/basic/debugging-tools.html
emotion_test 실행시 gstreamer pipeline 그래프로 보기
http://efl-seokjae.blogspot.kr/2011/10/emotiontest-gstreamer-pipeline.html