Use FFMPEG to Merge many frames into one video? -
with project working on, taking 1 video, extracting frames within middle, 00:55:00 00:57:25. after extract these images, modifying them via code , need compile these images video. finish off, merge video original video.
ive pulled frames video, modified them, need merge them video.
i used question check format, not getting correct output.
here current input ffmpeg:
-r 24.97 -i "c:\users\scott\appdata\local\temp\ios91azj0.bmp" -r 24.97 -i "c:\users\scott\appdata\local\temp\ios91azj1.bmp" -r 24.97 -i "c:\users\scott\appdata\local\temp\ios91azj2.bmp" -r 24.97 -i "c:\users\scott\appdata\local\temp\ios91azj3.bmp" -r 24.97 -i "c:\users\scott\appdata\local\temp\ios91azj4.bmp" -r 24.97 -i "c:\users\scott\appdata\local\temp\ios91azj5.bmp" -r 24.97 -i "c:\users\scott\appdata\local\temp\ios91azj6.bmp" -r 24.97 -i "c:\users\scott\appdata\local\temp\ios91azj7.bmp" -r 24.97 -i "c:\users\scott\appdata\local\temp\ios91azj8.bmp" -an -r 24.97 "c:\users\scott\appdata\local\temp\eweljda8.mp4"
edit
my current output gives me video doesn't play. reason, merging of frames isn't correct format , ffmpeg isn't giving me reasonal output work with.
how merge frames video?
there several ways accomplish this. first using pattern merge images incremental video:
ffmpeg -y -start_number 0 -i "c:\users\scott\appdata\local\temp\ios91azj%d.bmp" -c:v libx264 -r 24.97 -pix_fmt yuv420p /media/test/output.mp4
the next, specify individual images in single command:
ffmpeg -y -loop 1 -i img1.png -loop 1 -i img2.png -filter_complex '[0:v] [1:v] concat=n=2:v=1 [v]' -map '[v]' -c:v libx264 -r 24.97 -pix_fmt yuv420p /media/test/output.mp4
Comments
Post a Comment