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

线程安全 #2

Open
alexliyu7352 opened this issue Dec 16, 2018 · 3 comments
Open

线程安全 #2

alexliyu7352 opened this issue Dec 16, 2018 · 3 comments

Comments

@alexliyu7352
Copy link

这个应该不是线程安全的吧?
也就是同时两个线程调用, 也就是同时执行两个cmd, 应该会有问题吧?
ffmpge.c中, 都是全局变量

@byhook
Copy link
Owner

byhook commented Dec 21, 2018

嗯,因为正常情况下执行ffmpeg命令都是单进程模式进行的,所以移植成cmd命令行模式,可能会出现线程安全问题

@huangqiang325
Copy link

我这边同时有两个摄像头 同时解码 录制 为什么第一个生命NativeEncoder录制的视频没写进去数据呢

@huangqiang325
Copy link

能帮忙看下 蛮急得

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

3 participants