If a source video is anamorphic (i.e. its pixel are not square), you must force the matching display aspect ratio in the settings of the muxer so that this information gets stored in the container metadata. Please note that Avidemux displays all videos with square pixel, but most video players will show them with the correct aspect ratio.