6 lines
269 B
Bash
Executable File
6 lines
269 B
Bash
Executable File
#!/bin/bash
|
|
# files and dirs for backup:
|
|
SAVEDIR=/salad/screenshots/
|
|
DATETIME=`date "+%Y-%m-%d-%H-%M-%S"`
|
|
ffmpeg -rtsp_transport tcp -i 'rtsp://ip.of.web.cam/user=admin&password=&channel=1&stream=0.sdp' -f image2 -vframes 1 -pix_fmt yuvj420p ${SAVEDIR}${DATETIME}.jpeg
|