 <p>To get a live stream, try switching <code>image2pipe</code> for <code>rawvideo</code>:</p> <pre><code>.fromFormat('rawvideo') .addInputOption('-pixel_format', 'argb') .addInputOption('-video_size', STREAM_WIDTH + 'x' + STREAM_HEIGHT) </code></pre> <p>This will encode the video at very low latency, instantly.</p> <p>You can remove <code>.fromFormat('image2pipe')</code> and <code>.addInputOption('-vcodec', 'mjpeg')</code>.</p>