FFMPEG, Extract first frame and hold for 5 seconds I'm trying to overlay a 15 second video transition on the beginning of an image sequence (png sequence with an alpha to reveal the image below), which I can do fine with the overlay filter.  But I want to hold the first frame of the image sequence for 5 seconds before playing the animation.  I've tried trim/select but I can't seem to get it be a duration of 5 seconds, I also can't seem to concat it back with the other video to do the transition. So my questions are:


How do I get the first frame and hold it for 5 seconds, the method below works but doesn't seem like the best method? 



  -start_number 501 -framerate 30 -t 60.0 -i input1.%04d.jpg -framerate 30 -t 15.0 -i transition1_%03d.png -filter_complex "color=c=red:d=5:s=480x270:r=30[bg]; [bg][1:v]overlay[transhold]; [0:v][transhold]overlay=repeatlast=0[out]"



Can I then easily concat that with the original or is it better to do two overlays with the start of the actual transition offset by the length of the hold?


Thanks

Nick
Use

ffmpeg -start_number 501 -framerate 30 -t 60.0 -i input1.%04d.jpg 
       -framerate 30 -t 15.0 -i transition1_%03d.png
       -filter_complex "[0]loop=149:1:0[bgheld5];
                        [1]loop=149:1:0[fgheld5];
                        [bgheld5][fgheld5]overlay=eof_action=pass"  out.mp4


The first frames of both sequences are repeated 149 times, so that there are 150 instances (30 fps x 5s). The 0 at the end of loop is the starting index of the frame(s) to loop. The middle 1 is the number of frames to loop starting at the index in the 3rd argument.