Questions tagged [streaming]

Streaming is the process of delivering digital multimedia content from a provider to a consumer over a network. The provider may have the data stored or may be relaying it from a live source.

In computer science, streaming is the process of sending or receiving a sequence (stream) of data elements made available over time. A stream can be thought of as a conveyor belt that allows items to be processed one at a time rather than in large batches which must be completed in whole before subsequent data transfer occurs.

Streams are processed differently from batch data – normal functions cannot operate on streams as a whole, as they have potentially unlimited data, streams are codata (potentially unlimited), not data (which is finite).

More details in Wikipedia page on streaming media

Streaming Libraries

6889 questions
59
votes
2 answers

Streaming large file uploads to ASP.NET MVC

For an application I'm working on, I need to allow the user to upload very large files--i.e., potentially many gigabytes--via our website. Unfortunately, ASP.NET MVC appears to load the entire request into RAM before beginning to service it--not…
Benjamin Pollack
  • 25,420
  • 16
  • 76
  • 102
58
votes
2 answers

How to stream an HttpResponse with Django

I'm trying to get the 'hello world' of streaming responses working for Django (1.2). I figured out how to use a generator and the yield function. But the response still not streaming. I suspect there's a middleware that's mucking with it -- maybe…
muudscope
  • 5,954
  • 4
  • 19
  • 19
57
votes
1 answer

Streaming audio from a Node.js server to HTML5

I've been experimenting with binary streams in Node.js, and much to my amazement do actually have a working demo of taking a Shoutcast stream using node-radio-stream and pushing it into a HTML5 element using chunked encoding. But it only works in…
Scott Wilson
  • 1,580
  • 1
  • 15
  • 14
56
votes
4 answers

Stream large binary files with urllib2 to file

I use the following code to stream large files from the Internet into a local file: fp = open(file, 'wb') req = urllib2.urlopen(url) for line in req: fp.write(line) fp.close() This works but it downloads quite slowly. Is there a faster way?…
hoju
  • 24,959
  • 33
  • 122
  • 169
55
votes
6 answers

How can I stream webcam video with C#?

I want to make a simple server application where people can connect using a browser-based client (which I will make later) to watch streaming video. And I want to use C#. What do I need to capture video or rapid images through a webcam and send them…
The.Anti.9
  • 38,714
  • 46
  • 114
  • 156
54
votes
6 answers

Playing m3u8 Files with HTML Video Tag

I am trying to use HTTP Live Streaming (HLS) to stream video to my computers and my iPhone. After reading through the Apple 'HTTP Live Streaming Overview' as well as 'Best Practices for Creating and Deploying HTTP Live Streaming Media for the…
drucifer
  • 541
  • 1
  • 4
  • 3
53
votes
6 answers

Why does it take so long for Android's MediaPlayer to prepare some live streams for playback?

I am finding big differences in the time it takes the Android MediaPlayer to prepare for live stream playback with different streams. The hard data I added logging between prepareAsync() and the onPrepared(MediaPlayer mp) callback and tested several…
50
votes
3 answers

AVPlayer vs. AVAudioPlayer

The documentation for AVPlayer states the following: [The] player works equally well with local and remote media files However, the documentation for AVAudioPlayer states the following: Apple recommends that you use this class for audio playback…
macinjosh
  • 5,581
  • 9
  • 45
  • 69
49
votes
4 answers

How can we transcode live rtmp stream to live hls stream using ffmpeg?

I am trying to convert a live rtmp stream to hls stream on real time. I got some idea after reading http://sonnati.wordpress.com/2011/08/30/ffmpeg-%E2%80%93-the-swiss-army-knife-of-internet-streaming-%E2%80%93-part-iv/ i am able to convert the live…
Kiran
  • 803
  • 1
  • 10
  • 21
46
votes
10 answers

Ruby on Rails 3: Streaming data through Rails to client

I am working on a Ruby on Rails app that communicates with RackSpace cloudfiles (similar to Amazon S3 but lacking some features). Due to the lack of the availability of per-object access permissions and query string authentication, downloads to…
jkndrkn
  • 3,860
  • 4
  • 32
  • 40
46
votes
6 answers

Streaming large result sets with MySQL

I'm developing a spring application that uses large MySQL tables. When loading large tables, I get an OutOfMemoryException, since the driver tries to load the entire table into application memory. I tried…
configurator
  • 38,246
  • 13
  • 76
  • 112
45
votes
3 answers

How do I read a large CSV file with Scala Stream class?

How do I read a large CSV file (> 1 Gb) with a Scala Stream? Do you have a code example? Or would you use a different way to read a large CSV file without loading it into memory first?
Jan Willem Tulp
  • 969
  • 2
  • 8
  • 14
44
votes
5 answers

synchronizing audio over a network

I'm in startup of designing a client/server audio system which can stream audio arbitrarily over a network. One central server pumps out an audio stream and x number of clients receives the audio data and plays it. So far no magic needed and I have…
sharkin
  • 11,386
  • 19
  • 83
  • 119
44
votes
4 answers

What is the difference between HLS and MPEG-DASH?

It seems both protocol does the same thing but is there a advantage of one over the other?
Necip Onur Uzun
  • 1,085
  • 3
  • 12
  • 16
43
votes
8 answers

How to get Duration from AVPlayer (Not AVAudioPlayer)?

I would like to make a UISlider(scrubber) for my AVPlayer. But since this is not an AVAudioPlayer, it doesn't have a built in duration. Any suggestion on how to create the Slider for fast forward, rewind and progress of the playback? I read the doc…
slowman21
  • 2,235
  • 3
  • 17
  • 20