草庐IT

video-encoding

全部标签

iphone - IOS [NSURL initFileURLWithPath :]: nil string parameter on loading video

我的视频内容有问题。我想从我的viewcontroller加载视频,但出现此错误:[NSURLinitFileURLWithPath:]:无字符串参数当我尝试从url加载视频时,视频不会显示。我确定我的变量targetURN不为零。我从这里加载我的ViewController:-(void)actionSheet:(UIActionSheet*)actionSheetclickedButtonAtIndex:(NSInteger)buttonIndex{switch(buttonIndex){case0:[selfopenVideoView:@"Video"];break;case1:

ios - GPUImage : Apply filer to existing video file

我正在尝试使用GPUImage框架的视频过滤器。我关注了Filteringandre-encodingamovie教程。它给我错误UnknowntypenameGPUImageRotationFilter。所以我尝试对我的视频文件应用一个简单的过滤器这是我的代码viewController.h@interfaceViewController:UIViewController{GPUImageMovie*_movieFile;GPUImageOutput*_sketchFilter;GPUImageMovieWriter*_movieWriter;}@property(nonatomic

ios - 如何: Local MP4 Video as Background in iOS App Objective C iOS 8

我尝试使用一个简单的13秒mp4视频作为登录屏幕的背景循环。我希望视频自动播放和循环播放。它没有音频,我不需要控件。我需要在它前面放置按钮和其他对象。我尝试使用WebView并将MP4制作为本教程中的GIF文件:https://medium.com/swift-programming/ios-make-an-awesome-video-background-view-objective-c-swift-318e1d71d0a2但问题是我的5MBMP4(转换为GIF)大小为95MB。我不能使用这种方法。有什么“好用”的方法吗?编辑:好的,这就是我现在所做的。我导入了AVFoundatio

ios - 简化的屏幕截图 : record video of only what appears within the layers of a UIView?

ThisSOanswer介绍了如何对UIView进行屏幕捕获。我们需要类似的东西,但不是单一的图像,我们的目标是在60秒内生成UIView中出现的所有内容的视频——概念上就像只记录UIView,忽略其他层。我们的视频应用程序会在用户录制的任何内容上叠加图层,最终目标是制作将这些图层与原始视频合并的主视频。但是,使用AVVideoCompositionCoreAnimationTool将层与原始视频合并非常、非常、非常慢:导出60秒的视频需要10-20秒。我们发现合并两个视频(即仅使用AVMutableComposition而不使用AVVideoCompositionCoreAnimat

iphone - NSCoder encode Object : and encodeObject:forkey:? 有什么区别

在NSCoder中,可以调用encodeObject:和encodeObject:forkey:。这适用于许多数据类型。这些电话之间有什么区别?如何使用它们?为什么没有encodeDataObject:forkey:或encodePropertyList:forKey:? 最佳答案 键控与非键控访问器大多数情况下,您只需调用encodeSomething:forKey:方法并提供一个key,您稍后会使用该key从解码器取回值:-(void)encodeWithCoder:(NSCoder*)coder{[coderencodeObj

iOS : Audio is missing in exported video

我正在尝试导出录制的视频。并取得成功。但是音频缺少最终导出的视频。所以我搜索了它并添加了下面的音频代码。if([[videoAssettracksWithMediaType:AVMediaTypeAudio]count]>0){[videoTrackinsertTimeRange:CMTimeRangeMake(kCMTimeZero,videoAsset.duration)ofTrack:[[videoAssettracksWithMediaType:AVMediaTypeAudio]objectAtIndex:0]atTime:kCMTimeZeroerror:nil];}但是添加

ios - 从绝对 URL 读取图像文件时出现 ENCODING_ERR

我正在关注thisguide关于如何在iPhone模拟器上使用Ionic3上传图像文件。但是我被控制台打印的这个错误困住了{"code":5,"message":"ENCODING_ERR"}代码如下:this.file.resolveLocalFilesystemUrl(dto.image).then((entry:FileEntry)=>entry.file(file=>{constreader=newFileReader();reader.onloadend=()=>{//dosomething};reader.readAsArrayBuffer(file);})).catch(

iOS : Crop video weird green line left and bottom side in video

-如何去除视频上的绿线。当此时裁剪视频2或3次时,在视频左侧或底部或左侧和底部两侧显示绿色或混合绿红色闪烁线。视频裁剪方法。-(void)cropButton{CGRectcropFrame=self.cropView.croppedImageFrame;//loadourmovieAssetAVAsset*asset;asset=[AVAssetassetWithURL:[NSURLfileURLWithPath:[self.videoDataArrobjectAtIndex:self.selectedIndex-1]]];//createanavassetrackwithouras

RestTemplate请求头accept-encoding导致乱码

背景生产环境有个服务不能直接在办公电脑所在的网络访问,于是做了一个代理服务,使用RestTemplate做个转发,之前一直没有问题,但是最近几天在请求一个接口时,返回数据竟然乱码了,一下把我搞蒙了,我TM返回值没有中文啊而且就是简单的转发,一行代码啊ResponseEntityString>responseEntity=restTemplate.exchange(url,method,newHttpEntityObject>(data,headers),newParameterizedTypeReferenceString>(){});返回值类型都是用String,于是决定定位下原因定位过程首

hadoop - 命令 'hadoop jar' 不采用 -Dfile.encoding=UTF-8?

考虑以下用于map-reduce作业的主类:publicclassAppextendsConfiguredimplementsTool{publicstaticvoidmain(String[]args)throwsException{ToolRunner.run(newApp(),args);}@Overridepublicintrun(String[]args)throwsException{System.out.println(Charset.defaultCharset().toString());return0;}}在交互式shell中使用时,它输出“UTF-8”。在cron