Opencv error on Gstreamer
Akrita
AkritaBehet at yahoo.com
Sun Feb 2 17:15:49 UTC 2020
Hi
I also developed this
cv::VideoCapture cap(0);
std::string pipeline = "appsrc ! autovideoconvert ! omxh265enc ! matroskamux
! filesink
location=test.mkv ";
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;
}
but got this error!!!!!!!!
GStreamer Plugin: Embedded video playback halted; module appsrc0 reported:
Internal data flow error.
i dont really know what should i do <smiley
image="anim_confused.gif"/>
Regards,
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list