Many posts on this topic already, but I'm still searching for a good solution...

In short, the iphone writes a tag to exif data (I think) in each video file so that regardless of the phone orientation when you start videoing, the file will be shown right side up in certain applications. Quicktime, MPEG Streamclip, and a few paid PC packages respect this data and show the video in the proper orientation, but most (almost everything else) does not.

Handbrake does an awesome job of compressing the files with a minimum of loss of quality, but the underlying encoder also does not support the rotation tag, so the video plays sideways on all viewers if it is taken in portrait, and upside down if the video was taken in landscape with the iphone volume buttons on top. I had a few questions regarding this issue:

1) Is it possible to manually write the exif tag back into the compressed handbrake files so that the video will appear correctly, at least on those packages that respect the orientation flag? Any ideas on specifics?

2) Failing this, I've been using MPEG Streamclip to fix the rotation issue, but despite numerous attempts to find an encoder/settings that don't mess up the nice handbrake video I've come up empty. I've primarily been using the H.264 encoder, but have tried others as well. Any suggestions?

3) Any other ideas/programs that might be used to solve this issue on a PC platform? Preferably would have a batch feature to it. I've tried many, many things and none are satisfactory. AVIDEMUX looked promising but I can't get it to even append the mp4 extension onto the filename, much less produce reasonable quality output.

Thanks for any help.
-astough