Hi, All,

I'm trying to use libavcodec (without libavformat) to encode my own bitmap frames stream into H.264-based FLV. I have my own code for FLV format writing, and it works well for H.263. Now I'm trying to add H.264 encoding to this my project.

The main unclear point is about so called Composition Time Offset (CTO) which should be saved in every video frame of the FLV stream. I see, that libX264 internally provides both dts and pts values, measured in time_base units. And CTO = PTS - DTS. But I don't see a way to transfer dts value to calling procedure, because of the problem, mentioned in the libx264.c code:

/* FIXME: libx264 now provides DTS, but AVFrame doesn't have a field for it. */
x4->out_pic.pts = pic_out.i_pts;

My question is: has anybody an idea, how to overcome this issue? Any help would be appreciated.

Best regards,
Alex
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to