How to rotate video in movie clip editor

So I recorded some footage on my phone and as it turns out it didnt record the proper orientation in the metadata. Rotating the video in external software and rotating it back seems to have fixed the problem but that adds a lot of compression even when exporting it from blender itself the quality gets visibly worse which is important for motion tracking. So how do I rotate the video in movie clip editor without needing to export it?

Why do you need to rotate it for tracking? Just do that in the compositor, VSE or 3D view where it gets used?