How to embed bash command to record all the video inside hass?

I made an integration for an ip-camera

camera:
  - platform: ffmpeg
    name: "home_01"
    input: -f rtsp -rtsp_transport tcp -i rtsp://admin:[email protected]:8554/live

How can record all the video then?
The following bash command can record video,how can make an integration into the hass ?

ffmpeg   -f rtsp -rtsp_transport tcp -i rtsp://admin:[email protected]:8554/live   /tmp/test.mp4

You cannot. You need software that acts as a DVR. HA is not a DVR.