Im trying to insert an audio (which i edited in audacity) into virtualdub2 (so into a video i cut on virtualdub 2).

The problem is: When i export the audio in audacity it gets shorter/longer. So the saving-process makes it shorter/longer. So i can edit the audio, save it and load it back into audacity and then the saved version is longer/shorter than the one before the save. It appears on aac, not on ogg or on .wav. But i need sth, which i can muxe into an mp4 container and i can't do that with .wav in ffmpeg gui or anything else.

ogg works, but the problem is, i dont know much about that (compatibility wise). So when i want the audio playable on any device, is oog a good idea? It should be playable for example on tv, smartphone, laptop, basically any device which can play a video.

So would you say it is a good idea to use ogg instead of aac in a video ?