<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Hello Experts!</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span class="Apple-tab-span" style="white-space:pre"> </span>I have MPEG4 stream from rtsp server. I could decode it and play it using ffmepg library.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span class="Apple-tab-span" style="white-space:pre"> </span>I stored the stream as binary files for later playing using ffmpeg library. </div><div style="font-family: 'times new roman', 'new
york', times, serif; font-size: 12pt; "><span class="Apple-tab-span" style="white-space:pre"> </span>I can play the stream in forward direction - just I want to feed the ffmpeg decoder with stored frames.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div>A)<span class="Apple-tab-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; white-space: pre; "> </span><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" size="3"><b>Now, my requirement is to play the stream in reverse direction</b>. Can you ppl suggest me a way to </font><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">accomplish this?</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" size="3"><span class="Apple-tab-span" style="white-space:pre"> </span>I tried to feed the stored
packets/data in reverse way but of course it's giving bad stream (distorted and ill-motion video display).</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" size="3"><span class="Apple-tab-span" style="white-space:pre"> </span>Is there any trick through which decoder can understand about reverse playing? Is reverse playing possible with ffmpeg decode?</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" size="3"><br></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" size="3">B)<span class="Apple-tab-span" style="white-space:pre"> </span>Also, what is key frame in MPEG4 video stream? How can I understand key frame?</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" size="3"><span class="Apple-tab-span" style="white-space:pre"> </span>If I could understand
key frame, does decoder give a good decoded frame when I fed it with key frame?</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" size="3"><br></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" size="3"><span class="Apple-tab-span" style="white-space:pre"> </span>My understanding is that when I feed MPEG4 key frame, ffmepg will output good decoded frame</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" size="3"><span class="Apple-tab-span" style="white-space:pre"> </span>- meaning key frame does not depend on other frames to produce good decoded frame output. Is it correct?</font></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Thanks,</div><div
style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">-Amol.</div></div></body></html>