Commit efd54936ae9657d275b1bfb281b39ee09d0ed091
1 parent
1fe89a38
提交0.1.13
Showing
2 changed files
with
4 additions
and
4 deletions
CNLiveUploadManager.podspec
CNLiveUploadManager/Classes/CNLiveUploadManager.m
| ... | ... | @@ -2265,11 +2265,11 @@ static CNLiveUploadManager *_uploadManager; |
| 2265 | 2265 | NSDateFormatter *formater = [[NSDateFormatter alloc] init]; |
| 2266 | 2266 | [formater setDateFormat:@"yyyy-MM-dd-HH:mm:ss-SSS"]; |
| 2267 | 2267 | NSInteger rand = random(); |
| 2268 | - NSString *filaName = [NSString stringWithFormat:@"output-%@_fileType=videoType_%ld.mp4",[formater stringFromDate:[NSDate date]],rand]; | |
| 2268 | + NSString *filaName = [NSString stringWithFormat:@"/output-%@_fileType=videoType_%zi.mp4",[formater stringFromDate:[NSDate date]],rand]; | |
| 2269 | 2269 | editOutputPath = [[CNLiveUploadManager createVideoFolderOutputPath:outputPath] stringByAppendingString:filaName]; |
| 2270 | 2270 | |
| 2271 | - NSLog(@"输出转码前视频路径%@",outputPath); | |
| 2272 | - shortVideoTranscoder.outputURL = [NSURL fileURLWithPath:outputPath]; | |
| 2271 | + NSLog(@"输出转码前视频路径%@",editOutputPath); | |
| 2272 | + shortVideoTranscoder.outputURL = [NSURL fileURLWithPath:editOutputPath]; | |
| 2273 | 2273 | shortVideoTranscoder.outputFileType = PLSFileTypeMPEG4; |
| 2274 | 2274 | shortVideoTranscoder.outputFilePreset = [CNLiveUploadManager presetWithVideoLimitType:limitType url:url dataL:dataL];//分辨率 |
| 2275 | 2275 | shortVideoTranscoder.bitrate = [CNLiveUploadManager bitrateWithPreset:shortVideoTranscoder.outputFilePreset avAsset:avAsset url:url dataL:dataL]; | ... | ... |