I'm using the program ffmpeg on windows, I just downloaded the binaries setted the path variable of windows to be able of use it.
I'm ran ffmpeg with python and also just running the command in the cmd
#videos.txt
file C:/Users/freddydev/Videos/video1.mp4
file C:/Users/freddydev/Videos/video2.mp4
file C:/Users/freddydev/Videos/video3.mp4
file C:/Users/freddydev/Videos/video4.mp4
#python script:
import subprocess
import shlex
subprocess.run(shlex.split('ffmpeg -f concat -safe 0 -i videos.txt -c:v libx264 -c copy output.mp4'))
#cmd
ffmpeg -f concat -safe 0 -i videos.txt -c:v libx264 -c copy output.mp4
The output video plays fine the half of the video and after some 5 seconds it freezes and the final seconds of the video there is not sound.
I have downloaded multiple ffmpeg binaries from https://ottverse.com/ffmpeg-builds and I'm getting the same result.
My laptop is a core i5 with 12GB of RAM. The rendering is very fast only takes 2 seconds, I also used moviepy library with python and it takes more than 20sg to render the video but when I concatenate large videos this give me wrong frames in the video at the end.
What could I do to fix this problem with ffmpeg. Thanks so much.