<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;color:#444444"><div class="gmail_default">Hi,</div><div class="gmail_default"><br></div><div class="gmail_default">I think I already know the answer but I want to play UDP stream (h264 & klv) in an android app, and be able to toggle a "recording button" to save the data as a file with the exact same input parameters than what is sent to be.</div><div class="gmail_default">The only way to do this isĀ  to decode the whole frame (to display it) and reencode it when the button is pressed, right?</div><div class="gmail_default"><br></div><div class="gmail_default">Because of the h264 I am not sure when the button is pressed I have a keyframe already, so there is no other way than doing this way?</div><div class="gmail_default"><br></div><div class="gmail_default">Thanks for this clarification,</div><div class="gmail_default">Audric</div></div></div>