Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
888 views
in Technique[技术] by (71.8m points)

ffmpeg - make a seemless loop

I'm trying to make a seamless loop in ffmpeg

The video has a length of 10 Seconds. This is the source

The command I'm using is:

ffmpeg -i video.mp4 -filter_complex "[0]split[body][pre]; [pre]trim=duration=1,format=yuva420p,fade=d=1: alpha=1,setpts=PTS+(9/TB)[jt]; [body]trim=1,setpts=PTS-STARTPTS[main];[main][jt]overlay" output.mp4

the video is looping seamlessly but my problem is, that the fade from the first video to the second is visible...

Thank you

question from:https://stackoverflow.com/questions/65911012/ffmpeg-make-a-seemless-loop

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...