View Single Post
Old 2004-05-03, 21:13   Link #140
Green²
It's Magic
 
 
Join Date: Nov 2003
Location: Up and to the Left
Age: 34
Image Capture Guide - ffdshow (build 5/1/2004)


Pros:

•Precise captures through capture range.
•Should be able to capture frames to JPEG, PNG, and BMP formats.


Cons:

•Process is longer than virtualdub and BSplayer.
•Forgetting to disable the capture option when not in use will cause ffdshow to capture frames in range on every ffdshow decoded video file when played.


Requirements:


•ffdshow (Process tested only on build 5/1/2004, should work on earlier builds.)
•Video file of choice, must be decoded by ffdshow.
•Text editor, pen & paper, or a good memory.


Process:


1) Open the ffdshow configuration panel. This should be found at (Start/All Programs/ffdshow). Or you can open it through a media player's filter graph. BSplayer for example: You can right-click on the video window, and then select (Options/Filters/ffdshow MPEG-4 video decoder).

2) On the left column of the ffdshow configuration panel, you should see a box labeled OSD. Left-click on that word, and then you should see the OSD configuration options in the right column. There you will need only (Current frame) to indicate frame position. Also, add a check mark to the box labeled: OSD display and font. You can alter the font size and color here if desired to allow easier viewing of the OSD (On Screen Display). Select Apply to save changes, then close configuration panel if necessary.

3) Open the video file of choice and play the video. You should now see the OSD labeled (Current frame:) on the top left corner within the video window. This will be used to mark between two points of the video frames that you want to capture.

Seek the video to just before the frames that you want to capture and then pause the video. Make note of the frame number that is listed on the OSD. (Use something such as Notepad.exe to make the notes on.) Now seek to just after the frames that you want to capture and then pause the video. Make note of the frame number that is listed on the OSD.

4) Reopen the ffdshow configuration panel if it isn't already open. On the left column, left-click on the word (Grab) to view the Grab menu on the right column. In the right column, set file path to a folder of choice. Frame captures will then be placed within that folder. Select image format: JPEG, then set quality to 100. Now select Range and also place a check mark to the box labeled Grab.

Next to range you should see two boxes. The left box is for the start frame capture position, and the right box is for stop frame capture position. Place your OSD provided marks in the appropriate boxes. Select Apply to save changes, then close configuration panel if necessary.

5) In the video file window, seek to just before the start of the frames that you want to capture and then play the video until you pass the end of your desired frames. The frames should now be captured to your set file path.

6) Disable OSD and Grab by reopening the ffdshow configuration panel if it isn't already open. In the left column, remove the check mark next to OSD and Grab by left-clicking on the boxes.


NOTE: Failing to disable Grab in ffdshow will cause ffdshow to range-capture frames every time a ffdshow decoded file is run through the frame range.

Also note that my test were done using Overlay Mixer enabled with full Postprocessing within ffdshow.
Green² is offline   Reply With Quote