[FFmpeg-user] Broken clipse, generated from images

Thomas Beyer thomas.beyer.geislingen at gmail.com
Mon Feb 5 21:16:35 EET 2024


I hope someone can help me out here, would really appreciate it :).

I created a video out of images, and then merged it with other videos.
The problem is that the final result is kinda broken - when I want to add
background music to it, it won't play the music on the parts with the video
generated by images, and on mobile phones it seems even more broken.

The commands I used:

Extracting the images from the video:
ffmpeg.exe -i E:\dev\chatgpt\temp11\peng\final\1_runway.mp4 -vsync 0 -f
image2 E:\dev\chatgpt\temp9\peng\final/1_runway-%06d.png

Then I edit the images, then merging them back with:
ffmpeg.exe  -i  E:\dev\chatgpt\temp11\peng\final\2_runway_final-%06d.png

This file now seems to be broken

Now when i merge this file with other mp4s via
ffmpeg.exe -f concat   -i
E:\dev\chatgpt\temp11\peng\\final\ENGLISH_ffmpeg_input.txt  -vcodec copy
-acodec copy E:\dev\chatgpt\temp9\peng\\final\ENGLISH_output.mp4

Ad then add background music via
ffmpeg.exe -i "E:\dev\chatgpt\temp11\peng\final\ENGLISH_output.mp4" -i
"E:\dev\chatgpt\background.mp3" -filter_complex
"[1:a]volume=0.2[a1];[0:a][a1]amix=inputs=2:duration=longest[a]" -map 0:v
-map "[a]" -c:v copy -c:a aac -shortest

the background music isn't played in the parts with the "video generated
from images".
Even VLC sometimes have problem displaying all parts correctly - that's why
I added Youtube-links - this seems to work somehow.

Does anyone have a clue how I can investigate further?

Thanks in advance!

Endfile with backgroundmusic

Without backgroundmusic

Standalone file - generated from images:

More information about the ffmpeg-user mailing list