You should use AAC for audio track. Avidemux has a number of AAC encoders, any of them will do.
For anything mp4 related you might want to use the latest Avidemux nightly rather than earlier versions like the last release.
https://avidemux.org/nightly/vsWin64/
Quote from: erkan_iii on March 30, 2020, 02:32:54 PM
Is there any software that can cut video between the keyframes without rendering the video.
In general, this is impossible without re-encoding at least a part of the video due to the very nature of video compression.
Now let's go into detail.
Not all keyframes are equal. All keyframes can act as a seek point, i.e. frames which allow to start playback without any broken, pixelated pictures spoiling the show. But only so-called IDR (instantaneous decoder refresh) keyframes allow to make a clean cut in a sense that no single frame following such a keyframe may depend on any frame preceding the IDR frame
in stream order (you should know that in modern codecs like H.264 and HEVC, the display order of decoded pictures may be different from their order in the data stream).
The fundamental feasibility of such a feature requires that
1. the keyframe following the cut point is an IDR and...
2. ...we can re-encode the part of the GOP after the cut point with exactly the same decoder parameter sets (the information which is supplied along the compressed image data and tells the decoder how to interpret this information) as used by the source video.
The second point is very difficult to achieve (it is very difficult to find a matching encoder configuration), the first one depends on the particular sort of stream you've got to edit. Many sources like digital television insert very few IDR frames into their streams, almost all keyframes are just seek points which doesn't allow a clean cut.
Avidemux doesn't support such "smart copy". Even if it would, the success would greatly depend on the particular source video and thus cause a lot of confusion.