Check number of open connections by IP address
July 6th, 2010
No comments
Categories: Linux
echo $((1024 * 1024 * xxx)) > /proc/sys/kernel/shmmax
Change xxx to MB required
To read value ( in MB )
echo $((`cat /proc/sys/kernel/shmmax` / 1048576))
Add command to rc.local to enter at boot.
This will allow you to capture a single frame from a ASX / ASF / MMS stream. Be aware if the ASX contains more than 1 file, you will get more than 1 screen capture. Also remember to use the playlist option for ASX streams
mplayer -playlist http://xxxxx -ss 1 -frames 1 -vo jpeg
When building mplayer you will need libjpeg – do mplayer -vo help to list available output options.