Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Play Video Directly from TMemoryStream
07-15-2014, 07:51 AM
Post: #1
Play Video Directly from TMemoryStream
What are the steps needed to play a video using Delphi's TMemoryStream object instead of using the FileName property?

Thanks in advance.
Quote this message in a reply
07-16-2014, 07:05 AM
Post: #2
RE: Play Video Directly from TMemoryStream
(07-15-2014 07:51 AM)CapeCodGunny Wrote:  What are the steps needed to play a video using Delphi's TMemoryStream object instead of using the FileName property?
Hopefully this image explains the concept of what I'd like to accomplish:

I’d like to make the TMemoryStream the INPUT to TVLDSVideoPlayer.

There is no Filename.
The video is inside the database as a BLOB (BinaryLargeOBject).
The database outputs the video BLOB to a TMemoryStream.
The TMemoryStream becomes the INPUT to the TVLDSVideoPlayer.

How can this be done using Video Lab?


Attached File(s) Thumbnail(s)
   
Quote this message in a reply
07-16-2014, 09:16 AM
Post: #3
RE: Play Video Directly from TMemoryStream
Hi! Instead of a TMemoryStream you may want to assign your blob to a TVLCVideoBuffer, the Read and Write methods might be of interest to you. The buffer can be fed to a VL(DS)ImageDisplay or using a VLGenericFilter to push it to a VideoPlayer. Hope that helps.

Regards,
Dave
Quote this message in a reply
07-17-2014, 08:43 PM
Post: #4
RE: Play Video Directly from TMemoryStream
(07-16-2014 09:16 AM)Dave Wrote:  Hi! Instead of a TMemoryStream you may want to assign your blob to a TVLCVideoBuffer, the Read and Write methods might be of interest to you. The buffer can be fed to a VL(DS)ImageDisplay or using a VLGenericFilter to push it to a VideoPlayer.
I'm using Delphi XE4. Where can I find more information on the TVCLVideoBuffer?
Quote this message in a reply
07-18-2014, 12:15 AM
Post: #5
RE: Play Video Directly from TMemoryStream
Try here: http://mitov.com/wiki/index.php?title=In...mageBuffer
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)