Do the developer need to handle dts/pts or the library ?
HI all, I am developing rtsp player in android. Working with fundamentals first. What i did is 1) read the pack 2) Decode it 3) check if (received complete frame ) 3.1 If frame is complete, then Update Texture 4) Event loop 5) Render Copy, Render present. MY Question? 1) Do we need to take care of DTS/PTS while rendering the texture ? With the above logic for few seconds the display is perfect, after which the picture is scrambled. Kindly advice.
Keestu Pillo <get2jils <at> gmail.com> writes:
1) Do we need to take care of DTS/PTS while rendering the texture ?
You mean (just to make sure I understand correctly): Is the player responsible to make sure that the frames are shown at the correct time? How else should it work?
With the above logic for few seconds the display is perfect, after which the picture is scrambled.
Could this just be a reception problem? Carl Eugen
Thanks Carl for the reply. Sorry i am very new to this background. Hence getting lots of question. I do the below : 1) Read packet av_read_frame, 2) Decode it 3) Check if complete frame is received, 3.1 ) Render copy, render present. I am not doing any dts/pts calculation here. as a initial stage, my knowledge with the above code is , it just displays frame by frame but will not be in sync with what is running in the rtsp server. ' Kindly correct me if i am wrong? On Wed, Feb 5, 2014 at 2:31 PM, Carl Eugen Hoyos <cehoyos@ag.or.at> wrote:
Keestu Pillo <get2jils <at> gmail.com> writes:
1) Do we need to take care of DTS/PTS while rendering the texture ?
You mean (just to make sure I understand correctly): Is the player responsible to make sure that the frames are shown at the correct time? How else should it work?
With the above logic for few seconds the display is perfect, after which the picture is scrambled.
Could this just be a reception problem?
Carl Eugen
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
participants (2)
-
Carl Eugen Hoyos -
Keestu Pillo