title: C avormat_open_input dvb card not works
body: <p>For multicast input this code works </p>
  
  <pre><code>AVFormatContext *pFormatCtx = NULL;
  
  // Open video file
  if(avformat_open_input(&amp;pFormatCtx, "udp://239.20.10.101:6000", NULL, NULL)!=0)
  {
      printf("error");
      return -1; // Couldn't open file
  }
  </code></pre>
  
  <p>but i want to make this work for dvb card so this code works but shows nothing</p>
  
  <pre><code>char *dev_name = "/dev/dvb/adapter0/dvr0";
  
  AVFormatContext *pFormatCtx = NULL;
  
  // Open video file
  if(avformat_open_input(&amp;pFormatCtx, dev_name, NULL, NULL)!=0)
  {
      printf("error");
      return -1; // Couldn't open file
  }
  </code></pre>
  
  <p>What I am doing wrong?</p>