Main page
MPlayer
Squid
AVR
Méterszámláló (HU)
News
Download
Contact us
Links
 
 
Current version Description Download files History

I created some patch with cctv.

OSD timestamp

Install:

patch -p0 -i cctv-timestamp.patch

Configure:

./configure --enable-timestamp

Usage:

mplayer tv:// -osd-timestamp-format "Camera1 %Y.%m.%d %H:%M:%S" -osd-timestamp-alignment 3 [options]
mencoder tv:// -osd-timestamp-format "Camera1 %Y.%m.%d %H:%M:%S" [options]

Options:

  • -osd-timestamp-format <format string> (eg.: "%Y-%m-%d %H:%M:%S Cam1")
  • -osd-timestamp-alignment <alignment> (0: left-bottom corner, 1: left-up corner, 2: right-up corner, 3: right-bottom corner)

OSD timestamp samples:

-osd-timestamp-alignment 0-osd-timestamp-alignment 1
-osd-timestamp-alignment 2-osd-timestamp-alignment 3

Sharedmem

Install:

1. copy stream_sharedmem.c to stream/stream_sharedmem.c
2. copy video2mem/* to TOOLS/video2mem/*
3. patch -p0 -i cctv-sharedmem.patch

Configure:

./configure --enable-sharedmem [options]

Build:

make
cd TOOLS/video2mem
make

Usage example:

mencoder tv:// -tv device=/dev/video0:width=720:height=576 [options] -smemid 1001 &
mencoder tv:// -tv device=/dev/video1:width=720:height=576 [options] -smemid 1002 &
mencoder tv:// -tv device=/dev/video2:width=720:height=576 [options] -smemid 1003 &
mencoder tv:// -tv device=/dev/video3:width=720:height=576 [options] -smemid 1004 &

mplayer { smem://1001 smem://1002 smem://1003 smem://1004 smem://1001,1002,1003,1004 -vf scale=360:288,tile=2:2 -fps 100 } -loop 0
 
video2mem &

mplayer { smem://1001 smem://1002 smem://1003 smem://1004 smem://1001,1002,1003,1004 -vf scale=360:288,tile=2:2 -fps 100 } -loop 0

Options:

  • -smemid <shared memory id>

Shared display samples:

mplayer smem://1001,1002,1003,1004 -vf tile=2:2

Example video2mem config file:

tvfps = 5
                                                        
tvinput = 1
tvfreq = 175.250
tvwidth = 640
tvheight = 480
tvformat = i420

[Cam1]	// 1 camera
tvdevice = /dev/video0
tvsmemid = 1000

[Cam2]
tvdevice = /dev/video1
tvsmemid = 1001

[Cam3]
tvdevice = /dev/video2
tvsmemid = 1002

Warning!

Maximum bandwidth of the 32bit PCI bus are about 120 fps. If you use 8 piece TV grab channels (eg.: 2 x IVC200 cards) then it will be requred to limite for 15 (120/8) fps else the system can be crashed. Don't use 'mplayer/mencoder -tv fps=15' options! Please, use the video2mem.

I am sorry to say that my English knowledge isn't good.

Best regards! Ötvös Attila.

2006.10.30