Playing Video Stored in Memory

This forum is about all development around libVLC.
noelephant
New Cone
New Cone
Posts: 2
Joined: 15 Dec 2009 16:50

Playing Video Stored in Memory

Postby noelephant » 15 Dec 2009 16:58

I need to integrate a video player / video API into my MFC / C++ application. It needs to be able to take video data stored in memory and display it in a preview window. The video data will be byte arrays coming from custom hardware which will eventually be written to disk. (AVI format)

Is it possible with libVLC to play video data in memory? If not, is there an alternative approach? I need to avoid writing the data to a file then reading it back.

Thanks!

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Playing Video Stored in Memory

Postby Rémi Denis-Courmont » 16 Dec 2009 16:23

Yes, the vmem output does that
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

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: Playing Video Stored in Memory

Postby Jean-Baptiste Kempf » 17 Dec 2009 01:22

a probably the reverse. vmem outputs video in memory. invmem and imem use the reverse way from memory to vlc
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.

MidnightCoder
Blank Cone
Blank Cone
Posts: 82
Joined: 08 Aug 2008 06:04

Re: Playing Video Stored in Memory

Postby MidnightCoder » 21 Dec 2009 09:28

Is vmem a new codec in v1.0.x? Will it help me solve this problem (viewtopic.php?f=7&t=57207)? Can you give an example how to use invmem? I'm looking for the syntax. I"m wondering how do specify the memory address of my video file from an external application.

nimport nawak
New Cone
New Cone
Posts: 7
Joined: 07 Dec 2009 11:43

Re: Playing Video Stored in Memory

Postby nimport nawak » 21 Dec 2009 11:07

Here is an example :

viewtopic.php?f=32&t=53256


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 14 guests