First thing you need to know is that as soon as you re-encode something, you'll lose quality, that's unavoidable(unless you use a lossless format, but those make HUGE files that will be bigger than your source so they're not worth mentioning for this).
The resulting quality of an encodes...