[FFmpeg-user] Properly adding a cross fade to a video of 1 second or so
Moritz Barsnick
barsnick at gmx.net
Tue Apr 12 23:21:20 CEST 2016
Hi David,
On Tue, Apr 12, 2016 at 09:11:58 -0700, David McKay wrote:
Apart from Lou's very important remark:
> I am trying to add a cross fade to a video of around 1 second each. Please
> find my input and the ouptut here : http://pastebin.com/AG3UJguT .
a) Please put it on the list.
b) You didn't actually paste everything, it ends as such:
Output #0, mp4, to '/userVideos/faderVID_20160412_0851061460476266210.mp4':
Metadata:
major_brand : iso6
minor_version
That's not where ffmpeg ends.
> Command : -i /userVideos/cutterVID_20160412_0851061460476266191.mp4 -i
> /userVideos/cutterVID_20160412_0851051460476265866.mp4 -r 30.01 -f lavfi -i
> color=black:s=1280x720 -filter_complex
> [0:v]fade=t=out:st=0:d=1:alpha=1,setpts=PTS-STARTPTS[va0];[1:v]fade=t=in:st=0:d=1:alpha=1,setpts=PTS-STARTPTS[va1];[2:v]trim=duration=1.0[over];[over][va0]overlay[over1];[over1][va1]overlay[outv]
> -vcodec libx264 -map [outv]
> /userVideos/faderVID_20160412_0851061460476266210.mp4
What are you trying to achieve with -r 30.01? (BTW, both your input
videos report 30.02. Why did you choose 30.01?) For setting the
framerate of the color video source, use
-f lavfi -i color=black:s=1280x720:r=30.02
And you don't need to trim, the color source also has a "duration"
parameter.
(About the rest I'm not sure. Fix the color source first, then provide
the log please.)
Moritz
More information about the ffmpeg-user
mailing list