[FFmpeg-user] Broken clipse, generated from images
Thomas Beyer
thomas.beyer.geislingen at gmail.com
Mon Feb 5 21:16:35 EET 2024
Hello,
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
E:\dev\chatgpt\temp9\peng\final\5_runway_final.mp4
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
"E:\dev\chatgpt\temp10\peng\final\ENGLISH_output_background.mp4"
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
Dropbox:
https://www.dropbox.com/scl/fi/peouyis2eezakc91mzfvt/ENGLISH_output_background.mp4?rlkey=4yfcyxzvh6fa3w0qxbiaz4auf&dl=1
Youtube:
https://www.youtube.com/watch?v=9gV6wP08lWA
Without backgroundmusic
https://www.dropbox.com/scl/fi/7543al9kngtkdy92rqhe3/ENGLISH_output.mp4?rlkey=og6jnxgbqwc2r6gxg2xpphfwc&dl=1
Youtube:
https://www.youtube.com/shorts/1zIRFs6bYgU
Standalone file - generated from images:
https://www.dropbox.com/scl/fi/cy46ngkvoofnf7mur420i/3_runway_final.mp4?rlkey=70emr5t9dv53s5rcz4qaygwla&dl=1
More information about the ffmpeg-user
mailing list