Welcome to Help4Web.co.uk - Web Design Help, Html Tutorial, Php, Asp , SQL help and CCNA, MCSE definitions!
Google
Webkpop-web.com

     Main Menu

· Home
· Free Downloads
· Computing FAQ
· Contact Us
· Free Software Downloads
· Tech Forum
· Technology News
· Web Design Help
· Web Links
· Your Online Account
· Your PM



     Web Browser


     Website Links
Supermediastore! #1 in Computer media & Accessory

White Papers IT
Learn Korean
Chinese Pop Music
Advertise Kpop
Korean Pop Site Map
Web Design
Pop Music
Chinese Girls
HK Pop Korean Music
Lee Hyori
Hyori
Boa Park Ji Yoon
Baby Vox YG Family
Jeon Ji Hyun
1 Tym Ha Ji Won
Shyne Rain Bi
Shin Mina SM Town
Fly to the Sky
Korean Girls and Models
Nicholas Tse
161 Clan
보아
Edison Chen
Sung Hi Lee
Shinhwa
Andy Lau Jay Chou
White Papers
Case Study SES
Kelly Chen
Liu Yi Fei Sammi Cheng
Jordan Chan Music
Computer Jobs IT

Computer Help Forum and Programming Advice :: View topic - Programming trick to screen cap videos and dvd pics
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log inLog in 

Programming trick to screen cap videos and dvd pics

 
Post new topic   Reply to topic    Computer Help Forum and Programming Advice Forum Index -> Graphic Workshop
View previous topic :: View next topic  
Author Message
nomuken
Web Design Newbie
Web Design Newbie


Joined: Oct 18, 2005
Posts: 17

PostPosted: Tue Oct 18, 2005 7:06 pm    Post subject: Programming trick to screen cap videos and dvd pics Reply with quote

If you are writing a screen capture program to get video frames but find that it only captures a blank window when playing a video then I discovered a trick for you.

This is not my original idea so can't take credit for it. I found a link on a programming forum but lost it so I can't provide a direct link.

Under normal circumstances, hardware acceleration prevents you from capturing the video layer resulting in a black frame where the image should be. It might be very difficult if not impossibe to disable hardware settings on someones computer within your program so what can you do?

The trick is to first start a small video in background before running you screencap application. This will occupy the harware layer with the small file. Only one playing video can use hardware acceleration so when you run the next video it runs with software assist only and you can then easily get all the screen caps you want.

One way to implement this could be to have a small video in a resource file and run it using your own built-in player. Your form could remain hidden so no-one will actually know that a video is playing (no audio needed). If the player window from which the screencap will be done is within your program then the user needs no other information except how you want him to select the video window etc....
If you are letting the user choose his own player from which to capture frames then you would have to have a splash screen warning the user to close any playing video and run your program first. Anyway I think most programmers can figure out what I mean here.
The advantage of imbeddding your own player is that you can do multi frame captures and or timed captures etc... instead of just single snaps like most programs allow.

I did not test this within a program yet but did do a test using MS windows media player and media player classic.

For comparison, leave hardare acceleration on and play a dvd etc.. with MPC and hit printscreen. Paste the result in and image editor like mspaint and you get a blank screen where the video should be.

Now close MPC and start a small video in WMP and then open a video (AVI,VOB,DVD) in MPC and hit print screen. Paste the image and there you have a image of the video.

That is not how you do it in a program but this illustrates that it works.

I'm tight for time right now so don't have time to play with this but I'll try something in a vb program within a few weeks. Anyone else is welcome to test this if you want.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Computer Help Forum and Programming Advice Forum Index -> Graphic Workshop All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum







Learn Chinese | Learn cantonese | Learn Mandarin | Grace Park | Party Organisers | Kaila yu | Phone Card | Twins | Chinese Society | Loans UK | BokuMaro | CV Help Book | Chinese Wife | Korean Singles | British Born Chinese | Bae Yong Jun | Speak Korean | Chinese Models | Music | Information Security Management | Maritime Greenwich Campus | Covering Letters Help | Chinese Music | Jang Nara | SES | YG Family | Learn Korean | Firewall Definition | Server Definition | Wireless Network Definition | E-Commerce Definition | Sales Leads | Application Firewall | CCNA definitions | Research Papers | Webcast | CV Help

Author KPop Music :- Jon Bock ( Chinese Pop Music Learn Korean )
Produced by Kpop-Web Design Associates, all rights not reserved.
Internet Marketing and Search Engine Optimisation Software Defined Radio