Video and audio are not synchronized in mp4 container
I have small utility that reads annex-b h264 and adts aac streams from two pipes and writes them to one mp4 container. Both pipes have live streams from v4l2 and alsa devices. As you can see, I added is-live property to fdsrc. Without this property pts and dts of the video stream were corrupted.
The problem is that video and audio streams in mp4 file are not synchronized (or something else). Video looks good, but audio stream has periodically pauses about one second long. There are same pauses in audio stream after remuxing it from mp4 container with audio and video streams to another mp4 container without video stream. But result is good if I first mux only audio stream from audio pipe to mp4 container without video stream. So, I think that video stream affects to this problem.
I already tryed to set sync property of splitmuxsink to true or false. It did not help.