The transmission modes of high-power millimeter wave in corrugated waveguides transmission line (TL) are crucial, especially for the long-pulse operation for long-distance TL. The microwave transmission mode in the TL on HL-3 tokamak relevant the electron cyclotron heating system are studied for the purpose according to the phase retrieval method based on intensity distribution measured by an infrared camera at several different locations away from the outlet of TL. A specific high power test platform with about 40-meter TL is established and the mode contents in the middle and the end of the TL are analyzed. In the middle of the TL, the proportion of main transmission mode LP01 mode is about 97% and other high-order modes contents are less than 3%. In the end of the TL, the main mode purity is about 94%, and the high-order mode, LP11 even mode is excited about 4.6%. These mode analysis results indicate that the high-power and long-pulse millimeter wave corrugated waveguides TL are designed and machined well, and the alignment method for long distance transmission line installation is highly useful for high-purity wave mode transmission.