Record of some of the computer tech I deal with so that it's documented at least somewhere.

Monday, 15 October 2007

Screen caps in mplayer

I could pull my hair out, I could have capped straight from the VOBs

mplayer -vf 'screenshot=1'

then you can press 's' to snapshot and it gets saved in the current dir as snap000.png (and 000 counts but doesn't overwrite so if you can 10 frames and delete snap001.png then next snap will use that filename)

or add

vf='screenshot=1'
quiet=1

to ~/.mplayer/config

and I added these to my ~/.mplayer/input.conf

MOUSE_BTN1 pausing screenshot 0
MOUSE_BTN0 screenshot 0
RIGHT pausing seek +3
LEFT pausing seek -3

The seek isn't totally reliable for VOBs. I found pausing and then capping was the way to get the frame one wants.

I've not tried it in gmplayer yet.

No comments: