We demonstrated a tilted fiber Bragg grating (TFBG)-based modulated amplified spontaneous emission (ASE) source, followed by the broadband, continuous-wave (CW) mid-infrared laser generated by intracavity difference-frequency generation (DFG). By flattening the spectrum of the ASE source during its power amplification and injecting another 1018 nm fiber laser in the optical parametric oscillation(OPO) cavity, nonlinear frequency conversion was achieved in the nonlinear crystal. By tuning the polarization period of the crystal, a three-peaked mid-infrared laser with a full width at half maximum (FWHM) of 130 nm and a four-peaked mid-infrared laser with an FWHM of 180 nm was generated.