stream

Is it possible to accept from the user (standard input) to the string stream directly?

Here is a sample program that uses stringstream. The goal is to accept lines from the user(standard input) and print each word in a separate line. int main() { std::istringstream currentline; std::string eachword; std::string line; // Accept line from the standard input till EOF is reached while ( std::getline(std:...

How to live stream from iphone to webserver?

Hi, I want to stream live data from iphone camera to webserver, I know this can be done using ffmpeg, I tried to modify the iFrameExtractor sample code, but not yet produced any results. I am looking for some sample code or any help. I am repeating again "live streaming from iphone to webserver". Please drop a line if anybody knows how...

Android mediaplyer, streaming mp3, occasionally getting 403 errors, any idea why?

Getting sporadic mediaplayer errors similiar to, 08-09 14:32:56.956: ERROR/HTTPDataSource(59): HTTP request failed w/ http status 403 This is usually right after a seek call (however seeking works the majority of the time, it returns these errors maybe 1 out of every 5 times). Sometimes it happens without seeking at all. I am gettin...

HttpListener only gets first 900 bytes of InputStream when using jQuery.ajax()

I have a very simple class using HttpListener to receive an HTTP POST from a browser via an AJAX request. I've included a demo that highlights this issue: private static void HandleRequest(HttpListenerContext context) { using (var inputStream = context.Request.InputStream) { for (int i = 0; i < context.Request.ContentLen...

Audio only HTTP Live streaming with ffmpeg and segmenter(on linux server)

Hi Can anyone help me with setting up http live streaming on linux server. I am working on an music app and want to stream audio content to iPhone. We have mp3 files on our server. Thanks Saurabh ...

String Stream in C

print2fp(const void *buffer, size_t size, FILE *stream) { if(fwrite(buffer, 1, size, stream) != size) return -1; return 0; } How to write the data into string stream instead of File stream? ...

facebook like box stream height

How to control the facebook like box stream part height alone. Its normal to reduce height of whole box but if tries to control it fans images are not shown. The css .fan_box .page_stream{ ...,width:300px} to .fan_box .page_stream{...,width:150px} i'm asking because the stream box inside iframe ...

Identi.ca streaming api, libraries?

Has identi.ca a streaming API like stream.twitter.com? If it has, is there any Python library to implement that? Now I'm using tweepy, but I doesn't seem to have identi.ca support for streaming API. Thank you. ...

How to read java stream until certain byte is reached

My question is similar to this post. But I don't send packet length rather a 0 byte at end. http://stackoverflow.com/questions/833744/most-efficient-way-to-read-in-a-tcp-stream-in-java So I'm wondering how would I code something that would. At the moment I just use this.socketIn = new BufferedReader(new InputStreamReader(this.socket....

Opening an audio (wav) file from a MemoryStream to determine the duration

Is there a way, either within the Framework or by using P/Invoke to determine the duration of a wav file that's held in a MemoryStream? I've already had a look at Managed DirectX and another similar question, but everything seems to work with paths, rather than providing any way to pass in a stream. One of the links in the question I'v...

How to stream audio from Google Docs (API)?

Hi all, Is there a way to stream audio from Google Docs (API)? MP3, AAC, etc.. Thanks, Sam ...

Update only part of a binary file with c++

Is it possible to update only a part of a file in c++ ? Example: Old File A: 'A''A''A''B''B''C''C''C' New File A: 'A''A''A''X''X''C''C''C' as the real files are not as tiny like these examples, and I do know exactly what has changed ( offset and writeLenght for changed content ) it would be great to be able to open a file, set the ...

How to Access File Descriptor of Open File

Is there any way to access the file descriptor of a file opened in c++? So ... #include <iostream> #include <fstream> using namespace std; int main() { ifstream inputFile( "file.txt",ios::in ); cout << inputFile.fileDesc << endl;//made up call return 0; } The question is, does something like fileDesc exist for...

Problem using streams and DataTable.WriteXmlSchema

I'm loading a datatable from the cache and I need to read it's schema, and then load that schema into another datatable. Here's the code I'm using: using (var ms = new MemoryStream()) { using (var xmlWriter = XmlWriter.Create(ms)) { tableWithSchema.WriteXmlSchema(xmlWriter); xmlWriter.Flus...

PHP Lame stream filter

I have a task to make an mp3 player embedded on a page that will play some voice messages stored in database. Some of messages are stored in WAV-format, so they must be converted to mp3. The conversion should be done "on fly". Because of not all messages have to be converted, I desided that it will be a good idea to use a stream filter t...

Apple HTTP Live Stream problem

Hi all, I am trying to implement a Apple HTTP Live Stream tool, which can take a video and audio sources as the input, and HTTP Live Stream as the out put. It can create multiple .ts files and also the m3u8 playlist. For some input files, it works. But for some other sources, the ipad can only play like 2 or 3 seconds media at the very ...

Twitter stream api with agents in F#

Hello, From Don Syme blog (http://blogs.msdn.com/b/dsyme/archive/2010/01/10/async-and-parallel-design-patterns-in-f-reporting-progress-with-events-plus-twitter-sample.aspx) I tried to implement a twitter stream listener. My goal is to follow the guidance of the twitter api documentation which says "that tweets should often be saved or q...

How to get currently playing iTunes Store podcast url from C#?

Is there a way to get the URL of a podcast or iTunes U stream that's playing straight from the iTunes Store? I try CurrentTrack.URL and it gives me a blank for Store streams, whereas it gives a working URL for "Radio" streams from the left sidebar: IITTrack currTrack = m_iTunes.CurrentTrack; string path = ""; if (currTrack.Kind == ITTr...

C#: Save multiple images to a single file

I am working on a class that maintains a dictionary of images. This dictionary should be saved to and loaded from a file. I implemented the below solution, but the problem is that according to MSDN documentation for Image.FromStream(); http://msdn.microsoft.com/en-us/library/93z9ee4x(v=VS.80).aspx "The stream is reset to zero if t...

QTKit Streaming Source

Hi, I have a QTCaptureSession with one QTCaptureConnection using h.264 for compression. I want to stream the video over UDP with very low latency, but I'm having trouble understanding the QTKit framework. As far as I can see I have two choices for output: 1) Subclass QTCaptureOutput and send the data that would go to the file out on a...