Nonlinear phononics play important role in strong laser-solid interactions. We discuss a dynamical protocol for efficient phonon excitation, considering recent inspiring proposals: inducing ferroelectricity in paraelectric material such as KTaO3, and inducing structural deformations in cuprates (e.g La2CuO4) [A. Subedi et.al, Phys.Rev. B 89, 220301 (2014), Phys.Rev. B 95, 134113 (2017]. High-frequency phonon modes are driven by mid-infrared pulses, and coupled to lower-frequency modes those indirect excitation causes structural deformations. We study in a more detail the case of KTaO3 without strain, where (at first glance) it was not possible to excite the needed low frequency phonon mode by resonant driving of the higher frequency one. Behaviour of the system is explained using a reduced model of coupled driven nonlinear oscillators. We find a dynamical mechanism which prevents effective excitation at resonance driving. In order to induce ferroelectricity we employ driving with sweeping frequency, realizing so called capture into resonance. The method works for realistic femtosecond pulses and can be applied to many other related systems.