Video in telegram notification?

Yes i did. I save 10 seconds of mp4 video with shell_command and ffmpeg.

shell_commands.yaml

snapshotv: !secret snapv

secret.yaml

snapv: ffmpeg -rtsp_transport tcp -r 25 -i rtsp://USER:PASS@IP:10554/tcp/av0_0 -an -t 10 -c copy -map 0 -y -update 1 {{filename}}

script.yaml

telegram_video:
  alias: "10 sec mp4"
  sequence:
    - service: shell_command.snapshotv
      data:
          filename: /tmp/shot1.mp4
    - delay:
        seconds: 12
    - service: telegram_bot.send_video
      data_template:
        file: "/tmp/shot1.mp4"
2 Likes