G_mutex_clear called on uninitialised or locked mutex

std::string url = “filesrc location=video.mp4 ! qtdemux name=demux demux.video_0 ! queue ! h264parse ! omxh264dec disable-dvfs=1 ! nvvidconv ! video/x-raw,width=1280,height=720,format=BGRx ! videoconvert ! appsink sync=true”

cvCap.open(url, cv::CAP_GSTREAMER);
cv::VideoCapture cvCap;

I read frames from video.mp4 by url above, and got crash info " g_mutex_clear called on uninitialised or locked mutex".

Could you please help to fix it ???

We have deprecated omx plugins. Please try with nvv4l2decoder plugin.

For checking the issue, you can verify correctness of the string in gst-launch-1.0 command, and then apply it to the code.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.