cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
deepg799
Explorer
Explorer
466 Views
Registered: ‎01-20-2019

Encoding using VCU Codec using OpenCV programming

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.

0 Kudos
1 Reply
watari
Teacher
Teacher
346 Views
Registered: ‎06-16-2013

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,

0 Kudos