How to sample_encode input file's input frame rate?

How to sample_encode input file's input frame rate?

Hi all,

I am looking into the sample_encode application of Intel Media SDK. I have seen option like -f to specify the frame rate of encoded stream. Is there any way to customize the sample_encode application so that the input frames are taken for processing in 30fps only? I understood that Intel Media SDK APIs work in an asynchronous manner. So on just skimming through the source code, i found it difficult to find the code portion where I need to change so that input frame rate can be changed? I am using a YUY2 file of resolution 1280x720 which I pass as nv12.

Thanks,

Lullaby

 

 

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

Hi Lullaby,

To achieve rate control of input I suggest you just add a timer to measure the amount of time passed between each encoded frame (incl,. VPP in your case). The based on the measured time you can insert appropriate delay before submitting new frame to VPP/Encode. (for VPP+Encode case that means you measure and delay just before the RunFrameVPPAsync call)

Regards,
Petter

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya