Client-Side Video Orientation Correction & Pixel Matrix Rotation
Filming footage on smartphones or action cameras mounted at awkward angles frequently produces sideways or upside-down video files. While mobile operating systems automatically compensate using hardware gyroscope tags, transferring those clips to Windows, Linux, or video editing software often reveals improperly oriented footage.
WebTorq's Video Rotator fixes inverted and sideways videos directly inside your browser. By physically transforming the pixel buffer matrix and re-encoding standard MP4 headers, your video displays upright across all players and operating systems.
The Problem with Gyroscope Metadata vs. Physical Pixel Re-Orientation
When you rotate a phone while recording, the device writes a 3x3 transformation matrix inside the track header ('tkhd') box. However:
- Inconsistent Player Support: Legacy Windows Media Player, older TV media players, and web CMS decoders often discard 'tkhd' matrix transformations.
- Physical Matrix Rotation: WebTorq swaps canvas coordinate axes (e.g. rotating 90 degrees swaps width and height from 1920x1080 to 1080x1920), baking the correct orientation directly into the pixel stream.
Rotation Angle Guide
- 90° Clockwise: Fixes smartphone videos shot vertically that render horizontally on desktop players.
- 180° Inverted: Corrects upside-down footage captured from dashcams or ceiling mounts.
- 270° (90° Counter-Clockwise): Corrects counter-clockwise orientation mismatches.