|

楼主 |
发表于 2022-2-18 17:49:46
|
显示全部楼层
找到问题了,nvvidconv需要指定输出的类型, gst-inspect1.0看后,只有BGRx,需要再用videoconvert转成BGR,输入VideoCapture
opencv VideoCapture(filesrc location=./sample_1080p_h264.mp4 ! qtdemux ! queue ! h264parse ! nvv4l2decoder ! nvvidconv ! video/x-raw, format=BGRx ! videoconvert ! video/x-raw, format=BGR ! appsink) |
|