08-01-2020 09:28 AM - edited 08-01-2020 09:48 AM
Dear All,
I hope all are doing great.
Is there any way to compile the OpenCV library with H-264/265 hard codec unit support or how do we can use the VCU codec unit to encode the raw data by using OpenCV application programming?
The following code is to encode and store the frame in a file by using the OpenCV videowrite function.
VideoWriter video("outcpp.mp4",CV_FOURCC('H','2','6','4'),30, Size(300,300)); // using VCU as a encoder pungline. video.write(img);
problem
Not able to encode & store the frame and the application is throwing the below warning message. seems OpenCV is using the softcore to encode the frame that does not support .mp4 format.
OpenCV: FFMPEG: tag 0x34363248/'H264' is not supported with codec id 28 and format 'mp4 / MP4 (MPEG-4 Part 14)' OpenCV: FFMPEG: fallback to use tag 0x00000021/'!???'
It will be highly appreciated if someone could share the same code for the same or any alternative way to achieve the same goal.
thanks in advance.
08-06-2020 04:21 PM
Hi @deepg799
How do you use openCV ? by python ? by your own c lang. source code ?
Also, what is your source device to encode video stream ?
It seems ffmpeg issue. Not related to VCU.
Would you make sure whether you set proper parameter on related pipeline or not, too ?
Best regards,