[MPlayer-dev-eng] [PATCH] OSD timestamp

Ötvös Attila dc at chello.hu
Wed Dec 3 21:23:34 CET 2008


Hi All!

I update my OSD timestamp patch.

Parameters:

-osdtime [b|t[r|c|l]]_<format string> (eg.: "bl_%Y-%m-%d\tCam1\t%H:%M:%S")
Align:
	_	 : bottom-left (default)
 	b_	 : bottom-left
 	t_	 : top-left
 	bl_	 : bottom-left
 	bc_	 : bottom-center
 	br_	 : bottom-right
 	tl_	 : top-left
 	tc_	 : top-center
 	tr_	 : top-right
Format string:
 	\\	 : '\'
 	\_	 : ' ' (space)
 	\t	 : switch horizontal align: left -> center -> right -> left ...
 	\r	 : switch vertical align: top -> bottom -> top ... (restore vertical 
align)
 	\n	 : New line (restore vertical align)
 	%Y	 : Year (4 digit)
 	%m	 : Month (decimal number)
 	%d	 : Day (decimal number)
 	%H	 : Hour (24h)
 	%S	 : Minutes
 	%M	 : Second
other format: see man strftime

-osdtime-hmargin (0-100) : Set horizontal (left and right) margin in pixel 
(default: 10).

-osdtime-vmargin (0-100) : Set vertical (top and bottom) margin in pixel 
(default: 10). 

Example:

-osdtime "bl_%Y.%m.%d\tCam\_1\t%H:%M:%S"
|2008.12.30 ... Cam 1 ... 12:21:30|

-osdtime "bc_Cam\_1\t%Y.%m.%d\n\t%H:%M:%S"
| ...  ... 2008.12.30|
| ... Cam 1 ... 12:21:30|

-osdtime "tl_%Y.%m.%d\r%H:%M:%S"
|2008.12.30 ...
| ...
| 12:21:30 ...

Some screenshot:

http://www.onebithq.com/root/mplayer/cctv/20081203

Best regards.
Attila
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osdtime.patch
Type: text/x-diff
Size: 15593 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20081203/a8851019/attachment.patch>


More information about the MPlayer-dev-eng mailing list