I found this somewhere:<br><br><font face="arial, helvetica, sans-serif">"<span style="background-color:rgb(238,238,238);font-size:0.93em;line-height:1.3em;text-align:left;white-space:pre-wrap">The first frame of one of the videos will also be repeated in the </span></font><div>
<div style="text-align:left"><font face="arial, helvetica, sans-serif"><span style="font-size:12px;line-height:15px;white-space:pre-wrap">beginning if the videos that have different initial timestamps."</span></font></div>
<div style="text-align:left"><font face="arial, helvetica, sans-serif"><span style="font-size:12px;line-height:15px;white-space:pre-wrap"><br></span></font></div><div style="text-align:left"><font face="arial, helvetica, sans-serif"><span style="font-size:12px;line-height:15px;white-space:pre-wrap">I guess that was what was happening, even though I was attempting to set both initial timestamps to 0. Just as a test I changed the overlay setpts to -10 and now it plays the video properly, although I don't really understand why.</span></font></div>
<div style="text-align:left"><font face="arial, helvetica, sans-serif"><span style="font-size:12px;line-height:15px;white-space:pre-wrap"><br></span></font></div><div class="gmail_quote">On Thu, Feb 16, 2012 at 12:28 PM, Kenneth Gibson <span dir="ltr"><<a href="mailto:kennethjjgibson@gmail.com">kennethjjgibson@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div><br></div><div>I'm trying to overlay a .mp4 on top of another .mp4 programmatically.</div><div><br></div><div>
This is my filter description:<br><br>"movie=myvid.mp4, setpts=PTS-STARTPTS [movie]; [in] setpts=PTS-STARTPTS, [movie] overlay=0:0 [out]"</div>








<div><br></div><div>This results in only the first frame of myvid.mp4 being overlaid on my video. And the first frame persists for the length of the video, like it is a static image.</div><div><br></div><div>My code is basically identical to that of <a href="http://ffmpeg.org/doxygen/trunk/filtering_8c-source.html" target="_blank">filtering.c</a> (the difference being that I output the result into a .mp4)</div>

<div><br></div><div>What would cause the filter to only overlay the first frame?</div><div><br></div><div>Cheers</div>
</blockquote></div><br></div>