Hi,
Stas Oskin wrote:
> I do not think this is a good idea. If timestamps are in milliseconds, just
>> set the time base to 1/1000. Your current problem (looking at the videos
>> you
>> posted) is not that the video is variable frame rate, nor that you are
>> using
>> a wrong time base. The problem is that frames and timestamps are generated
>> in
>> a funny way. I do not know if your SDK is providing you with these broken
>> timestamps, or if there is something wrong somewhere else...
>
>
> SDK provides them indeed - but same timestamps are used in RTP streaming,
> which works just fine.
Then, there are two possibilities:
1) there is some bug in the code you use for writing an mp4 file (and the
bug is not present in the code you use for RTP streaming). Maybe in the
code used for converting the timestamps
2) you found a bug in libavformat. In this case, you should try to write
a small test program that reproduces the bug, so that people can fix it.
Try to print the input timestamps, and the timestamps you read from the mp4
file (see previous email), and compare them...
Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user