'Adjust Audio Start Point by 3 Frames

Because of an issue with my audio recorder, I have audio files that are always 3 frames behind the start of my video files, even though they have identical timecode. Currently, I am overcoming this issue by using -itsoffset, like so:

ffmpeg -i video.MP4 -itsoffset 0.12512513 -i audio.WAV -c:a aac -map 0:v:0 -map 1:a:0 new.mp4

Where 0.12512513 is 3 divided by 23.976. The results of this are satisfactory, but is contingent on all of my footage being shot in 23.976.

However, since I spoke to tech support for the device and they assured me it will always be off by exactly three frames, I'm wondering if there is a faster and more universal way to do this, either a) a command like -itsoffset that accepts frames as a starting point, or if the better solution is to just cut off the first three frames of the video, which would also put them in sync. I have tinkered with trim=start_frame=3 but I can't figure out the correct position to place it within the command.

Any advice from experienced ffmpeg'ers would be much appreciated!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source