<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 14, 2014 at 1:50 PM, Sethuraman V <span dir="ltr"><<a href="mailto:techmail.sethu@gmail.com" target="_blank">techmail.sethu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="color:rgb(0,0,153)"><br></div><div><div style="color:rgb(0,0,153)">I can't understand why an 'I' frame read from a video file can't be written/encoded back to the video file. For other frames 'P' and 'B' there are dependencies, so writing/encoding the complete frame can't be done, but why this applies to 'I' frame too, which is a separate frame on its own.</div><div style="color:rgb(0,0,153)"><br></div></div></div></blockquote><div><br></div><div>Hi,</div><div><br></div><div> The P and B frames depend on nearby I frames. Also, when you re-encode an I frame, there is no reason to expect it to be the same size as it was before.</div><div><br></div><div> So in the general case, you have to re-encode every frame after the I frame in addition to the I frame. This can of course vary based on GOP structure.</div><div><br></div><div> It's not a practical thing to do.</div><div><br></div><div>Regards,</div><div>Ben</div><div><br></div></div><br clear="all"><div><br></div>-- <br><span style="font-family:Arial,Helvetica,sans-serif;font-size:medium"><div style="vertical-align:bottom;display:inline"><span style="font-size:22px"><b>Ben Mesander</b></span></div><img src="http://www.cardinalpeak.com/img/CP_logo_rgb_sm.jpg" style="margin-left:20px"> </span><div><span style="font-family:Arial,Helvetica,sans-serif;font-size:medium"><span style="font-size:12px">(303)570-1606 | <a href="mailto:email@cardinalpeak.com" style="color:rgb(162,30,34)" target="_blank">Email</a> | <a href="http://www.cardinalpeak.com/vcard/bmesander.vcf" target="_blank"><font color="#990000">vCard</font></a> | <a href="http://www.cardinalpeak.com/" style="color:rgb(162,30,34)" target="_blank">Web</a> | <a href="http://www.cardinalpeak.com/blog" style="color:rgb(162,30,34)" target="_blank">Company Blog</a> | <a href="https://cardinalpeak.basecamphq.com/projects/6118601/file/79455231/Linked%20In%20url" style="color:rgb(162,30,34)" target="_blank">LinkedIn</a></span></span></div>
</div></div>