Presented herein are live-attenuated viruses and methods of generating thereof from a parental virus through a plurality of nucleotide substitutions in the viral genome. The nucleotide substitutions result in a change in codon usage bias within codons of one or more protein encoding sequences and no change in amino acid sequences of the proteins. The live-attenuated viruses display unaltered replication in avian hosts for propagation, but attenuated replication in mammalian hosts, when compared to the replication of the parental virus. The live-attenuated viruses in a form of improved vaccines can be used to elicit protective immune responses.