title: Gstreamer: How to change RTSP port?
body: <p>I'm trying to create RTSP server by <code>test-mp4</code> usage from <code>gst-rtsp-server</code> example. 
  The example works, but I need to change basic 8554 port to another.</p>
  
  <p>I checked the <code>test-record.c</code> example, where we can see:</p>
  
  <pre><code>#define DEFAULT_RTSP_PORT "8554"
  static char *port = (char *) DEFAULT_RTSP_PORT;
  ...
  static GOptionEntry entries[] = {
    {"port", 'p', 0, G_OPTION_ARG_STRING, &amp;port,
        "Port to listen on (default: " DEFAULT_RTSP_PORT ")", "PORT"},
    {NULL}
  };
  
  optctx = g_option_context_new ("&lt;launch line&gt; - Test RTSP Server, Launch\n\n"
        "Example: \"( decodebin name=depay0 ! autovideosink )\"");
  
  g_option_context_add_main_entries (optctx, entries, NULL);
  </code></pre>
  
  <p>But finally I can't understand how to change the port in <code>test-mp4</code> example. I'll be appreciated if you tell me a way for the solution..
  Thanks in advance!</p>