Play from Memory Stream

This forum is about all development around libVLC.
Zakukashi
New Cone
New Cone
Posts: 4
Joined: 06 May 2010 19:33

Play from Memory Stream

Postby Zakukashi » 06 May 2010 19:41

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Play from Memory Stream

Postby Jean-Baptiste Kempf » 08 May 2010 19:30

VLC can play raw streams yes.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Zakukashi
New Cone
New Cone
Posts: 4
Joined: 06 May 2010 19:33

Re: Play from Memory Stream

Postby Zakukashi » 09 May 2010 21:37

Can you give me an example how to play raw stream?

BlackJad
New Cone
New Cone
Posts: 6
Joined: 05 Aug 2010 14:52

Re: Play from Memory Stream

Postby BlackJad » 05 Aug 2010 14:56

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!!!

ivoire
Cone that earned his stripes
Cone that earned his stripes
Posts: 413
Joined: 20 Aug 2008 11:29
VLC version: trunk
Operating System: linux (debian sid)
Contact:

Re: Play from Memory Stream

Postby ivoire » 05 Aug 2010 15:55

Use the imem_access module to push data inside VLC.

BlackJad
New Cone
New Cone
Posts: 6
Joined: 05 Aug 2010 14:52

Re: Play from Memory Stream

Postby BlackJad » 05 Aug 2010 16:57

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

Mike_G
New Cone
New Cone
Posts: 2
Joined: 04 Aug 2014 15:52

Re: Play from Memory Stream

Postby Mike_G » 04 Aug 2014 15:57

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


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 24 guests