title: FFmpeg command: stream generated raw video over RTSP
body: <p>I'm looking into using FFmpeg for streaming an output generated by an application to another system in the same network. However, I find the list of commands a little daunting and hard to understand. So I hope I can ask your help in the matter.</p>
  
  <p>My current usecase:
  I have a Unity application which has a separate output stream of video and using a plugin I'm able to save that output to a videofile. The command used is to save this to file is:</p>
  
  <pre><code>ffmpeg -y -f rawvideo -vcodec rawvideo -pixel_format rgba -colorspace bt709 -video_size 1280x720 -framerate 30 -loglevel warning -i - -pix_fmt yuv444p -preset ultrafast -crf 0 test.mp4
  </code></pre>
  
  <p>The output format and such are already correct, but I'd like to stream this output directly over a network now, preferably using RTSP. Using the command below, where I replaced the <code>test.mp4</code> at the end with <code>udp://127.0.0.1:23000</code> to test streaming over UDP, but this returns an IOException in Unity.</p>
  
  <p>Any help in guiding me in the right direction is greatly appreciated.
  Thanks in advance!</p>