- 授权协议: LGPL
- 开发语言: C/C++ Objective-C JavaScript HTML/CSS
- 操作系统: 跨平台
- 软件首页: https://github.com/sourcey/libsourcey
- 软件文档: https://sourcey.com/libsourcey
- 官方下载: https://github.com/sourcey/libsourcey
软件介绍
LibSourcey 是跨平台 C++11 模块和类的集合,为开发人员提供了一个快速开发基于 p2p 和媒体流应用程序的高性能网络的库。可以把它看作 libuv 与 FFmpeg,OpenCV 和 WebRTC 特性的高度结合,所有这些都具有 stl(C++标准库)的易用性和可读性。
使用 LibSourcey 一个很好的出发点是 PacketStream,它可用来创建用于管道,处理并输出任意数据分组的动态委托链。分层分组处理器和动态功能的方法使得它能够快速且容易地开发出复杂的数据处理应用程序。
例如,下面的代码将介绍如何捕捉实时摄像头流,将其编码为 H.264,并通过互联网实时广播它:
// Create a PacketStream to pass packets from the
// input device captures => encoder => socket
PacketStream stream;
// Setup the encoder options
av::EncoderOptions options;
options.oformat = av::Format("MP4", "mp4",
av::VideoCodec("H.264", "libx264", 400, 300, 25, 48000, 128000, "yuv420p"),
av::AudioCodec("AAC", "libfdk_aac", 2, 44100, 64000, "s16"));
// Create a device manager instance to enumerate system devices
av::DeviceManager devman;
av::Device device;
// Create and attach the default video capture
av::VideoCapture::Ptr video;
if (devman.getDefaultCamera(device)) {
video.open(device.id, 640, 480, 30);
video.getEncoderFormat(options.iformat);
stream.attachSource(video, true);
}
// Create and attach the default audio capture
av::AudioCapture::Ptr audio;
if (devman.getDefaultMicrophone(device)) {
audio.open(device.id, 2, 44100);
audio.getEncoderFormat(options.iformat);
stream.attachSource(audio, true);
}
// Create and attach the multiplex encoder
av::MultiplexPacketEncoder::Ptr encoder(options);
stream.attach(encoder);
// Attach the output net::Socket instance (instantiated elsewhere)
// to broadcast encoded packets over the network
stream.attach(socket);
// Start the stream
// This method call will start the device captures and begin
// pumping encoded media into the output socket
stream.start();
着陆页:获取网络订单的关键
谢松杰 / 电子工业出版社 / 2017-1-1 / CNY 55.00
着陆页是用户点击广告后看到的第一个页面,是相关产品和服务的商业模式与营销思想的载体,是实现客户转化的关键。本书从“宏观”和“微观”两个层面对着陆页的整体框架和局部细节进行了深入的讨论,既有理论和方法,又有技术与工具,为读者呈现了着陆页从策划到技术实现的完整知识体系,帮助读者用最低的成本实现网站最高的收益。 谢松杰老师作品《网站说服力》版权输出台湾,深受两岸读者喜爱。本书是《网站说服力》的姊妹......一起来看看 《着陆页:获取网络订单的关键》 这本书的介绍吧!
