View Full Version : MPC-HC Save Images every 30 seconds.
kmatt02
25th March 2010, 21:01
Hey guys.
I have a question and I really hope MPC-HC can do this. I assume it can because of the thumbnail gallery feature.
So, I have a video file and I need full resolution image capture from the video every 30 seconds. So I have 3 hours of footage - I essentially want to press a button and out will pop 360 full res images from my video in a folder, each taken at 30 second intervals throughout.
Please help!
Cheers.
clsid
26th March 2010, 12:26
The "grab" filter in ffdshow can do that.
The "save thumbnails" feature in MPC can generate a single image with multiple small screenshots taken from the video.
kmatt02
26th March 2010, 16:45
Thanks for the pointer.
I've been playing in FFDshow and I've managed to make it take a screengrab every 750 frames (25 frames per second * 30 = 750).
So its dropping out a picture every 30 seconds. But this only works if I play the video in real time.
How can I just open the file and have all the images drop out instantly?
clsid
26th March 2010, 17:51
That's not possible. At least not with MPC and ffdshow.
gngn
27th March 2010, 10:53
you could use Avisynth and it's ImageWrite option. but i dont know what would be the best method.
i've tried with the following script, but it didnt work with MPC+ffdshow (havent tried other Directshowplayers or other H264 decoders, as it was a x264 movie), i had to load it in Virtualdub. even there, for a 100min movie set to capture every 60sec it would stall after ~35 frames (it worked then by pressing Stop and then again Play, and then again after the next ~30 frames). all in all it took under 10min.
-----------------------------------------
DirectShowSource("sourceclip")
Killaudio()
selectevery(750,0) #select frame every 30 sec
ConvertToRGB()
ImageWriter("C:\movie", 0, 0, type="png")
--------------------------------------------
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.