| 
														
															@@ -134,10 +134,21 @@ public class BFRecordExport { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if voiceList.count > 0 || videoStickers.count > 1 { 
														 | 
														
														 | 
														
															         if voiceList.count > 0 || videoStickers.count > 1 { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															             let (audioMix, composition) = mergeAudio(videoStickers: videoStickers, audios: voiceList,synthesisAll:synthesisAll) 
														 | 
														
														 | 
														
															             let (audioMix, composition) = mergeAudio(videoStickers: videoStickers, audios: voiceList,synthesisAll:synthesisAll) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-             
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            let filter = videoStickers.map { sticker in 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+// 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            let filters = videoStickers.map { sticker in 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 PQMovieFilter(movieSticker: sticker) 
														 | 
														
														 | 
														
															                 PQMovieFilter(movieSticker: sticker) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            //add by ak 如果有字幕创建字幕 filter 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+//            var filters:[PQBaseFilter] = Array.init() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+//            for sticker in videoStickers { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+//                filters.append( PQMovieFilter(movieSticker: sticker)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+//            } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+//            if(itemModel.titleStickers.count > 0){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+//                let subTitleFilter = PQSubTitleFilter(st: itemModel.titleStickers, isBig:false, inputSize: getVideoSize(asset:  data!.first!.baseMaterial!)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+//                filters.append(subTitleFilter) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+//            } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+// 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             // 有 
														 | 
														
														 | 
														
															             // 有 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 //            if let completURL = audioUrl { 
														 | 
														
														 | 
														
															 //            if let completURL = audioUrl { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 //                let inputAsset = AVURLAsset(url: completURL, options: avAssertOptions) 
														 | 
														
														 | 
														
															 //                let inputAsset = AVURLAsset(url: completURL, options: avAssertOptions) 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -151,7 +162,7 @@ public class BFRecordExport { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 //                    exporter = PQCompositionExporter(asset: inputAsset, videoComposition: nil, audioMix: nil, filters: filter, animationTool: nil, exportURL: outPutMP4URL) 
														 | 
														
														 | 
														
															 //                    exporter = PQCompositionExporter(asset: inputAsset, videoComposition: nil, audioMix: nil, filters: filter, animationTool: nil, exportURL: outPutMP4URL) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 //                } 
														 | 
														
														 | 
														
															 //                } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 //            } 
														 | 
														
														 | 
														
															 //            } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            exporter = PQCompositionExporter(asset: composition, videoComposition: nil, audioMix: audioMix, filters: filter, animationTool: nil, exportURL: outPutMP4URL) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            exporter = PQCompositionExporter(asset: composition, videoComposition: nil, audioMix: audioMix, filters: filters, animationTool: nil, exportURL: outPutMP4URL) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															              
														 | 
														
														 | 
														
															              
														 | 
													
												
											
												
													
														| 
														 | 
														
															             let asset = data?.first?.baseMaterial 
														 | 
														
														 | 
														
															             let asset = data?.first?.baseMaterial 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 |