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
Thread
-
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
-
Multi-frame logical reference - a new video enhancement concept
By forensic in forum ProgrammingReplies: 11Last Post: 6th Apr 2008, 03:47 -
Main Concept and Stoik Video Converter
By wulf109 in forum Newbie / General discussionsReplies: 1Last Post: 18th May 2004, 22:13 -
Main Concept Encoder Problem - Video but no audio!
By tyders in forum Newbie / General discussionsReplies: 2Last Post: 8th Aug 2003, 11:36 -
Main Concept MPEG encoder Video problems
By Dwightster in forum Video ConversionReplies: 5Last Post: 24th Jun 2003, 09:41
Newest guides
Latest tool updates
New media comments
Recent DVD Hacks
About   Advertise   Forum   Forum Archive   RSS Feeds   Statistics   Tools   



Quote