Unable to read video by opencv2

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Unable to read video by opencv2

910件の閲覧回数
vivid
Contributor I

Hi, guys.

I have a problem in reading the video by cv2.

When I tried:

cap = cv2.VideoCapture('/home/root/test.mp4')

 It stuck at 

====== AIUR: 4.7.1 build on Jul 19 2022 06:15:03. ======
Core: AVI_PARSER_03.06.08 build on Sep 15 2020 02:45:45
file: /usr/lib/imx-mm/parser/lib_avi_parser_arm_elinux.so.3.1
Track 00 [video]: Disabled
Codec: 0, SubCodec: 0
------------------------
------------------------
Track 01 [audio_0] Enabled
Duration: 0:00:10.999818000
Language: und
Mime:
audio/x-raw, format=(string)S16LE, channels=(int)1, layout=(string)interleaved, rate=(int)11025, bitrate=(int)176400
------------------------

And shows:

[ WARN:0@8.799] global /usr/src/debug/opencv/4.6.0.imx-r0/git/modules/videoio/src/cap_gstreamer.cpp (1356) open OpenCV | GStreamer warning: unable to start pipeline

(python3:1902): GStreamer-CRITICAL **: 05:56:41.826: gst_bin_remove: assertion 'GST_IS_ELEMENT (element)' failed
[ WARN:0@8.802] global /usr/src/debug/opencv/4.6.0.imx-r0/git/modules/videoio/src/cap_gstreamer.cpp (862) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created

(python3:1902): GStreamer-CRITICAL **: 05:56:41.826:
Trying to dispose element appsink0, but it is in READY instead of the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.

Any idea for this?

ラベル(1)
0 件の賞賛
返信
0 返答(返信)