i attempting rotate video prior upload on ios device because other platforms (such android) not interpret rotation information in ios-recorded videos and, result, play them improperly rotated. i have looked @ following stack posts have not had success apply of them case: ios rotate every frame of video rotating video w/ avmutablevideocompositionlayerinstruction avmutablevideocomposition rotated video captured in portrait mode ios avfoundation: setting orientation of video i coped apple avsimpleeditor project sample, unfortunately ever happens is, upon creating avassetexportsession , calling exportasynchronouslywithcompletionhandler, no rotation performed, , what's worse, rotation metadata stripped out of resulting file. here code runs export: avassetexportsession *exportsession = [[avassetexportsession alloc] initwithasset:[_mutablecomposition copy] presetname:avassetexportpresetpassthrough]; exportsession.outputurl = outputurl; exportsession.outputfiletype = ...
Comments
Post a Comment