On Thu, Sep 5, 2013 at 4:53 AM, YIRAN LI <
mrfun...@gmail.com> wrote:
> Hi friend,
>
> I'm writing an application using ffmpeg libs on Windows (with
> --enable-libvpx).
>
> Today I found something strange. In this application we call
> avcodec_encode_video2 first to get a AVPacket instance and write this packet
> into file with av_write_frame
>
> I found that the pst values of returned packet is correct, they are 1, 2, 3,
> 4 .... (in input video stream time base). but dts values are always 0. I
> transferred the pts values to corresponding values (in output video stream
> time base) and keep 0 for dts. Then the webm files generated in this way
> can't be played correctly in ffplay (reported warnings of 0 DTS).
value. The wrapper has always forwarded the pts from the input frame.