View Full Version : Capturing DVD Frames
peterfund
11th August 2009, 17:32
Hi,
I have several DVD players software. That includes Windows Media Player.
I have searched through the CAPTURE forum but could not find a decent direct answer to my need.
How do I capture DVD frame of the player to Bitmap? I do not want to use any pre-built software. Is there any way like getting the handle of the player and do something with it.
Delphi coding appreciated.
Thank you for your time.
thewebchat
11th August 2009, 18:37
You could set the output to VMR and hit print_screen. There is also an example of screenshot saving code in ffdshow's "grab" filter and in Media Player Classic.
Ghitulescu
11th August 2009, 18:41
I think virtually all players have a "snapshot" function, at least all I did try.
I do my snapshots with 3 programs now, VLC (difficult for VOBs), SMplayer and Womble MPEG VCR (you can pick up any frame you want since it's an editor).
setarip_old
12th August 2009, 01:45
@Ghitulescu
Hi!
I don't think that's what the OP is seeking, as he/she stated:I do not want to use any pre-built software. Is there any way like getting the handle of the player and do something with it.
Delphi coding appreciated.
Ghitulescu
12th August 2009, 19:05
Ok, so the OP should go and pick up the sources of Mplayer which are GPLed and write his own BMP saving routine.
peterfund
13th August 2009, 16:54
Ok, so the OP should go and pick up the sources of Mplayer which are GPLed and write his own BMP saving routine.
I do learn the MPUI (delphi interface for Mplayer) for many weeks. I do not see anywhere in the codes for grapping DVD frames. I should appreciate your comment on the possibilities and guide of doing so. FFDSHOW would capture the only the size of ffdshow Video Window screen. What I meant is the real size of the DVD frame, say 720x480.
To make this simpler, is it possible to capture the unprotected DVD playing on a Windows Media Player, by coding, not screen capture.
Thank you for your patience.
Ghitulescu
13th August 2009, 16:59
I do learn the MPUI (delphi interface for Mplayer) for many weeks. I do not see anywhere in the codes for grapping DVD frames. I should appreciate your comment on the possibilities and guide of doing so. FFDSHOW would capture the only the size of ffdshow Video Window screen. What I meant is the real size of the DVD frame, say 720x480.
To make this simpler, is it possible to capture the unprotected DVD playing on a Windows Media Player, by coding, not screen capture.
Thank you for your patience.
I do not have details (I gave up programming many years ago), but since Mplayer displays the DVD then it has to decode the MPEG2 stream and to output it frame by frame. Somewhere a buffer holding the video data for a frame should exist, just hook a callback function to save it to disk.
-=-
I meant by this recompiling the mplayer sources, not to write a GUI that passes some parameters.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.