Gstreamer使用筆記
關閉程式前發送EOS事件給pipeline的方法
1 | // 發送EOS訊號讓filesink可以正常結束 |
https://gstreamer.freedesktop.org/documentation/gstreamer/gstelement.html#gst_element_get_state
https://gstreamer-devel.narkive.com/g1omJFAj/gst-devel-graceful-exit-shutdown-of-a-pipeline#post3
https://stackoverflow.com/questions/38170733/gstreamer-not-flushing-to-the-filesink
範例
https://gitlab.freedesktop.org/freedesktop/snippets/-/snippets/1760
https://gist.github.com/CaptainOnly/f88cbb6ac5fdeae80200fbb3f7be695c