Add fade to black transition to MP4 video #

3 methods, from least to most efficient. Original MP4 video clip ≈ 2.4MB.

Thanks to LordNeckbeard's tip and link to FFmpeg's fade filter documentation.

UPDATE:

Add fade in and fade out:

$ ffmpeg -i in.mp4 -vf "fade=in:0:10,fade=out:900:27" -acodec copy out.mp4

Concatenate MP4 files:

$ cat mp4s.txt 
file '/path/to/1.mp4'
file '/path/to/2.mp4'
file '/path/to/3.mp4'

$ ffmpeg -f concat -safe 0 -i mp4s.txt -c copy out.mp4

Added -safe 0 to resolve "Unsafe file name" error.

/mac | Nov 24, 2016


Subscribe or visit the archives.