Hello:
I have one audio file (aac format) named: 1.aac, and one video file (mp4 format) named: 1.mp4, the video file has no audio, and its duration is 5 seconds longer than the audio file.
Let’s say that: 1.aac file has duration of 55 seconds, and 1.mp4 file has duration of 1 minute.
I want to make one video file: merge.mp4 with audio from 1.aac, and video from 1.mp4.
But with one requirement that the audio start from the 5th second, therefore, the audio and video will end at the same time at the end of merge.mp4.
I can’t find any example on how to do this using MP4Box, however, FFMPEG has such parameter, but I prefer to use MP4Box, as it is faster and better.
I am using MP4Box version 2.0 on Windows 10.
Please advise,
Thanks,
+ Reply to Thread
Results 1 to 4 of 4
-
-
You can use clever Ffmpeg-GUI.
Load your mp4 video, click main, click multiplex, add the aac audio stream, insert 5000 in the audio stream Delay column, click multiplex. Done.Last edited by ProWo; 4th May 2022 at 11:56.
-
Code:
-delay tkID=TIME (string): set track start delay in ms
eg
Code:"mp4box" -add "video.h264"#1:fps=blah -add "audio.aac"#2:delay=5000 -new "output.mp4"
You can use a muxing delay, but a better strategy is to add blank audio so the delay is zero. Sometimes software or hardware can mishandle delays, especially large ones
Similar Threads
-
How to download a ts stream and with a video/audio time delay?
By BosseB in forum Video Streaming DownloadingReplies: 8Last Post: 10th Mar 2021, 19:21 -
Combine two files; video from one and audio from the other
By PrinceOfAbyss in forum Video ConversionReplies: 4Last Post: 30th Mar 2020, 10:30 -
audio delay after encoding a video
By SomeoneNeutral in forum RestorationReplies: 2Last Post: 10th Sep 2019, 14:36 -
How to precisely determine the delay (in ms) when muxing video and audio
By vangeliis in forum MacReplies: 7Last Post: 28th Mar 2019, 13:56 -
Simple software powered by FFmpeg to combine audio and video track
By adelta in forum Video ConversionReplies: 3Last Post: 24th Jun 2017, 12:23