├── README.md ├── ZYVideoEditor.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcshareddata │ │ └── IDEWorkspaceChecks.plist │ └── xcuserdata │ │ └── zhuyongqing.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── zhuyongqing.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ └── xcschememanagement.plist └── ZYVideoEditor ├── AppDelegate.swift ├── Assets.xcassets ├── AppIcon.appiconset │ └── Contents.json └── Contents.json ├── Base.lproj ├── LaunchScreen.storyboard └── Main.storyboard ├── Info.plist ├── ViewController.swift ├── ZYVideoEditor.swift ├── test1.MP4 ├── test2.MP4 ├── test3.MP4 └── test4.MP4 /README.md: -------------------------------------------------------------------------------- 1 | # ZYVideoEditor 2 | 不同尺寸、方向视频拼接播放 3 | -------------------------------------------------------------------------------- /ZYVideoEditor.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | EFAD7485207DEFA600590366 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = EFAD7484207DEFA600590366 /* AppDelegate.swift */; }; 11 | EFAD7487207DEFA600590366 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = EFAD7486207DEFA600590366 /* ViewController.swift */; }; 12 | EFAD748A207DEFA600590366 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EFAD7488207DEFA600590366 /* Main.storyboard */; }; 13 | EFAD748C207DEFA800590366 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EFAD748B207DEFA800590366 /* Assets.xcassets */; }; 14 | EFAD748F207DEFA800590366 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EFAD748D207DEFA800590366 /* LaunchScreen.storyboard */; }; 15 | EFAD7497207DEFB900590366 /* ZYVideoEditor.swift in Sources */ = {isa = PBXBuildFile; fileRef = EFAD7496207DEFB900590366 /* ZYVideoEditor.swift */; }; 16 | EFAD749A207DF07500590366 /* test2.MP4 in Resources */ = {isa = PBXBuildFile; fileRef = EFAD7498207DF07400590366 /* test2.MP4 */; }; 17 | EFAD749B207DF07500590366 /* test1.MP4 in Resources */ = {isa = PBXBuildFile; fileRef = EFAD7499207DF07500590366 /* test1.MP4 */; }; 18 | EFAD749D207DF07C00590366 /* test3.MP4 in Resources */ = {isa = PBXBuildFile; fileRef = EFAD749C207DF07C00590366 /* test3.MP4 */; }; 19 | EFAD749F207DF90D00590366 /* test4.MP4 in Resources */ = {isa = PBXBuildFile; fileRef = EFAD749E207DF90D00590366 /* test4.MP4 */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXFileReference section */ 23 | EFAD7481207DEFA600590366 /* ZYVideoEditor.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ZYVideoEditor.app; sourceTree = BUILT_PRODUCTS_DIR; }; 24 | EFAD7484207DEFA600590366 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 25 | EFAD7486207DEFA600590366 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 26 | EFAD7489207DEFA600590366 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 27 | EFAD748B207DEFA800590366 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 28 | EFAD748E207DEFA800590366 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 29 | EFAD7490207DEFA800590366 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 30 | EFAD7496207DEFB900590366 /* ZYVideoEditor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ZYVideoEditor.swift; sourceTree = ""; }; 31 | EFAD7498207DF07400590366 /* test2.MP4 */ = {isa = PBXFileReference; lastKnownFileType = file; path = test2.MP4; sourceTree = ""; }; 32 | EFAD7499207DF07500590366 /* test1.MP4 */ = {isa = PBXFileReference; lastKnownFileType = file; path = test1.MP4; sourceTree = ""; }; 33 | EFAD749C207DF07C00590366 /* test3.MP4 */ = {isa = PBXFileReference; lastKnownFileType = file; path = test3.MP4; sourceTree = ""; }; 34 | EFAD749E207DF90D00590366 /* test4.MP4 */ = {isa = PBXFileReference; lastKnownFileType = file; path = test4.MP4; sourceTree = ""; }; 35 | /* End PBXFileReference section */ 36 | 37 | /* Begin PBXFrameworksBuildPhase section */ 38 | EFAD747E207DEFA600590366 /* Frameworks */ = { 39 | isa = PBXFrameworksBuildPhase; 40 | buildActionMask = 2147483647; 41 | files = ( 42 | ); 43 | runOnlyForDeploymentPostprocessing = 0; 44 | }; 45 | /* End PBXFrameworksBuildPhase section */ 46 | 47 | /* Begin PBXGroup section */ 48 | EFAD7478207DEFA600590366 = { 49 | isa = PBXGroup; 50 | children = ( 51 | EFAD7483207DEFA600590366 /* ZYVideoEditor */, 52 | EFAD7482207DEFA600590366 /* Products */, 53 | ); 54 | sourceTree = ""; 55 | }; 56 | EFAD7482207DEFA600590366 /* Products */ = { 57 | isa = PBXGroup; 58 | children = ( 59 | EFAD7481207DEFA600590366 /* ZYVideoEditor.app */, 60 | ); 61 | name = Products; 62 | sourceTree = ""; 63 | }; 64 | EFAD7483207DEFA600590366 /* ZYVideoEditor */ = { 65 | isa = PBXGroup; 66 | children = ( 67 | EFAD7499207DF07500590366 /* test1.MP4 */, 68 | EFAD7498207DF07400590366 /* test2.MP4 */, 69 | EFAD749C207DF07C00590366 /* test3.MP4 */, 70 | EFAD749E207DF90D00590366 /* test4.MP4 */, 71 | EFAD7496207DEFB900590366 /* ZYVideoEditor.swift */, 72 | EFAD7484207DEFA600590366 /* AppDelegate.swift */, 73 | EFAD7486207DEFA600590366 /* ViewController.swift */, 74 | EFAD7488207DEFA600590366 /* Main.storyboard */, 75 | EFAD748B207DEFA800590366 /* Assets.xcassets */, 76 | EFAD748D207DEFA800590366 /* LaunchScreen.storyboard */, 77 | EFAD7490207DEFA800590366 /* Info.plist */, 78 | ); 79 | path = ZYVideoEditor; 80 | sourceTree = ""; 81 | }; 82 | /* End PBXGroup section */ 83 | 84 | /* Begin PBXNativeTarget section */ 85 | EFAD7480207DEFA600590366 /* ZYVideoEditor */ = { 86 | isa = PBXNativeTarget; 87 | buildConfigurationList = EFAD7493207DEFA800590366 /* Build configuration list for PBXNativeTarget "ZYVideoEditor" */; 88 | buildPhases = ( 89 | EFAD747D207DEFA600590366 /* Sources */, 90 | EFAD747E207DEFA600590366 /* Frameworks */, 91 | EFAD747F207DEFA600590366 /* Resources */, 92 | ); 93 | buildRules = ( 94 | ); 95 | dependencies = ( 96 | ); 97 | name = ZYVideoEditor; 98 | productName = ZYVideoEditor; 99 | productReference = EFAD7481207DEFA600590366 /* ZYVideoEditor.app */; 100 | productType = "com.apple.product-type.application"; 101 | }; 102 | /* End PBXNativeTarget section */ 103 | 104 | /* Begin PBXProject section */ 105 | EFAD7479207DEFA600590366 /* Project object */ = { 106 | isa = PBXProject; 107 | attributes = { 108 | LastSwiftUpdateCheck = 0930; 109 | LastUpgradeCheck = 0930; 110 | ORGANIZATIONNAME = zhuyongqing; 111 | TargetAttributes = { 112 | EFAD7480207DEFA600590366 = { 113 | CreatedOnToolsVersion = 9.3; 114 | }; 115 | }; 116 | }; 117 | buildConfigurationList = EFAD747C207DEFA600590366 /* Build configuration list for PBXProject "ZYVideoEditor" */; 118 | compatibilityVersion = "Xcode 9.3"; 119 | developmentRegion = en; 120 | hasScannedForEncodings = 0; 121 | knownRegions = ( 122 | en, 123 | Base, 124 | ); 125 | mainGroup = EFAD7478207DEFA600590366; 126 | productRefGroup = EFAD7482207DEFA600590366 /* Products */; 127 | projectDirPath = ""; 128 | projectRoot = ""; 129 | targets = ( 130 | EFAD7480207DEFA600590366 /* ZYVideoEditor */, 131 | ); 132 | }; 133 | /* End PBXProject section */ 134 | 135 | /* Begin PBXResourcesBuildPhase section */ 136 | EFAD747F207DEFA600590366 /* Resources */ = { 137 | isa = PBXResourcesBuildPhase; 138 | buildActionMask = 2147483647; 139 | files = ( 140 | EFAD749F207DF90D00590366 /* test4.MP4 in Resources */, 141 | EFAD749A207DF07500590366 /* test2.MP4 in Resources */, 142 | EFAD749B207DF07500590366 /* test1.MP4 in Resources */, 143 | EFAD748F207DEFA800590366 /* LaunchScreen.storyboard in Resources */, 144 | EFAD748C207DEFA800590366 /* Assets.xcassets in Resources */, 145 | EFAD749D207DF07C00590366 /* test3.MP4 in Resources */, 146 | EFAD748A207DEFA600590366 /* Main.storyboard in Resources */, 147 | ); 148 | runOnlyForDeploymentPostprocessing = 0; 149 | }; 150 | /* End PBXResourcesBuildPhase section */ 151 | 152 | /* Begin PBXSourcesBuildPhase section */ 153 | EFAD747D207DEFA600590366 /* Sources */ = { 154 | isa = PBXSourcesBuildPhase; 155 | buildActionMask = 2147483647; 156 | files = ( 157 | EFAD7497207DEFB900590366 /* ZYVideoEditor.swift in Sources */, 158 | EFAD7487207DEFA600590366 /* ViewController.swift in Sources */, 159 | EFAD7485207DEFA600590366 /* AppDelegate.swift in Sources */, 160 | ); 161 | runOnlyForDeploymentPostprocessing = 0; 162 | }; 163 | /* End PBXSourcesBuildPhase section */ 164 | 165 | /* Begin PBXVariantGroup section */ 166 | EFAD7488207DEFA600590366 /* Main.storyboard */ = { 167 | isa = PBXVariantGroup; 168 | children = ( 169 | EFAD7489207DEFA600590366 /* Base */, 170 | ); 171 | name = Main.storyboard; 172 | sourceTree = ""; 173 | }; 174 | EFAD748D207DEFA800590366 /* LaunchScreen.storyboard */ = { 175 | isa = PBXVariantGroup; 176 | children = ( 177 | EFAD748E207DEFA800590366 /* Base */, 178 | ); 179 | name = LaunchScreen.storyboard; 180 | sourceTree = ""; 181 | }; 182 | /* End PBXVariantGroup section */ 183 | 184 | /* Begin XCBuildConfiguration section */ 185 | EFAD7491207DEFA800590366 /* Debug */ = { 186 | isa = XCBuildConfiguration; 187 | buildSettings = { 188 | ALWAYS_SEARCH_USER_PATHS = NO; 189 | CLANG_ANALYZER_NONNULL = YES; 190 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 191 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 192 | CLANG_CXX_LIBRARY = "libc++"; 193 | CLANG_ENABLE_MODULES = YES; 194 | CLANG_ENABLE_OBJC_ARC = YES; 195 | CLANG_ENABLE_OBJC_WEAK = YES; 196 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 197 | CLANG_WARN_BOOL_CONVERSION = YES; 198 | CLANG_WARN_COMMA = YES; 199 | CLANG_WARN_CONSTANT_CONVERSION = YES; 200 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 201 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 202 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 203 | CLANG_WARN_EMPTY_BODY = YES; 204 | CLANG_WARN_ENUM_CONVERSION = YES; 205 | CLANG_WARN_INFINITE_RECURSION = YES; 206 | CLANG_WARN_INT_CONVERSION = YES; 207 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 208 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 209 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 210 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 211 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 212 | CLANG_WARN_STRICT_PROTOTYPES = YES; 213 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 214 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 215 | CLANG_WARN_UNREACHABLE_CODE = YES; 216 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 217 | CODE_SIGN_IDENTITY = "iPhone Developer"; 218 | COPY_PHASE_STRIP = NO; 219 | DEBUG_INFORMATION_FORMAT = dwarf; 220 | ENABLE_STRICT_OBJC_MSGSEND = YES; 221 | ENABLE_TESTABILITY = YES; 222 | GCC_C_LANGUAGE_STANDARD = gnu11; 223 | GCC_DYNAMIC_NO_PIC = NO; 224 | GCC_NO_COMMON_BLOCKS = YES; 225 | GCC_OPTIMIZATION_LEVEL = 0; 226 | GCC_PREPROCESSOR_DEFINITIONS = ( 227 | "DEBUG=1", 228 | "$(inherited)", 229 | ); 230 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 231 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 232 | GCC_WARN_UNDECLARED_SELECTOR = YES; 233 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 234 | GCC_WARN_UNUSED_FUNCTION = YES; 235 | GCC_WARN_UNUSED_VARIABLE = YES; 236 | IPHONEOS_DEPLOYMENT_TARGET = 11.3; 237 | MTL_ENABLE_DEBUG_INFO = YES; 238 | ONLY_ACTIVE_ARCH = YES; 239 | SDKROOT = iphoneos; 240 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 241 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 242 | }; 243 | name = Debug; 244 | }; 245 | EFAD7492207DEFA800590366 /* Release */ = { 246 | isa = XCBuildConfiguration; 247 | buildSettings = { 248 | ALWAYS_SEARCH_USER_PATHS = NO; 249 | CLANG_ANALYZER_NONNULL = YES; 250 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 251 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 252 | CLANG_CXX_LIBRARY = "libc++"; 253 | CLANG_ENABLE_MODULES = YES; 254 | CLANG_ENABLE_OBJC_ARC = YES; 255 | CLANG_ENABLE_OBJC_WEAK = YES; 256 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 257 | CLANG_WARN_BOOL_CONVERSION = YES; 258 | CLANG_WARN_COMMA = YES; 259 | CLANG_WARN_CONSTANT_CONVERSION = YES; 260 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 261 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 262 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 263 | CLANG_WARN_EMPTY_BODY = YES; 264 | CLANG_WARN_ENUM_CONVERSION = YES; 265 | CLANG_WARN_INFINITE_RECURSION = YES; 266 | CLANG_WARN_INT_CONVERSION = YES; 267 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 268 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 269 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 270 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 271 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 272 | CLANG_WARN_STRICT_PROTOTYPES = YES; 273 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 274 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 275 | CLANG_WARN_UNREACHABLE_CODE = YES; 276 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 277 | CODE_SIGN_IDENTITY = "iPhone Developer"; 278 | COPY_PHASE_STRIP = NO; 279 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 280 | ENABLE_NS_ASSERTIONS = NO; 281 | ENABLE_STRICT_OBJC_MSGSEND = YES; 282 | GCC_C_LANGUAGE_STANDARD = gnu11; 283 | GCC_NO_COMMON_BLOCKS = YES; 284 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 285 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 286 | GCC_WARN_UNDECLARED_SELECTOR = YES; 287 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 288 | GCC_WARN_UNUSED_FUNCTION = YES; 289 | GCC_WARN_UNUSED_VARIABLE = YES; 290 | IPHONEOS_DEPLOYMENT_TARGET = 11.3; 291 | MTL_ENABLE_DEBUG_INFO = NO; 292 | SDKROOT = iphoneos; 293 | SWIFT_COMPILATION_MODE = wholemodule; 294 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 295 | VALIDATE_PRODUCT = YES; 296 | }; 297 | name = Release; 298 | }; 299 | EFAD7494207DEFA800590366 /* Debug */ = { 300 | isa = XCBuildConfiguration; 301 | buildSettings = { 302 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 303 | CODE_SIGN_STYLE = Automatic; 304 | DEVELOPMENT_TEAM = 5D76KSJZQR; 305 | INFOPLIST_FILE = ZYVideoEditor/Info.plist; 306 | LD_RUNPATH_SEARCH_PATHS = ( 307 | "$(inherited)", 308 | "@executable_path/Frameworks", 309 | ); 310 | PRODUCT_BUNDLE_IDENTIFIER = com.ils.onesecond.ZYVideoEditor; 311 | PRODUCT_NAME = "$(TARGET_NAME)"; 312 | SWIFT_VERSION = 4.0; 313 | TARGETED_DEVICE_FAMILY = "1,2"; 314 | }; 315 | name = Debug; 316 | }; 317 | EFAD7495207DEFA800590366 /* Release */ = { 318 | isa = XCBuildConfiguration; 319 | buildSettings = { 320 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 321 | CODE_SIGN_STYLE = Automatic; 322 | DEVELOPMENT_TEAM = 5D76KSJZQR; 323 | INFOPLIST_FILE = ZYVideoEditor/Info.plist; 324 | LD_RUNPATH_SEARCH_PATHS = ( 325 | "$(inherited)", 326 | "@executable_path/Frameworks", 327 | ); 328 | PRODUCT_BUNDLE_IDENTIFIER = com.ils.onesecond.ZYVideoEditor; 329 | PRODUCT_NAME = "$(TARGET_NAME)"; 330 | SWIFT_VERSION = 4.0; 331 | TARGETED_DEVICE_FAMILY = "1,2"; 332 | }; 333 | name = Release; 334 | }; 335 | /* End XCBuildConfiguration section */ 336 | 337 | /* Begin XCConfigurationList section */ 338 | EFAD747C207DEFA600590366 /* Build configuration list for PBXProject "ZYVideoEditor" */ = { 339 | isa = XCConfigurationList; 340 | buildConfigurations = ( 341 | EFAD7491207DEFA800590366 /* Debug */, 342 | EFAD7492207DEFA800590366 /* Release */, 343 | ); 344 | defaultConfigurationIsVisible = 0; 345 | defaultConfigurationName = Release; 346 | }; 347 | EFAD7493207DEFA800590366 /* Build configuration list for PBXNativeTarget "ZYVideoEditor" */ = { 348 | isa = XCConfigurationList; 349 | buildConfigurations = ( 350 | EFAD7494207DEFA800590366 /* Debug */, 351 | EFAD7495207DEFA800590366 /* Release */, 352 | ); 353 | defaultConfigurationIsVisible = 0; 354 | defaultConfigurationName = Release; 355 | }; 356 | /* End XCConfigurationList section */ 357 | }; 358 | rootObject = EFAD7479207DEFA600590366 /* Project object */; 359 | } 360 | -------------------------------------------------------------------------------- /ZYVideoEditor.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ZYVideoEditor.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ZYVideoEditor.xcodeproj/project.xcworkspace/xcuserdata/zhuyongqing.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhuyongqing/ZYVideoEditor/38a9a0c1cbf64b3b7c41466c65325f26eb7847a0/ZYVideoEditor.xcodeproj/project.xcworkspace/xcuserdata/zhuyongqing.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /ZYVideoEditor.xcodeproj/xcuserdata/zhuyongqing.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /ZYVideoEditor.xcodeproj/xcuserdata/zhuyongqing.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | ZYVideoEditor.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /ZYVideoEditor/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // ZYVideoEditor 4 | // 5 | // Created by zhuyongqing on 2018/4/11. 6 | // Copyright © 2018年 zhuyongqing. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /ZYVideoEditor/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /ZYVideoEditor/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /ZYVideoEditor/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /ZYVideoEditor/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /ZYVideoEditor/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ZYVideoEditor/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // ZYVideoEditor 4 | // 5 | // Created by zhuyongqing on 2018/4/11. 6 | // Copyright © 2018年 zhuyongqing. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import AVFoundation 11 | 12 | class ViewController: UIViewController { 13 | 14 | var player:AVPlayer! 15 | var playerLayer:AVPlayerLayer! 16 | let editor = ZYVideoEditor() 17 | 18 | 19 | override func viewDidLoad() { 20 | super.viewDidLoad() 21 | // Do any additional setup after loading the view, typically from a nib. 22 | 23 | initAssets() 24 | } 25 | 26 | func initAssets() { 27 | var assets = [AVAsset]() 28 | var timeRanges = [CMTimeRange]() 29 | for index in 1...4 { 30 | let asset = AVAsset.init(url: URL.init(fileURLWithPath: Bundle.main.path(forResource: "test\(index)", ofType: "MP4")!)) 31 | assets.append(asset) 32 | //截取视频前5秒 33 | timeRanges.append(CMTimeRangeMake(kCMTimeZero, CMTimeMake(5, 1))) 34 | } 35 | 36 | editor.clips = assets 37 | editor.clipRanges = timeRanges 38 | 39 | editor.buildComposition() 40 | 41 | let playItem = AVPlayerItem.init(asset: editor.compostion) 42 | playItem.videoComposition = editor.videoComposition 43 | 44 | player = AVPlayer.init(playerItem: playItem) 45 | playerLayer = AVPlayerLayer.init(player: player) 46 | playerLayer.frame = CGRect.init(x: 0, y: 0, width: view.bounds.width, height: view.bounds.height - 100) 47 | playerLayer.position = view.center 48 | view.layer.addSublayer(playerLayer) 49 | 50 | player.play() 51 | } 52 | 53 | func resetPlayerItem() { 54 | let playItem = AVPlayerItem.init(asset: editor.compostion) 55 | playItem.videoComposition = editor.videoComposition 56 | 57 | player.replaceCurrentItem(with: playItem) 58 | 59 | player.seek(to: kCMTimeZero) 60 | player.play() 61 | } 62 | 63 | @IBAction func playAction(_ sender: Any) { 64 | player.seek(to: kCMTimeZero) 65 | player.play() 66 | } 67 | 68 | 69 | @IBAction func videoRatioChanged(_ sender: UISegmentedControl) { 70 | editor.videoRatio = ZYVideoRatio(rawValue: sender.selectedSegmentIndex)! 71 | editor.videoSize = CGSize.init(width: 1080, height: 1920) 72 | editor.buildComposition() 73 | resetPlayerItem() 74 | } 75 | 76 | @IBAction func videoTrasitionChanged(_ sender: UISegmentedControl) { 77 | editor.transitionType = ZYTransition(rawValue: sender.selectedSegmentIndex)! 78 | editor.buildComposition() 79 | resetPlayerItem() 80 | } 81 | 82 | 83 | override func didReceiveMemoryWarning() { 84 | super.didReceiveMemoryWarning() 85 | // Dispose of any resources that can be recreated. 86 | } 87 | 88 | 89 | } 90 | 91 | -------------------------------------------------------------------------------- /ZYVideoEditor/ZYVideoEditor.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ZYVideoExporter.swift 3 | // OneSecond 4 | // 5 | // Created by zhuyongqing on 2018/4/11. 6 | // Copyright © 2018年 zhuyongqing. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import AVFoundation 11 | 12 | enum ZYTransition:NSInteger { 13 | case Opacity,SwipeLeft,SwipeUp 14 | } 15 | 16 | //比例 根据项目可自定义 17 | enum ZYVideoRatio:NSInteger { 18 | case Ratio9_16,Ratio16_9 19 | } 20 | 21 | class ZYVideoEditor: NSObject { 22 | 23 | var clips:[AVAsset]! 24 | var clipRanges:[CMTimeRange]! 25 | 26 | //默认过渡动画时间1秒 淡入 27 | var trasitionTime:CMTime = CMTimeMake(1, 1) 28 | var transitionType:ZYTransition = .Opacity 29 | 30 | var videoSize = CGSize.init(width: 1080, height: 1920) 31 | var videoRatio:ZYVideoRatio = .Ratio9_16 32 | 33 | 34 | var compostion:AVMutableComposition! 35 | var videoComposition:AVMutableVideoComposition! 36 | 37 | override init() { 38 | super.init() 39 | } 40 | 41 | func buildComposition() { 42 | 43 | if clips.count == 0 && clips == nil { 44 | compostion = nil 45 | videoComposition = nil 46 | return 47 | } 48 | 49 | let muComposition = AVMutableComposition() 50 | let muVideoComposition = AVMutableVideoComposition.init(propertiesOf: muComposition) 51 | 52 | buildTransitionCompositionAndRepairVideoSize(muComposition: muComposition, muVideoComposition: muVideoComposition) 53 | 54 | muVideoComposition.frameDuration = CMTimeMake(1, 30) 55 | muVideoComposition.renderSize = videoSize; 56 | 57 | compostion = muComposition 58 | videoComposition = muVideoComposition 59 | } 60 | 61 | func buildTransitionCompositionAndRepairVideoSize(muComposition:AVMutableComposition,muVideoComposition:AVMutableVideoComposition) { 62 | 63 | if videoRatio == .Ratio16_9{ 64 | videoSize = CGSize.init(width: videoSize.height, height: videoSize.width) 65 | } 66 | muComposition.naturalSize = videoSize 67 | 68 | var comVideoTracks = [AVMutableCompositionTrack]() 69 | for _ in 0...1 { 70 | comVideoTracks.append(muComposition.addMutableTrack(withMediaType: .video, preferredTrackID: kCMPersistentTrackID_Invalid)!) 71 | } 72 | 73 | var passThroughTimeRanges: [CMTimeRange] = [CMTimeRange]() 74 | var transitionTimeRanges: [CMTimeRange] = [CMTimeRange]() 75 | 76 | var startTime = kCMTimeZero 77 | for (index,asset) in clips.enumerated() { 78 | let oriVideoTrack = (asset.tracks(withMediaType: .video).first) 79 | if oriVideoTrack == nil{ 80 | continue 81 | } 82 | let comVideoTrack = comVideoTracks[index % 2] 83 | let clipRange = clipRanges[index] 84 | try! comVideoTrack.insertTimeRange(clipRange, of: oriVideoTrack!, at: startTime) 85 | 86 | passThroughTimeRanges.append(CMTimeRangeMake(startTime, clipRange.duration)) 87 | if index > 0 { 88 | passThroughTimeRanges[index].start = CMTimeAdd(passThroughTimeRanges[index].start, trasitionTime) 89 | passThroughTimeRanges[index].duration = CMTimeSubtract(passThroughTimeRanges[index].duration, trasitionTime); 90 | } 91 | 92 | if (index+1 < clips.count) { 93 | passThroughTimeRanges[index].duration = CMTimeSubtract(passThroughTimeRanges[index].duration, trasitionTime); 94 | } 95 | 96 | startTime = CMTimeAdd(startTime, clipRange.duration) 97 | startTime = CMTimeSubtract(startTime, trasitionTime) 98 | 99 | if index + 1 < clips.count{ 100 | transitionTimeRanges.append(CMTimeRangeMake(startTime, trasitionTime)) 101 | } 102 | } 103 | 104 | var instructions = [Any]() 105 | 106 | for (index,asset) in clips.enumerated() { 107 | let comVideoTrack = comVideoTracks[index % 2] 108 | 109 | let passThroughInstruction = AVMutableVideoCompositionInstruction() 110 | passThroughInstruction.timeRange = passThroughTimeRanges[index] 111 | let passThroughLayer = AVMutableVideoCompositionLayerInstruction(assetTrack: comVideoTrack) 112 | changeVideoSize(asset: asset,passThroughLayer: passThroughLayer) 113 | passThroughInstruction.layerInstructions = [passThroughLayer] 114 | instructions.append(passThroughInstruction) 115 | 116 | if index + 1 < clips.count{ 117 | let transitionInstruction = AVMutableVideoCompositionInstruction() 118 | transitionInstruction.timeRange = transitionTimeRanges[index] 119 | let fromLayer = 120 | AVMutableVideoCompositionLayerInstruction(assetTrack: comVideoTrack) 121 | let toLayer = 122 | AVMutableVideoCompositionLayerInstruction(assetTrack:comVideoTracks[1 - index % 2]) 123 | 124 | changeVideoSize(asset: asset,passThroughLayer: fromLayer) 125 | changeVideoSize(asset: clips[index + 1],passThroughLayer: toLayer) 126 | 127 | videoTransition(fromLayer: fromLayer,toLayer: toLayer,asset: asset, timeRange: transitionTimeRanges[index]) 128 | 129 | transitionInstruction.layerInstructions = [fromLayer, toLayer] 130 | instructions.append(transitionInstruction) 131 | } 132 | } 133 | muVideoComposition.instructions = instructions as! [AVVideoCompositionInstructionProtocol] 134 | } 135 | 136 | func videoTransition(fromLayer:AVMutableVideoCompositionLayerInstruction,toLayer:AVMutableVideoCompositionLayerInstruction,asset:AVAsset,timeRange:CMTimeRange) { 137 | let oriVideoTrack = asset.tracks(withMediaType: .video).first 138 | let natureSize = (oriVideoTrack?.naturalSize)! 139 | switch transitionType { 140 | case .Opacity: 141 | fromLayer.setOpacityRamp(fromStartOpacity: 1.0, toEndOpacity: 0.0, timeRange: timeRange) 142 | toLayer.setOpacityRamp(fromStartOpacity: 0.0, toEndOpacity: 1.0, timeRange: timeRange) 143 | case .SwipeLeft: 144 | fromLayer.setCropRectangleRamp(fromStartCropRectangle: CGRect.init(origin: .zero, size: videoSize), toEndCropRectangle: CGRect.init(origin: .zero, size: CGSize.init(width: 0, height: videoSize.height)), timeRange: timeRange) 145 | default: 146 | if degressFromVideo(asset: asset) == 90{ 147 | fromLayer.setCropRectangleRamp(fromStartCropRectangle: CGRect.init(origin: .zero, size: videoSize), toEndCropRectangle: CGRect.init(origin: .zero, size: CGSize.init(width: 0, height: videoSize.height)), timeRange: timeRange) 148 | }else{ 149 | let width = natureSize.width > videoSize.width ? natureSize.width : videoSize.width 150 | fromLayer.setCropRectangleRamp(fromStartCropRectangle: CGRect.init(origin: .zero, size:CGSize.init(width: width, height: videoSize.height)), toEndCropRectangle: CGRect.init(origin: .zero, size: CGSize.init(width: width, height: 0)), timeRange: timeRange) 151 | } 152 | 153 | } 154 | } 155 | 156 | func exportVideo(outPath:String,completionHandle:@escaping ((String?,Error?) -> Void)) { 157 | let export = AVAssetExportSession.init(asset: compostion, presetName: AVAssetExportPresetHighestQuality) 158 | export?.videoComposition = videoComposition 159 | export?.outputFileType = AVFileType.mp4 160 | export?.outputURL = URL.init(fileURLWithPath: outPath) 161 | export?.exportAsynchronously(completionHandler: { 162 | let status = export?.status 163 | if status == .completed{ 164 | completionHandle(outPath,nil) 165 | }else if status == .failed{ 166 | completionHandle(nil,export?.error) 167 | }else if status == .cancelled{ 168 | completionHandle(nil,NSError.init(domain: "cancelled", code: 3001, userInfo: nil)) 169 | }else{ 170 | completionHandle(nil,NSError.init(domain: "UnKnown Error", code: 3002, userInfo: nil)) 171 | } 172 | }) 173 | } 174 | 175 | func changeVideoSize(asset:AVAsset,passThroughLayer:AVMutableVideoCompositionLayerInstruction) { 176 | 177 | let oriVideoTrack = asset.tracks(withMediaType: .video).first 178 | var natureSize = (oriVideoTrack?.naturalSize)! 179 | if degressFromVideo(asset: asset) == 90 { 180 | natureSize = CGSize.init(width: natureSize.height, height: natureSize.width) 181 | } 182 | 183 | //处理 livePhoto的视频 184 | // if natureSize.width == 1440 && natureSize.height == 1080 { 185 | // if videoRatio == .Ratio9_16{ 186 | // natureSize.width = 1308 187 | // }else{ 188 | // natureSize.height = 980 189 | // } 190 | // } 191 | // 192 | // if natureSize.width == 1080 && natureSize.height == 1440 { 193 | // if videoRatio == .Ratio9_16 { 194 | // natureSize.width = 980 195 | // }else{ 196 | // natureSize.height = 1308 197 | // } 198 | // } 199 | 200 | if (Int)(natureSize.width) % 2 != 0 { 201 | natureSize.width += 1.0 202 | } 203 | 204 | if videoRatio == .Ratio9_16{ 205 | if degressFromVideo(asset: asset) == 90{ 206 | let height = videoSize.width * natureSize.height / natureSize.width 207 | let translateToCenter = CGAffineTransform.init(translationX: videoSize.width, y: videoSize.height/2 - natureSize.height/2) 208 | 209 | let t = translateToCenter.scaledBy(x:videoSize.width/natureSize.width, y: height/natureSize.height) 210 | 211 | let mixedTransform = t.rotated(by: .pi/2) 212 | passThroughLayer.setTransform(mixedTransform, at: kCMTimeZero) 213 | 214 | }else{ 215 | let height = videoSize.width * natureSize.height / natureSize.width 216 | let translateToCenter = CGAffineTransform.init(translationX: 0, y: videoSize.height/2 - height/2) 217 | let t = translateToCenter.scaledBy(x:videoSize.width/natureSize.width, y: height/natureSize.height) 218 | passThroughLayer.setTransform(t, at: kCMTimeZero) 219 | } 220 | }else{ 221 | if degressFromVideo(asset: asset) == 90{ 222 | let width = videoSize.height * natureSize.width/natureSize.height 223 | let translateToCenter = CGAffineTransform.init(translationX: videoSize.width/2 + width/2, y: 0) 224 | let t = translateToCenter.scaledBy(x:width/natureSize.width, y: videoSize.height/natureSize.height) 225 | 226 | let mixedTransform = t.rotated(by: .pi/2) 227 | passThroughLayer.setTransform(mixedTransform, at: kCMTimeZero) 228 | 229 | }else{ 230 | let width = videoSize.height * natureSize.width/natureSize.height 231 | let translateToCenter = CGAffineTransform.init(translationX: videoSize.width/2 - width/2, y: 0) 232 | let t = translateToCenter.scaledBy(x:width/natureSize.width, y: videoSize.height/natureSize.height) 233 | passThroughLayer.setTransform(t, at: kCMTimeZero) 234 | } 235 | } 236 | } 237 | 238 | func degressFromVideo(asset:AVAsset) -> NSInteger { 239 | var degress = 0; 240 | let tracks = asset.tracks(withMediaType: .video) 241 | if(tracks.count > 0) { 242 | let videoTrack = tracks.first 243 | let t = (videoTrack?.preferredTransform)!; 244 | if(t.a == 0 && t.b == 1.0 && t.c == -1.0 && t.d == 0){ 245 | // Portrait 246 | degress = 90; 247 | }else if(t.a == 0 && t.b == -1.0 && t.c == 1.0 && t.d == 0){ 248 | // PortraitUpsideDown 249 | degress = 270; 250 | }else if(t.a == 1.0 && t.b == 0 && t.c == 0 && t.d == 1.0){ 251 | // LandscapeRight 252 | degress = 0; 253 | }else if(t.a == -1.0 && t.b == 0 && t.c == 0 && t.d == -1.0){ 254 | // LandscapeLeft 255 | degress = 180; 256 | } 257 | } 258 | 259 | return degress; 260 | } 261 | 262 | } 263 | 264 | 265 | -------------------------------------------------------------------------------- /ZYVideoEditor/test1.MP4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhuyongqing/ZYVideoEditor/38a9a0c1cbf64b3b7c41466c65325f26eb7847a0/ZYVideoEditor/test1.MP4 -------------------------------------------------------------------------------- /ZYVideoEditor/test2.MP4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhuyongqing/ZYVideoEditor/38a9a0c1cbf64b3b7c41466c65325f26eb7847a0/ZYVideoEditor/test2.MP4 -------------------------------------------------------------------------------- /ZYVideoEditor/test3.MP4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhuyongqing/ZYVideoEditor/38a9a0c1cbf64b3b7c41466c65325f26eb7847a0/ZYVideoEditor/test3.MP4 -------------------------------------------------------------------------------- /ZYVideoEditor/test4.MP4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhuyongqing/ZYVideoEditor/38a9a0c1cbf64b3b7c41466c65325f26eb7847a0/ZYVideoEditor/test4.MP4 --------------------------------------------------------------------------------