Movies that lay on their side
Have you ever taken a Portrait oriented movie with your iPhone or iPad and sent it to your friends who were using Windows? I can understand their frustration when the video I so carefully recorded causes them to bend their neck to the side:
So what’s going on here? The problem is that the .MOV file that I send them has a 90 degree rotation set as the preferred transform. Some Windows clients (such as Windows Media Player, VLC media player, etc) do not take this transform into consideration when presenting the video.
The VideoExport Swift Project
I wanted to create a project that would allow me to address the issue with rotations and other compatibility concerns.
I published my results to scottcarter/VideoExport on Github.
Posted in iOS, Objective-C, Swift
Tagged export, mp4, objective c, SDAVAssetExportSession, Swift, video, video bitrate, video composition, video settings, videoComposition, Xcode
This article discusses the techniques I use for bookmarking code and adding log statements for both Objective-C and Swift.
When I develop code I often find a need to temporarily reference different sections that I’m working on, either within the same file or in many different files. Prior to Xcode 4 there was apparently a means to set and jump to bookmarks with keyboard shortcuts as mentioned in the article Killer Xcode Tips and Tricks – Tips 1 to 10 (see tips 7 and 8).
Posted in Objective-C, Swift
Tagged bookmark, debugging, downcast, iOS, logging, macro, objective c, pragma, preprocessor, Swift, Xcode