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

请问可以直接使用udp流吗? #86

Open
miniboxhaha opened this issue Nov 19, 2021 · 1 comment
Open

请问可以直接使用udp流吗? #86

miniboxhaha opened this issue Nov 19, 2021 · 1 comment

Comments

@miniboxhaha
Copy link

我在c代码中使用avformat_open_input打开一个udp流,但是在调用的时候得到ffmpeg错误信息Protocol not available。
我确认在编译时使用了--enable-portocol=udp,而且没有--disable-network。
纯C/C++代码可以正确执行,请问可以给我一些建议吗?
我看到一些项目里使用js端获取数据,之后再把数据传给C代码,使用av_parser_parse2进行之后的解码。直接使用ffmpeg获取一个udp流是不可行的么?

@ghost
Copy link

ghost commented Jan 17, 2022

应该是浏览器不支持,不是ff不支持. 不仅是udp,tcp应该也不支持. 需要转成http或者ws.浏览器天生做了限制了

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

1 participant