title: Start RTSP server on Linux with USB Web-cam source
body: <p>I would like to write a script that runs the RTSP server on a PC with Linux, using ffmpeg, gstreamer, or other media framework.</p>
  
  <ul>
  <li>Video source: Web camera connected via USB to PC.</li>
  <li>Provide the ability to view the video stream using VLC or another RTSP client.</li>
  <li>Dump traffic using tcpdump</li>
  </ul>
  
  <p>What have I done for now:
  streamed the USB camera to a rtsp server by using ffmpeg: </p>
  
  <pre><code>ffmpeg -f v4l2 -input_format h264 -timestamps abs -video_size hd720 -i /dev/video0 -c:v copy -c:a none -f rtsp rtsp://10.52.9.104:45002/cameraTx1
  </code></pre>
  
  <p>What to do next? Is it possible to make some bush-script for it?</p>