title: How To Remove Black Bars from Videos using VLC Control C#
body: <p>I have created vlcControl added on my windows form. I would like to know how can get rid of black bars on my vlc videos (image consumes black space). An example is shown below:
  <a href="https://i.stack.imgur.com/sJVT4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sJVT4.png" alt="enter image description here"></a> </p>
  
  <p>I have tried the line <code>vlc --aspect-ratio 16:9 -L -f /directory/to/file/filename</code>. 
  The line changes the aspect ratio but did not work as expected. I have tried the following lines of code:</p>
  
  <p>Line 1:</p>
  
  <pre><code>vlcCustomer.Play(new Uri("rtsp://192.168.1.10/2/media/video1"), ":network-caching=50 :aspect-ratio=16:9 -L -f /directory/to/file/filename");
  </code></pre>
  
  <p>Line 2:</p>
  
  <pre><code>vlcCustomer.Play(new Uri("rtsp://192.168.1.10/2/media/video1"), ":network-caching=50 vlc --aspect-ratio 16:9 -L -f /directory/to/file/filename");
  </code></pre>