title: Passing udp unix socket as input to ffmpeg
body: <p>I already know that ffmpeg is able to receive input from a unix socket:</p>
  
  <pre><code>ffmpeg -i unix://path-to-socket ...
  </code></pre>
  
  <p>Problem is that once changing the socket type to <code>SOCK_DGRAM</code> instead of <code>SOCK_STREAM</code> in my server code, ffmpeg is not able to receive the data and an error is printed:</p>
  
  <pre><code>unix://path-to-socket: Protocol wrong type for socket
  </code></pre>
  
  <p>looking at the <a href="https://ffmpeg.org/ffmpeg-protocols.html#unix" rel="nofollow noreferrer">socket documentation on ffmpeg's site</a> the following options can be applied:</p>
  
  <ul>
  <li><strong>timeout</strong>: Timeout in ms.</li>
  <li><strong>listen</strong>: Create the Unix socket in listening mode.</li>
  </ul>
  
  <p>which are not relevant for the declaring the socket type.</p>
  
  <p>ls configuring the unix socket to <code>SOCK_DGRAM</code> even possible?</p>
  
  <p>Thanks,</p>
  
  <p>Joey.</p>