but when i use opencv ,i can get the h265 file which is a 0byte file.the snippet:
VideoWriter writer;
writer.open("appsrc ! omxh265enc ! filesink location=test1.h265 ", 0, (double)24.0, cv::Size(1280, 720), true);
for(;;)
{
Mat frame(1280,720,CV_8UC3);
cap>>frame; // get the frame OK
writer.write(frame);
}
writer.release();
i get the exe .when i execute it .i get:
Inside NvxLiteH264DecoderLowLatencyInitNvxLiteH264DecoderLowLatencyInit set DPB and MjstreamingInside NvxLiteH265DecoderLowLatencyInitNvxLiteH265DecoderLowLatencyInit set DPB and MjstreamingGStreamer Plugin: Embedded video playback halted; module appsrc0 reported: Internal data flow error.
opencv version: 3.2
my questions:
1.is there something wrong i have done?
2.i wanna know how to change the argus of gst-launch-1.0 to fix the VideoWriter::open().what argus should i write in the open() function.
hi AastaLLL ,thanks for your answer
i have seen the post you mentioned before.the solution is to add a space symbol at the end of the pipeline.
but i have the space in my snippet.besides,i tried the argus