streaming

Frame-by-frame MJPEG streaming with C#/ASP.NET MVC

懵懂的女人 提交于 2020-01-01 14:57:54
问题 I have been trying to setup a MJPEG stream in ASP.NET. I want to retrieve a MJEPG stream from a URL, and send every frame that I get to every connected client. Examples that I have been able to find only read from a set file, instead of a continues stream from URL, and send the entire file through MultiStreamContent . Since I retrieve frame-by-frame, I cannot do this. I would like to know if it is possible to do what I want with ASP.NET MVC. I'm currently using AForge video to retrieve the

Data streaming in MATLAB with input data coming in from a C++ executable

有些话、适合烂在心里 提交于 2020-01-01 12:08:25
问题 I'm completely new to MATLAB and I want to know what my options are for data streaming from a C++ file. I heard of using the MATLAB "engine" for this purpose, and some of the methods like engPutVariable, etc., but can someone give me a thorough example of how to go about doing it? I'm trying to implement streaming a sine wave, but a simple example of sending a sample set of data through should suffice. 回答1: You have two options: the matlab engine and mex functions. It's very important to note

Lazy, stream driven object serialization with protobuf-net

折月煮酒 提交于 2020-01-01 11:36:45
问题 We are developing a WCF service for streaming a large amount of data, therefore we have chosen to use WCF Streaming functionality combined with a protobuf-net serialization. Context: Generally an idea is to serialize objects in the service, write them into a stream and send. On the other end the caller will receive a Stream object and it can read all data. So currently the service method code looks somewhat like this: public Result TestMethod(Parameter parameter) { // Create response var

Lazy, stream driven object serialization with protobuf-net

本秂侑毒 提交于 2020-01-01 11:36:04
问题 We are developing a WCF service for streaming a large amount of data, therefore we have chosen to use WCF Streaming functionality combined with a protobuf-net serialization. Context: Generally an idea is to serialize objects in the service, write them into a stream and send. On the other end the caller will receive a Stream object and it can read all data. So currently the service method code looks somewhat like this: public Result TestMethod(Parameter parameter) { // Create response var

Realtime streaming with QAudioOutput (qt)

一曲冷凌霜 提交于 2020-01-01 10:50:50
问题 I want to play real-time sounds responding with no appreciable lag to user interaction. To have low latency I have to send small chunks of pcm data. What I am doing: QAudioFormat format; format.setSampleRate(22050); format.setChannelCount(1); format.setSampleSize(16); format.setCodec("audio/pcm"); format.setByteOrder(QAudioFormat::LittleEndian); format.setSampleType(QAudioFormat::SignedInt); QAudioDeviceInfo info(QAudioDeviceInfo::defaultOutputDevice()); if (!info.isFormatSupported(format)) {

Playing with video.js ustream m3u8 file streaming

℡╲_俬逩灬. 提交于 2020-01-01 09:33:07
问题 I have tried to play in a web page a m3u8 file streaming with video.js, But I could not do it, I do not know where the mistake is <!DOCTYPE html> <html> <head> <meta charset=utf-8 /> <title>Video</title> <link href="http://vjs.zencdn.net/4.12/video-js.css" rel="stylesheet"> <script src="http://vjs.zencdn.net/4.12/video.js"></script> <script src="https://github.com/videojs/videojs-contrib-media-sources/releases/download/v0.1.0/videojs-media-sources.js"></script> <script src="https://github.com

EndOfStream for BinaryReader

吃可爱长大的小学妹 提交于 2020-01-01 08:44:11
问题 BinaryReader does not have EndOfStream property. Is it safe to use following code to check if end of stream is reached? reader.BaseStream.Length>reader.BaseStream.Position 回答1: It depends. There are various stream types that do not implement the Length or Position property, you'd get a NotSupportedException. NetworkStream for example. Of course, if you'd use such a stream then you really do have to know up front how often to call the BinaryReader.Read() method. So, yes, it's fine. 回答2: The

Recording Audio through RTMP/Rails

和自甴很熟 提交于 2020-01-01 07:03:37
问题 I am in the process of building a rails/flex application which requires audio to be recorded and then stored in our amazon s3 account. I have found no alternative to using some form of RTMP server for recording audio through flash, but our hosting environment will not allow us to install anything like FMS, Red5, etc. Is there any existing Ruby/Rails RTMP solution that will allow audio recording? If not, is it possible for Rails to at least intercept the RTMP stream and then I can hope to

Http streaming with thin & eventmachine

我只是一个虾纸丫 提交于 2020-01-01 05:48:27
问题 I'm playing with EM to achieve streaming and concurrency. I had a problem with streaming... I run the following rack app https://gist.github.com/1394840 using $ rackup -s thin -p 3000 async_app.ru While testing with $ ab -c 10 -n 20 http://localhost:3000/ , the app seemed accepting parellel requests. Great! I expect it to achieve streaming meanwhile. When I test it in Firefox8, it works so well. And using $ curl -i http://localhost:3000/ , the result is streamed just as expected too! But

Stream file as RTSP using VLC

时光怂恿深爱的人放手 提交于 2020-01-01 04:22:09
问题 I need to create a server that can stream an mp3 file to another device. I am planning on using VLC. I looked at the VLC documentation and am confused about the way forward to do this. I found this link, http://www.videolan.org/doc/streaming-howto/en/ch07.html which tells how to stream a file to a device. However, what I want to do is create a server that is just streaming audio and will allow other clients to connect to it and start playing what is streamed. How can this be done with VLC?