user12358: I'd like to add some images at the end of a mp4 file via ffmpeg:

Any help would be greatly appreciated.

user1871: Use this command:
ffmpeg -i "video" -loop 1 -t 3 -i "image" -f lavfi -t 3 -i anullsrc -filter_complex "[0:v] [0:a] [1:v] [2:a] concat=n=2:v=1:a=1 [v] [a]" -c:v libx264 -c:a aac -strict -2 -map "[v]" -map "[a]" output.mp4

Replace the t value with the duration that you want the image to stay. I've supplied the common encoding parameters. Replace those as needed.
For an image sequence, use
ffmpeg -i "video" -f image2 -framerate n -i "image" -f lavfi -t 3 -i aevalsrc=0 -filter_complex "[0:v] [0:a] [1:v] [2:a] concat=n=2:v=1:a=1 [v] [a]" -c:v libx264 -c:a aac -strict -2 -map "[v]" -map "[a]" output.mp4

Replace the n in framerate with the rate that you want.

12358: <p>I'd like to add some images at the end of a mp4 file via ffmpeg:</p>

<p><a href="https://i.stack.imgur.com/eN0Mh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/eN0Mh.png" alt="enter image description here"></a></p>

<p>Any help would be greatly appreciated.</p>
 1871: <p>Use this command:</p>

<pre><code>ffmpeg -i "video" -loop 1 -t 3 -i "image" -f lavfi -t 3 -i anullsrc -filter_complex "[0:v] [0:a] [1:v] [2:a] concat=n=2:v=1:a=1 [v] [a]" -c:v libx264 -c:a aac -strict -2 -map "[v]" -map "[a]" output.mp4
</code></pre>

<p>Replace the <code>t</code> value with the duration that you want the image to stay. I've supplied the common encoding parameters. Replace those as needed.</p>

<p>For an image sequence, use</p>

<pre><code>ffmpeg -i "video" -f image2 -framerate n -i "image" -f lavfi -t 3 -i aevalsrc=0 -filter_complex "[0:v] [0:a] [1:v] [2:a] concat=n=2:v=1:a=1 [v] [a]" -c:v libx264 -c:a aac -strict -2 -map "[v]" -map "[a]" output.mp4
</code></pre>

<p>Replace the <code>n</code> in framerate with the rate that you want.</p>
