#!/bin/sh -x
# $1 - input video file, e.g. video.mp4
# $2 - timestamp, e.g. 00:33
# $3 - output image file, e.g. output.jpg
ffmpeg -ss $2 -i $1 -vframes 1 -q:v 2 $3
#!/bin/sh -x
# $1 - input file, e.g. input.mp4
ffmpeg -i "$1" -q:v 2 %06d.jpg
ffmpeg -f image2 -framerate 30 -i %06d.jpg -c:v libx264 out.mp4
@ankurbhatia24
Edit: read your link after writing below. What I suggested is what the person report as an issue. I guess I don't know.
My first bullet was asking what you want to do in the first place. It looks to me you want to modify just <2> of the video and not anywhere else. May be there is another road. For example, instead of concat, get all frames for the entire video, then make the modification to <2> frames, then assemble all frames back to a video.