Opencv error on Gstreamer
Akrita
AkritaBehet at yahoo.com
Sat Feb 1 16:26:50 UTC 2020
Hi
i develop this code on jetson tk1 and UBUNTU 14.04
cv::VideoCapture cap(0);
std::string pipeline = "appsrc !
video/x-raw,width=640,height=480,format=(string)YUY2 ! videoconvert !
omxh264enc ! matroskamux ! filesink location=test.mp4 ";
cv::VideoWriter writer;
writer.open(pipeline,0, (double)30, cv::Size(640, 480), true);
if (!writer.isOpened()) {
printf("=ERR= can't create video writer\n");
return -1;
}
if(cap.isOpened()){
cv::Mat frame;
while(1){
cap >> frame;
if (!frame.empty()){
cv::imshow( "Frame", frame );
writer<<frame;
char c=(char)cv::waitKey(40);
if(c==27)
break;
}
}
}
cap.release();
but i got these error
Inside NvxLiteH264DecoderLowLatencyInitNvxLiteH264DecoderLowLatencyInit set
DPB and
MjstreamingGStremer plugin:Embedded video playback halted;module appsrc0
reported:Internal Data flow
error.
Best Regards
Akrita
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list