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

7307 questions
63
votes
6 answers

Download image from the site in .NET/C#

I am trying to download images from the site. The code which I am using is working fine while the image is available. If the image it not available it is creating a problem. How to validate availability of the image? Code: Method 1: WebRequest…
Geeth
  • 5,282
  • 21
  • 82
  • 133
62
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
  • 6,780
  • 4
  • 21
  • 20
59
votes
5 answers

How to minimize the delay in a live streaming with ffmpeg

i have a problem. I would to do a live streaming with ffmpeg from my webcam. I launch the ffserver and it works. From another terminal I launch ffmpeg to stream with this command and it works: sudo ffmpeg -re -f video4linux2 -i /dev/video0 -fflags…
Pasquale C.
  • 619
  • 1
  • 9
  • 7
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
  • 27,594
  • 16
  • 81
  • 105
58
votes
2 answers

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,650
  • 1
  • 17
  • 14
57
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
  • 43,474
  • 48
  • 123
  • 161
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
  • 28,392
  • 37
  • 134
  • 178
55
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…
joshwbrick
  • 5,882
  • 9
  • 48
  • 72
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…
52
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
  • 868
  • 1
  • 13
  • 23
51
votes
9 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,505
  • 3
  • 20
  • 20
48
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
  • 40,828
  • 14
  • 81
  • 115
47
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
  • 1,229
  • 2
  • 11
  • 14
47
votes
3 answers

Apply a Regex on Stream?

I'm searching for fast and safe way to apply Regular Expressions on Streams. I found some examples over the internet that talking about converting each buffer to String and then apply the Regex on the string. This approach have two…
DxCK
  • 4,402
  • 7
  • 50
  • 89
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
  • 4,012
  • 4
  • 36
  • 41