If i don't set the pts values, i get after encode_video2() pts values 1,2,3... 
If I print the encodedPkt.duration, it always return 0. Do you have an example 
on how to rescale pts and dts values?

Thanks for your support,

Francois

Le 14 juil. 2013 à 09:16, Luca Barbato <[email protected]> a écrit :

> On 07/13/2013 12:54 PM, Francois PEDEBOSCQ Yahoo wrote:
>> If i remove the redefinition of encodedPacket.pts  before
>> av_interleaved_write_frame the encoded file would not even play in
>> VLC. VLC does not recognize its duration.
> 
> Try printing the values returned, maybe you have to rescale them.
> 
> lu
> _______________________________________________
> libav-api mailing list
> [email protected]
> https://lists.libav.org/mailman/listinfo/libav-api
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api

Reply via email to