Record streaming

Hi All!
is there a way to record live streaming from cameras (rtsp feed) directly?
i mean, i do this through motion eye, and it sucks from 30 to 60% from my processor resources (RPI3). if i get live feed with generic camera platform it gets like only 10 to 15% from the processor, but no recording, of course. if there is a way to record directly i could manage better the resources.

camera:
  - platform: generic
    name: Corredor
    still_image_url: !secret corredor_url
    stream_source: !secret corredor_stream

  - platform: generic
    name: portao
    still_image_url: !secret portao_url
    stream_source: !secret portao_stream