lkppeak.blogg.se

Ffmpeg concat video then the video is weird
Ffmpeg concat video then the video is weird








ffmpeg concat video then the video is weird

So, I think the problem is in the encoding process. I added up every video duration and I got 598.56. The original one lasts 596.45 seconds and the encoded lasts 598.56. The problem is that the "concated" video is longer than the original by 2.11 seconds. Once all the scenes are encoded I need to concat them and for that what I do is to create a list with the video names and then run the ffmpeg command.Ĭommand: ffmpeg -f concat -i list.txt -c copy big_buck_bunny.mp4 Basically what it does is to take the current and previous frames, then convert them to time and finally run the ffmpeg command: begin=$(awk 'BEGIN')įfmpeg -i $video -r 24 -c:v libx265 -f mp4 -c:a aac -strict experimental -b:v 1.5M -ss $previous -t $time "output$count.mp4" -nostdinĪfter all this explained it comes the problem. So, I made a bash script which encodes all this scenes.

ffmpeg concat video then the video is weird

The first scene begins from the frame 1 to 285, the second from 285 to 378 and so on. The first one is using a Python application which gives me a list of frames that represent scenes. At this moment I got two solutions in order to do so.










Ffmpeg concat video then the video is weird