Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# .NET SQL-Server-2008
i want anyone help me in how to retrieve a sequence of images as a video from database using code
Posted 7-Apr-13 8:08am
Comments
Zoltán Zörgő at 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 at 8-Apr-13 15:21pm
   
thanks for your replay ,if i want to do that using 3D avatar .what can i do?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
Member 9702410 at 8-Apr-13 15:21pm
   
thanks for your replay ,if i want to do that using 3D avatar .what can i do?
Dave Kreskowiak at 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.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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[^]
  Permalink  
Comments
Member 9702410 at 8-Apr-13 15:21pm
   
thanks for your replay ,if i want to do that using 3D avatar .what can i do?
jkirkerx at 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)

  Print Answers RSS
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,260


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 7 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100