[FFmpeg-user] Issue with combining mp4 audio file and an image
Randy Johnson
randy.johnson at hey.com
Wed Oct 28 23:05:01 EET 2020
I am having trouble getting this command right:
ffmpeg \
-loop 1 -framerate 30 -t 41.6 -i filler640480.jpg -i 79c11008-e36c-492d-
b776-a06d4cc6c0c0.mp4 -y \
-loop 1 -framerate 30 -t 5.408 -i filler640480.jpg -i 68a23b17-04b6-
4484-b9d8-77fddbe3689c.mp4 -y \
-f lavfi -t 0.1 -i anullsrc=channel_layout=mono:sample_rate=48000 \
-filter_complex "
[0:v]setsar=1[v0];[1:v]setsar=1[v1];[v0][1:a][v1][2:a]concat=n=4:v=1:a=1"
-vsync 2 1985-grid.mp4
Both of the MP4 files are audio only.
I am adding an image to combine the audion files into a video.
Here is the error I am getting:
Stream specifier ':a' in filtergraph description
[0:v]setsar=1[v0];[1:v]setsar=1[v1];[v0][1:a][v1][2:a]concat=n=4:v=1:a=1
matches no streams.
It looks like I was able to get it working with 1 loop.
This command seems to run fine:
ffmpeg \
-loop 1 -framerate 30 -t 1.4 -i filler640480.jpg -i 1e4eb136-0fe3-4e05-
93ae-6e2fa47e2b53.mp4 -y \
-f lavfi -t 0.1 -i anullsrc=channel_layout=mono:sample_rate=48000 \
-filter_complex " [0:v]setsar=1[v0];[v0][1:a]concat=n=2:v=1:a=1" -vsync
2 093-grid.mp4
Any help would greatly be appreciated.
Thank You,
Randy
More information about the ffmpeg-user
mailing list