Stas Oskin wrote:
[...]
>> What do you mean by "re-stream them with the same period"? Surely, you
>>  have to fill AVPacket with the timestamps values coming from the SDK
>>  (be careful with PTS/DTS differences...). And then you can try to
>>  send out the frames as soon as the SDK provides them.
>>
> 
> Quick 2 questions:
> 1) How do I convert timestamp (consisting of seconds and miliseconds)
> into the PTS - what is the correct FFMPEG function for this?

your timestamps are probably expressed in ms. I think you should first
express them to a 64bit integer (seconds * 1000 + milliseconds), and
then convert them to the stream time_base by using av_rescale_q() or
av_rescale().


> 2) If I have no B frames, then I can ignore the DTS?

I think yes, but I am not sure.


                                Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to