transitive-bullshit / ffmpeg-concat

Concats a list of videos together using ffmpeg with sexy OpenGL transitions.
863 stars 113 forks source link

Transition happening 5 seconds earlier #150

Open thorapps opened 1 year ago

thorapps commented 1 year ago

Hi, I'll like to concat 3 videos each of them are 17 seconds longs.... I'll like the transition to last 0.5 seconds.... but the transition takes place at second 11 of the video, not at 16.5...

Here's my command: ffmpeg-concat -t crosszoom -d 500 -o output.mp4 input1.mp4 input2.mp4 input3.mp4

Am I missing something?

transitive-bullshit commented 1 year ago

Can you upload your 3 videos so I can try to reproduce?

thorapps commented 1 year ago

I have tried with another video and works well, with mine not! The thing with my video is that the last 5 or 6 seconds is a fixed image, so maybe fools the transition...Can I sent the video to you in private?

thorapps commented 1 year ago

Hi, I have insvestigated more.. and I found that the video I'll like to make the transition is somehow broken, in a player it show it lasts 17 seconds, but in reality the video breaks at second 12th. The video is the output of a ffmpeg command... which produces a broken video.. so it seems that the transition is not the culprit but ffmpeg is! the ffmpeg command that seems to break the video is : ffmpeg -y -i input_video.mp4 -i timer.mov -filter_complex "[1:v]setpts=PTS+3/TB[v]; [0:v][v]overlay=100:100:enable=gte(t\,3):shortest=1,format=yuv420p[out]; [1:a]adelay=3s:all=1[a1];[0][a1]amix[a]" -map [out] -map [a] -c:v libx264 -crf 18 output.mp4

thorapps commented 1 year ago

I've found problem on my command, the problem ws the "shortest=1", removing it everything goes well! Thanks for that superb software you've developped!