[FFmpeg-user] xfade works perfectly on any videosrc or video file, but not for images?

Arif Driessen arifd86 at gmail.com
Sat Sep 25 00:32:54 EEST 2021


I have a work around:

# Generate a temp thumbnail video which we will insert back into
${THUMBNAIL}
# Because for some reason taking an image input is broken! :(
ffmpeg -loop 1 -i ${THUMBNAIL} -t ${THUMBNAIL_HOLD_SECONDS} -c:v libx264
-qp 0 -crf 0 -preset veryfast ${TMP_DIR}/temp_thumbnail.mkv
THUMBNAIL=${TMP_DIR}/temp_thumbnail.mkv

Then i just have to match the timebase of the generated video and it works.

I thought about using -c:v copy, which works, is about 10 times slower, but
also creates 10 times the disk space, and I bet writing and then reading
back from the disk is more costly than the compression.


More information about the ffmpeg-user mailing list