var ffmpeg = require('fluent-ffmpeg');
var command = ffmpeg();
var proc = ffmpeg('rtsp://192.168.0.6:8554/')
.outputOptions(['-f image2', '-vframes 1', '-vcodec png', '-f rawvideo', '-s 320x240', '-ss 00:00:01'])
.output('/home/pi/Documents/rtsp/img.png')
.run();