Android camera capture landscape in portrait

i have a remote controlled car i put a caddy in for my android phone so i
can video stuff, what i would like to do is make it will record in whatever
the cameras max witdh is in a landscape format. any ideas?