ossrs / httpx-static

A HTTP/HTTPS API proxy for SRS.
https://github.com/ossrs/srs
MIT License
641 stars 221 forks source link

Codec: Support encode the audio and video device to stream. #46

Open winlinvip opened 8 years ago

winlinvip commented 8 years ago

For the golang binding project, we can directly encoding the video and audio data to stream, because the multiple cpu provides enough performance to do this.

For origin, fetch the video and audio then encode to stream. For edge, not support encode stream.

winlinvip commented 8 years ago

For example, we can used for raspberrypi to directly output the stream.

winlinvip commented 8 years ago

翻译下这个issue:发现有个项目,这个项目就是将libav(c代码)转成了golang代码,但是这样可以很方便的使用x264了,最终于的是oryx是多进程(SRS可以直接调用x264但是单进程性能不够),可以直接编码了。

可以用在什么地方呢?树莓派这种设备,可以直接安装oryx后,就可以将摄像头的图像编码成流,可以提供观看了。再配合转发,可以将流送到外部服务器。