<div dir="ltr">Dear all:<div>    When I play rtsp stream with android device and ffmpeg 2.2.1, I found that the pts value of first successfully decoded frame is:</div><div>        Url rtsp://<a href="http://192.168.0.129/12">192.168.0.129/12</a> stream 0: first decoded success at delta 2090, pts 3494863833 | stream.cpp:204</div>
<div>    I print this log with the following code:</div><div>        do {</div><div><div>            av_decode_video2(mpCodecContext, &frame, &frameFinished, ppacket);</div></div><div>            if (frameFinished <= 0)</div>
<div>                continue;</div><div>            if (!isFirstDecoded) {</div><div>                isFirstDecodec = true;</div><div>                LOG("Url %s first decoded success at delta %d,  pts: %lld", ..., (long long int)ppacket->pts);</div>
<div>            }</div><div><br></div><div>            // TODO process packet</div><div>        } while (isRun);</div><div><br></div><div>    The pts value on X86 with ffmpeg 2.2.1 is right, but not for android.</div><div>
<br></div><div>    Because I need to sync multi rtsp streams so I nned to use the pts values of streams.</div><div>    But now the pts values of streams is vary large and nearly randomly value, so I cannot position the stream start time, also I cannot sync the streams.</div>
<div>    Cannot anybody help about, how can I get the right pts value? or how to sync multi rtsp streams?</div><div>    Thanks very much.</div><div><br></div><div>SIncerely</div><div><br></div></div>