GStreamer-CRITICAL **: gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed
這只是很單純的plug-in沒安裝的問題,
那就是要一個一個plug-in安裝的指令下達才行,
從什麼地方看出來?
先用「sudo apt-get install gstreamer1*」來看,它須要哪些套件
---------
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'gstreamer1.0-videosink' for glob 'gstreamer1*'
...
...
....
-------------------------------------
沒安裝,對吧,那我就一個一個裝,先裝「gstreamer1.0-videosink」
-------------------------- sudo apt-get install gstreamer1.0-videosink Reading package lists... Done Building dependency tree Reading state information... Done Package gstreamer1.0-videosink is a virtual package provided by: gstreamer1.0-x 1.10.4-1+deb9u1 gstreamer1.0-plugins-good 1.10.4-1 gstreamer1.0-plugins-bad 1.10.4-1 gstreamer1.0-dvswitch 0.1.1-1 You should explicitly select one to install.
---------------------------
是的,它說了,你要explicitly select one to install,
所以老老實實地apt-get install gstreamer1.0-x 1.10.4-1+deb9u1 gstreamer1.0-plugins-good ..... 都裝完後 再回去跑gstreamer,就不會出現
「GStreamer-CRITICAL **: gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed」
錯誤訊息了 (那就剩下畫質的問題要解決了,這又是另一個故事了)
大家加油吧