Stas Oskin wrote:
[...]
>> You have to set your time base so that all the timestamps can be multiple
>> of the time base. This (as far as I understand) is what Rich is also saying
>> in the email you quote. So, where are your timestamps coming from? In which
>> time unit are they expressed? Just set the time base to this time unit, and
>> you are done...
>>
>>
> I'm getting these timestamps in two variables:
> * seconds since Linux epoch (~1970)
> and
> * milliseconds, which reset every second
>
> According to this I presume that my timeunit is millisecond, so setting the
> time base to 1/1000 should work?
Yes, I think so.
>>> b) Use same value both for format and codec timebases.
>> I am not sure about this.
>>
>
> Do you know what needs to be then in each of them then?
I do not know... As I said, I never used variable frame rate.
[...]
>> Assuming that there is no bug in libav* and you ara using a codec/format
>> which supports variable frame rate, if you use the input timestamps and
>> the result does not play well, this might mean that your input timestamps
>> are wrong.
>> If I remember well, you are using some strange SDK for the input, which
>> associates questionable timestamps to the frames...
>>
>
> Actually, these were bugs in my code :). I'm currently using the SDK
> timestamps deltas for live RTP streaming, and this works just fine.
Why deltas? I think you should use the timestamps directly...
Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user