[Libav-user] Create an encoded interlaced frame

ronnys ronny.lim at imt-solutions.com
Fri Feb 6 20:28:03 CET 2015


Hi All,

I would like to create an encoded interlaced frame using libav. The input is
simply a dummy image like in the libav example. I understand that the
interlaced video frame consist of two fields ( top and bottom ). My goal is
to get the fields data from the encoded frame. I wonder what is the right
approach to get the fields data.

I think I should have two dummy image and utilize avcodec_encode_video
function to generate the two frames which one is top and the other is bottom
field. Then, I need to set some parameters in the AVCodecContext in order to
set the encoder to do interlaced such as:

codecCtx->flags |=  CODEC_FLAG_INTERLACED_DCT;
codecCtx->flags |=  CODEC_FLAG_INTERLACED_ME;

Should I set the field_order to get the top / bottom field ? Please let me
know what you think and correct me if I am wrong. Thank you.

Best,

Ronny



--
View this message in context: http://libav-users.943685.n4.nabble.com/Create-an-encoded-interlaced-frame-tp4660872.html
Sent from the libav-users mailing list archive at Nabble.com.


More information about the Libav-user mailing list