Page 1 of 1

Play from Memory Stream

Posted: 06 May 2010 19:41
by Zakukashi
Hi I'm currently working on an application which reads blocks of data from an AVI file in form of Memory stream then sends it to a client piece by piece. The client computer then assembles the pieces over time and recreates the AVI file very much like a File transfer. Now I have been dying to find a solution to use the blocks of video data and play them using some method, kind of like a buffer system. Can videoLan play raw memory streams? Also when the client receives the data and recreates it slowly if only 10MB have been created from 700mb, I'm able to use that small 10mb file to view the first 3 minutes of the video through Classical Media player but anywhere else even in VLC it says the Video cannot be played.

Re: Play from Memory Stream

Posted: 08 May 2010 19:30
by Jean-Baptiste Kempf
VLC can play raw streams yes.

Re: Play from Memory Stream

Posted: 09 May 2010 21:37
by Zakukashi
Can you give me an example how to play raw stream?

Re: Play from Memory Stream

Posted: 05 Aug 2010 14:56
by BlackJad
Hello, I have the same problem ...

My app reads a video fie in a MemoryStream object in C#

Can you give me a sample of code that i have to implement, in this situation, to play that video ???

Tnx!!!

Re: Play from Memory Stream

Posted: 05 Aug 2010 15:55
by ivoire
Use the imem_access module to push data inside VLC.

Re: Play from Memory Stream

Posted: 05 Aug 2010 16:57
by BlackJad
Use the imem_access module to push data inside VLC.
Have you any C# code or wrapper class for this function?

Currentrly I use a this class for basic video playback ... viewtopic.php?f=16&t=28553

Re: Play from Memory Stream

Posted: 04 Aug 2014 15:57
by Mike_G
Hi,

There is a common approach to play video from any stream (memory stream or any other), this is a virtualization. The idea is to create a pseudofile those Read/Write/Seek methods are redirected to appropriate stream methods.

For example, here about playing video from encrypted source using a stream: http://boxedapp.com/encrypted_video_streaming.html