Moisture barrier films are deposited on a polymer foil by roll-to-roll Atmospheric Pressure Plasma Enhanced CVD reactor using a N2, O2, TEOS gas mixture. The film microstructure and permeation properties are studied as a function of the carrier gas flow rate with both static and dynamic film transport. The microstructure is analyzed by spatially resolved attenuated total reflectance (ATR)-FTIR and correlated with the vertical density gradient obtained in the dynamic films and the moisture barrier performance. It is shown that by varying the carrier gas flow rate the vertical density gradient, or the network porosity, can be tuned by governing the convective transport inside the reactor consequently densifying the inorganic film at fixed ene...