Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

拍摄视频失败 #11

Open
zhouxiaowei opened this issue Mar 12, 2020 · 7 comments
Open

拍摄视频失败 #11

zhouxiaowei opened this issue Mar 12, 2020 · 7 comments

Comments

@zhouxiaowei
Copy link

[self.assetWriterVideoInput appendSampleBuffer:sampleBuffer] 这个方法失败之后就是停止录制视频了 黑屏 iphone6p 12.4.5

@wsl2ls
Copy link
Owner

wsl2ls commented Mar 12, 2020

@zhouxiaowei 是不是写入路径已有录制的缓存文件呢,如果是的话,就会失败,其他情况我这里没有过,是必现的吗

@zhouxiaowei
Copy link
Author

@zhouxiaowei 是不是写入路径已有录制的缓存文件呢,如果是的话,就会失败,其他情况我这里没有过,是必现的吗

对的 删除重新运行也报错 100%失败

@zhouxiaowei
Copy link
Author

@zhouxiaowei 是不是写入路径已有录制的缓存文件呢,如果是的话,就会失败,其他情况我这里没有过,是必现的吗

拍照成功的

@wsl2ls
Copy link
Owner

wsl2ls commented Mar 12, 2020

@zhouxiaowei 是不是写入路径已有录制的缓存文件呢,如果是的话,就会失败,其他情况我这里没有过,是必现的吗

对的 删除重新运行也报错 100%失败

@zhouxiaowei 换其他手机📱有问题吗?我这儿6s 13 的系统没出现过问题

@wsl2ls
Copy link
Owner

wsl2ls commented Apr 9, 2020

@zhouxiaowei 是不是写入路径已有录制的缓存文件呢,如果是的话,就会失败,其他情况我这里没有过,是必现的吗

拍照成功的

_avCaptureTool.videoSize = CGSizeMake(self.view.width * 0.8, self.view.height * 0.8);
试试这样设置写入视频的大小,再其他地方测试是可以的

@yidulishuang
Copy link

@zhouxiaowei 是不是写入路径已有录制的缓存文件呢,如果是的话,就会失败,其他情况我这里没有过,是必现的吗

对的 删除重新运行也报错 100%失败

解决了吗?我也遇到了 Xs Max 13.4.1

@menhui222
Copy link

解决了吗?我也遇到了 Xs Max 13.4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants