Linux for IP Camera (RTSP to RTMP)

I would like to use Jetson Nano only to convert RTSP to RTMP using Restreamer. Do I have to install a huge linux package from Nvidia or can I get by with basic linux - which one? I want to control the Jetson Nano via putty on the network.

By default it is Ubuntu desktop in sample rootfs. You may check developer guide to customize rootfs and generate customized image.