nix, shell, perl, php, mysql and mac os x tips and tricks

Saturday, May 29, 2004

Capture X minutes of video into file Y from /dev/video0 for DVD creation

# Arguments:
# 1. Minutes of video to burn
# 2. Base filename output will be filename.avi

system("streamer -n ntsc -t " . ($ARGV[0] * 30 * 60) . " -s 720x480 -r 30 -o $ARGV[1].avi -f mjpeg -R 48000 -F stereo -c /dev/video0");

print $ARGV[0] . " minutes captured into $ARGV[1].avi\n";

No comments:

Post a Comment