/**
  * {@inheritdoc}
  * @throws LiveBroadcastInputException
  */
 public function generateInputCmd()
 {
     $monitorImage = $this->media->getMonitorImage();
     if (!file_exists($monitorImage)) {
         throw new LiveBroadcastInputException(sprintf('Monitor image \'%s\' not found', $monitorImage));
     }
     return sprintf('-re -f lavfi -i anullsrc=r=48000 -r 1 -loop 1 -i %s', escapeshellarg($monitorImage));
 }