QString gst_str = QString("filesrc location=\"%1\" ! qtdemux ! h265parse ! nvh265dec ! videoconvert ! appsink").arg(mp4_file_path.c_str()); m_video.reset(new cv::VideoCapture(gst_str.toStdString().c_str(), cv::CAP_GSTREAMER));
refer to:
https://blog.csdn.net/jiexijihe945/article/details/125928135
https://qa.1r1g.com/sf/ask/945062541/
http://www.jsxyy.com.cn/voddetail/185181.html