Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
i want anyone help me in how to retrieve a sequence of images as a video from database using code
Posted
Comments
Zoltán Zörgő 7-Apr-13 13:17pm    
You can not do this directly. You can get the frames from any source, but you have to use something in between that encodes your frames to a video stream/file.
Member 9702410 8-Apr-13 15:21pm    
thanks for your replay ,if i want to do that using 3D avatar .what can i do?

You can't. SQL Servers won't build a video from the data. You have to have some other component to get the frames, build the video, then pass it to your code. You'll probably have to write this yoursefl, from scratch.
 
Share this answer
 
Comments
Member 9702410 8-Apr-13 15:21pm    
thanks for your replay ,if i want to do that using 3D avatar .what can i do?
Dave Kreskowiak 8-Apr-13 16:26pm    
Contact the makes of 3d Avatar or the documentation on it. I have no idea as I've never used it.
That's an oxy moron,
if you receive images, then they are images,
if you receive video, then it's a video, which consist of many images and an audio track.

I think you can convert images to video using ffmpeg, in which you assign the image, the video encoding, and how many seconds of video you need from it, and can actually tie together multiple groups of these into a complete video, or a video prefix or suffix to compliment a video. I think you can also watermark using an image with the alpha channel turned on.

But that's alot of work. You'll need the correct ffmpeg, a wrapper to call ffmpeg, and then will have to write a result parser, regex to analyze the result string from the command prompt.

if the images are blobs in the column, then I think ffmpeg wants to read the image file stream off the disk drive, but it may take the stream in memory. I forget, it's been a year.

I ended up writing my own wrapper, because I couldn't find anything that really worked, and for vb.

ffmpeg
http://www.ffmpeg.org/[^]

exe Wrapper for asp.net
http://jasonjano.wordpress.com/2010/02/09/a-simple-c-wrapper-for-ffmpeg/[^]

Video for media handler
http://www.youtube.com/watch?v=nK3TPHhX0Rc[^]
 
Share this answer
 
Comments
Member 9702410 8-Apr-13 15:21pm    
thanks for your replay ,if i want to do that using 3D avatar .what can i do?
jkirkerx 8-Apr-13 16:41pm    
I have no clue,

I had to write a movie program like you tube, and wrote a program to take an image, and convert it to video with audio, and append it to the existing movie in asp.net.

It's just one way to do it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900