# How to horizontally flip an iPhone video?

**URL:** <https://boards.straightdope.com/t/how-to-horizontally-flip-an-iphone-video/679011>\
**Category:** Factual Questions\
**Created:** [January 16, 2014, 11:17pm UTC](https://boards.straightdope.com/t/how-to-horizontally-flip-an-iphone-video/679011 "2014-01-16T23:17:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hail\_Ants](https://avatars.discourse-cdn.com/v4/letter/h/dc4da7/32.png) [@Hail\_Ants](https://boards.straightdope.com/u/Hail_Ants)\
**Post date:** [January 16, 2014, 11:17pm UTC](https://boards.straightdope.com/t/how-to-horizontally-flip-an-iphone-video/679011/1 "2014-01-16T23:17:29Z")

</div>

Long story short(ish): I was holding my iPhone flat and slightly portrait aligned when I hit the video record button, then I lifted it up an moved it landscape as it was recording. For what ever reasons the iPhone decided that it was ‘upside-down’ relative to its starting position and recorded the video that way. I didn’t notice because, of course, the picture looked right-side up, only the small graphics on the recording screen were upside-down. And, also of course, I can’t just hold the camera upside-down to play it because the phone detects that and flips the picture back upside-down again thinking that’s right side up. Locking it in portrait mode obviously doesn’t help either (it will still flip the now smaller portrait image upside-down whenever you turn the phone around).

Strange thing is when I copy the file to my Windows 7 PC it plays right-side up in VLC (or anything _ **other than** _ QuickTime). I’ve tried converting the file to a different iPhone format (.MP4 or a slightly modified .mov) but iTunes won’t copy it back to the phone, always saying it’s no longer a playable file for an iPhone.

I assume it’s simply a case of the original video file’s ‘orientation bit’ metadata telling QuickTime to play it (essentially) upside-down (although I don’t know why VLC knows to play it correctly). Is there a way to modify just this bit on a PC, so that iTunes will just copy it back onto the phone and play it correctly? Or is there an iPhone app that will flip videos over?

---

<div class="post-metadata">

**Author:** ![Reply](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/reply/32/15952_2.png) [@Reply](https://boards.straightdope.com/u/Reply)\
**Post date:** [January 17, 2014, 1:09am UTC](https://boards.straightdope.com/t/how-to-horizontally-flip-an-iphone-video/679011/2 "2014-01-17T01:09:48Z")

</div>

You can strip the rotation metadata using ffmpeg:

> <https://superuser.com/questions/594823/rotate-mp4-and-change-dimensions>

> [@](#):
>
> Here are the actual commands you can use. If you want to keep the actual video bitstream and remove the rotation flag, you only need to remove the metadata for the first video stream v:0, and copy the video and audio bitstreams (-c copy):
> 
> ffmpeg -i input.mp4 -c copy -metadata:s:v:0 rotate=0 output.mp4

VLC is playing it the right side up probably because it’s ignoring the rotation metadata

---

<div class="post-metadata">

**Author:** ![Eyebrows\_0f\_Doom](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/eyebrows_0f_doom/32/3119_2.png) [@Eyebrows\_0f\_Doom](https://boards.straightdope.com/u/Eyebrows_0f_Doom)\
**Post date:** [January 17, 2014, 7:45am UTC](https://boards.straightdope.com/t/how-to-horizontally-flip-an-iphone-video/679011/3 "2014-01-17T07:45:17Z")

</div>

You can flip it within Quicktime itself, no need to do any conversion. Open the file in Quicktime and go to Window\>Show Movie Properties\> click on the Video Track and select the Visual Settings tab and there are options to flip or rotate the image.

---

<div class="post-metadata">

**Author:** ![Hail\_Ants](https://avatars.discourse-cdn.com/v4/letter/h/dc4da7/32.png) [@Hail\_Ants](https://boards.straightdope.com/u/Hail_Ants)\
**Post date:** [January 17, 2014, 5:16pm UTC](https://boards.straightdope.com/t/how-to-horizontally-flip-an-iphone-video/679011/4 "2014-01-17T17:16:27Z")

</div>

> [@Eyebrows\_0f\_Doom](#):
>
> You can flip it within Quicktime itself, no need to do any conversion. Open the file in Quicktime and go to Window\>Show Movie Properties\> click on the Video Track and select the Visual Settings tab and there are options to flip or rotate the image.

Unfortunately I only have the free version of QuickTime and that function requires QuickTime Pro.

> [@Reply](#):
>
> You can strip the rotation metadata using ffmpeg:  
> [video - Rotate&nbsp;MP4, and change dimensions - Super User](http://superuser.com/questions/594823/rotatemp4-and-change-dimensions)
> 
> VLC is playing it the right side up probably because it’s ignoring the rotation metadata

Thanks, that did it! Wasn’t exactly simply, had to download both ffmpeg and 7-Zip Manager (why can’t everyone just use WinZip aka PKZip!) and get all the files in the right place and copy & paste your command line, but it’s fixed. Thanks again. 😃
