[FFmpeg-user] Replacing video segments with JPGs?

James Darnley james.darnley at gmail.com
Sat Dec 22 00:42:53 CET 2012

On 2012-12-21 13:30, Gilles wrote:
> Hello
> I need to edit a video stream where some segments will be replaced
> with JPGs.
> This is a conference where the camcorder was shooting the speaker the
> whole time, and I need to insert some JPGs from the PowerPoint
> presentation. I don't know how this action is called in video-speak.
> Can ffmpeg do this, eg. something like:
> 'at 1mn30 for 10 secondes, replace video with JPG
> ffmpeg -i input.mpg -ss 01:30 -t10 -v:insert myfile.jpg output.mpg

May I suggest Avisynth?  It would be fairly easy even if not very short
to write this out in a script.  You can even have ffmpeg encode it for
you when you're done.

Based on your example and making a few assumptions:
src = FFmpegSource("video")
img = ImageSource("image")
vid = Trim(vid, 0, 2249) ++ Trim(img, 0, 249) ++ Trim(vid, 2500, 0)
AudioDub(vid, src)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 552 bytes
Desc: OpenPGP digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20121222/b6c7cf6a/attachment.asc>

More information about the ffmpeg-user mailing list