added ffmpeg fading

This commit is contained in:
Ville Rantanen
2022-02-11 15:31:20 +02:00
parent 70e21a9175
commit f01ccd9449

View File

@@ -35,8 +35,7 @@ ffmpeg -i "$in" -vf vidstabtransform=input="$in".transforms.trf:zoom=0:smoothing
# Segment
-segment_time 00:15:00 -f segment -reset_timestamps 1 "$in.%03d.480p.mp4"
# Stacking
-i input0 -i input1 -filter_complex vstack=inputs=2
-i input0 -i input1 -filter_complex h stack=inputs=2
-i input0 -i input1 -filter_complex vstack=inputs=2 (OR/) hstack=inputs=2
# Chroma key
-f lavfi -i color=c=green:s=1920x1080 -i input.mp4 -filter_complex "[1:v]chromakey=0x297141:0.1:0.0[ckout];[0:v][ckout]overlay[o]" -map [o] -map 1:a
# View live
@@ -48,4 +47,6 @@ ffmpeg -i "$in" -vf vidstabtransform=input="$in".transforms.trf:zoom=0:smoothing
ffmpeg -i file.wav -codec:a libmp3lame -qscale:a 2 file.mp3
# Audio map
ffmpeg -i input.mp4 -i input.mp3 -c copy -map 0:0 -map 1:1 -shortest out.mp4
# Fade in/out
-vf "fade=t=in:st=0:d=1,fade=t=out:st=10:d=1" -af "afade=t=in:st=0:d=1,afade=t=out:st=10:d=1"
EOF