Answered by:
trying to optimize screen video capture using RAM -vs- HD

Question
-
I've looked on-line for a way to edit individual images on MP4s in C# and found nothing.
so, I'm resorting to playing the video full screen in a WindowsMediaPlayer and screen capturing as many images as I can.
the results are good but botchy. So I shut-off my WiFi and disabled services.sysmain to help it along and have mixed results.
for the same 3m40sec MP4 video my screen captures range from 800-1200.
the best times capturs images and stores them on the HD in a binary-stream file as it goes along
- average = 1200 frames
alternate method:
instead of capturing an image and saving it to the HD in the binary-stream file right away I kept them in a list and only saved them to the HD after the video was over. thinking that going to the hard-drive was slowing everything down (the WMP is retrieving the video from the HD and my binary-file-stream is on the same HD) I assumed storing the data in RAM while the video played would speed things up but doing that only gave me on average about 800 frames for the same 3m40sec video.
summary:
- storing each frame to HD as they're captured results in 1200 frames
- storing each frame in RAM as they're captured results in 800 frames
how is that possible?
my code is perfect until i don't find a bug
- Edited by Christ Kennedy Saturday, June 20, 2020 6:09 PM
- Moved by Sara LiuMicrosoft contingent staff Monday, June 22, 2020 5:36 AM
Saturday, June 20, 2020 6:07 PM
Answers
-
Hello,
maybe the answer in that reply already helps you: https://stackoverflow.com/questions/4068414/how-to-capture-screen-to-be-video-using-c-sharp-net
If not, you could ask in stackoverflow: https://stackoverflow.com/questions/tagged/video-capture+c%23
- Proposed as answer by Dave PatrickMVP Monday, June 22, 2020 12:01 PM
- Marked as answer by Dave PatrickMVP Tuesday, June 30, 2020 5:53 PM
Monday, June 22, 2020 6:40 AM
All replies
-
Hi Christ Kennedy,
Welcome to MSDN forum.
Since our forum discusses about the usage of tools and editors in Visual Studio, I will move this thread to “Where is the Forum for” forum, members of this forum will guide you to a suitable forum.
I hope you can get more professional help in corresponding forum.
Thank you for your understanding.
Best Regards,
Tianyu
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.Monday, June 22, 2020 4:44 AM -
Hello,
maybe the answer in that reply already helps you: https://stackoverflow.com/questions/4068414/how-to-capture-screen-to-be-video-using-c-sharp-net
If not, you could ask in stackoverflow: https://stackoverflow.com/questions/tagged/video-capture+c%23
- Proposed as answer by Dave PatrickMVP Monday, June 22, 2020 12:01 PM
- Marked as answer by Dave PatrickMVP Tuesday, June 30, 2020 5:53 PM
Monday, June 22, 2020 6:40 AM