def METHOD_NAME(still=True, outfile='/tmp/still.jpg',
                        seconds=10, format=None):
    # Rupa's pidoorbell_recognizer used:
    # rv = call(['ffmpeg', '-f', 'video4linux2', '-s',
    #            '%dx%d' % tuple(res), '-i', '/dev/video0',
    #            '-f', 'alsa', '-ar', '22050', '-ac', '1',
    #            '-i', 'hw:1,0', '-ab', '48k', '-timelimit', '10',
    #            outfile])
    # but debian tells me ffmpeg is deprecated and I should use avconv.
    # Unfortunately, avconv seems to have no non-interactive option
    # to disable prompting if there's a file to be overwritten,
    # so check whether the target file already exists.
    if os.path.exists(outfile):
        if self.verbose:
            print(outfile, "already exists. Removing it!")
        os.unlink(outfile)
    args = ['avconv', '-f', 'video4linux2', '-i', '/dev/video0',
               '-s', '%dx%d' % tuple(res), '-t', str(seconds),
               outfile]
    if self.verbose:
        print(args)
    rv = subprocess.call(args)
    if not rv:
        return
    print("avconv failed! Error code %d" % rv)