Hai All
I was just implement the thread concept in video rendering.To render the video one thread and convertion and frame by frame set up done by another thread. The following algorithm used for full fill the concept.
Thread 1.
Read a Frame.
Lock the rectangle area for render.
Pack the data as per the format supported by display
Unlock the rectangle area for render.
Thread 2.
Begin a scene
Set The Texture
Draw use the primitivesUP macro
End the scene
Present.
Exit from the thread.
I am using system memory and never use video cards.My system memory nearly 760 MB and processor speed 1.7 GHz.
The above algorithm for thread consistently work for small video files.But when large file come rendering fails after 100 frames.
I am setting the thread loop by total number of frames.
Can someone interested just replay how i solve the problem.
+ Reply to Thread
Results 1 to 3 of 3
-
-
Watch your process with Task Manager. If "Mem Usage" goes up and up as the program runs you have a memory leak.
-
No memory problem.
Suppose same texture use with multiple times with same device then any type of problem.
This breakage is the aftermath of the above reason.
Similar Threads
-
Thread about video cables?
By osaeed09 in forum FeedbackReplies: 2Last Post: 28th Nov 2011, 18:23 -
video rendering
By rizvii in forum Authoring (DVD)Replies: 4Last Post: 7th May 2009, 04:30 -
Does a better video card improve the quality of video when rendering?
By raysolomon in forum EditingReplies: 8Last Post: 3rd Mar 2009, 20:24 -
Video Rendering
By tapal in forum Authoring (DVD)Replies: 4Last Post: 23rd May 2008, 09:30 -
Multi-frame logical reference - a new video enhancement concept
By forensic in forum ProgrammingReplies: 11Last Post: 6th Apr 2008, 03:47