Snapshot/VideoRecord with FFMPEG camera

Is possible to do a snapshot and also a camera record with this camera configuration (Ezviz CS-CV206)?

stream:
camera:
  - platform: ffmpeg
    name: Cucina/Salone
    input: !secret ezviz_input

Because if i make a snapshot or a camera record i can’t find the file. the log:

2019-12-06 17:04:57 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=script, service=1575642815266, service_data=>
2019-12-06 17:04:57 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event script_started[L]: name=Nuovo Script, entity_id=script.1575642815266>
2019-12-06 17:04:57 INFO (MainThread) [homeassistant.helpers.script] Script Nuovo Script: Running script
2019-12-06 17:04:57 INFO (MainThread) [homeassistant.helpers.script] Script Nuovo Script: Executing step call service
2019-12-06 17:04:57 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=camera, service=record, service_data=entity_id=camera.cucina_salone, filename=/tmp/te
st.mp4>
2019-12-06 17:04:57 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=stream, service=record, service_data=stream_source=rtsp://admin:[email protected]:5
54, filename=/tmp/test.mp4, duration=30, lookback=0>
2019-12-06 17:04:57 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=script.1575642815266, old_state=<state script.1575642815266=off; last_triggered=N
one, friendly_name=Nuovo Script @ 2019-12-06T17:04:34.274646+01:00>, new_state=<state script.1575642815266=off; last_triggered=2019-12-06T17:04:57.732558+01:00, friendly_name=Nuovo Script @
 2019-12-06T17:04:34.274646+01:00>>

My configuration.yaml

homeassistant:
  whitelist_external_dirs:
    - /config/www/
    - /tmp
camera:
  - platform: ffmpeg
    name: Cucina/Salone
    input: !secret ezviz_input

My script

'1575642815266':
  alias: ScriptCameraVideo
  sequence:
  - data:
      duration: 2
      entity_id: camera.cucina_salone
      filename: /tmp/miaipcam_{{ now().strftime("%Y%m%d-%H%M%S") }}.jpg
    service: camera.record
'1575644324823':
  alias: ScriptCameraImmagine
  sequence:
  - data:
      entity_id: camera.cucina_salone
      filename: /tmp/test.jpg
    service: camera.snapshot

Two scripts but both won’t work…

can you share how you take a snapshot?
You’d normally need to provide a path of where to store the file and a file name
You’ll also need to whitelist the folder where you want to save the file for it to actually save: