They will unfortunately not be the same quality, but for uploading to YouTube a .mp4 with a fairly high bitrate will still get you good results.
Don't get technical on me mister
If you encode with a high enough bitrate (8000-10000kbps) then you will retain basically 100% of the visual image quality.