Can You Use DJI Goggles as a PC Monitor?

By PPK Software

Short answer: for watching, yes. For working or gaming, no. A Windows screen can be streamed to DJI Goggles 2 or 3, a smart TV, a projector or any other DLNA renderer, with sound. On the goggles the picture arrives about three seconds after it appears on the PC. That's fine for a live stream in a browser, a sports channel, slides or a dashboard. It rules out anything where you react to what you see.

The goggles are the example here because they are the hardest case: no HDMI input, no Windows display driver, only a network video receiver. Everything below applies to any device that can play a network stream.

Why it's not a real monitor

A monitor is a display Windows drives directly: it knows the resolution, sends frames as they are rendered, and the round trip is a few milliseconds. A DLNA renderer is a media player. It accepts a URL and plays what it finds there, with the same buffering logic it uses for a film. Windows has no idea it exists as a display, so you can't drag windows onto it and there is no input channel back.

So screen streaming means turning the screen into something that looks like a video file that never ends.

The pipeline

For each session GogglePlayer runs one ffmpeg process:

  • Capture. DXGI Desktop Duplication (ddagrab), which reads frames from the GPU. If a short probe at startup shows that doesn't work (Remote Desktop, some GPU drivers), the app falls back to GDI capture (gdigrab), which is slower and runs on the CPU. The Compatibility capture setting forces the fallback
  • Audio. WASAPI loopback on the Windows default playback device, 48 kHz stereo PCM, piped into ffmpeg's stdin. ffmpeg can't open a loopback device by itself on Windows. Both inputs are stamped with wall-clock time and shifted by one shared offset, so sound and picture stay on the same clock
  • Encode. H.264 on the GPU where possible (NVENC, Quick Sync or AMF), otherwise OpenH264 in software. Hard CBR, no B-frames, a keyframe every half second, and a decoder buffer (VBV) of an eighth of a second of bitrate. Default 6 Mbps at 30 fps
  • Mux. MPEG-TS with PAT/PMT repeated at frames, zero mux delay, packets flushed as they are written
  • Serve. Chunked HTTP from the app's built-in server. The renderer GETs the URL and keeps reading

MPEG-TS rather than MP4 because a renderer can start decoding a TS stream at any packet. MP4 needs an index (the moov box) that a live stream can't provide up front.

Where the delay comes from

The PC side is now quick. The small VBV matters most, because its size is what an H.264 decoder is entitled to pre-fill before it shows the first frame. Shrinking it, together with hard CBR and the encoder's low-latency presets, took the goggles from four seconds and more, with rebuffering, to a steady three.

Things that did not help: other keyframe intervals, different DLNA flags in the contentFeatures header, pretending the stream was a normal file, and a higher bitrate. The remaining ~3 seconds is the renderer's own pre-roll. The goggles' firmware collects that much video before it starts, the same as for a film, and nothing in the stream tells it to stop doing that. It varies a little between units.

Other receivers have other buffers:

  • DLNA TVs and projectors use the same pull model. Their firmware decides the pre-roll, and it can be shorter or longer than the goggles'
  • Web browser. The app serves a page that plays the TS stream with mpegts.js. For a live source the page runs without a stash buffer and chases the live edge, so there is no firmware pre-roll to wait for
  • Google Cast. Cast devices don't take raw live TS, so the app repackages the stream as HLS with 2 second segments. HLS players buffer whole segments, so expect more delay than DLNA
  • A second monitor or a Miracast display connected to the PC doesn't need any of this. Windows already extends or duplicates the desktop to it (Windows key + P, Windows key + K) through its own display path

Sound in your own headphones

Audio normally goes inside the stream to the device. You can also keep it on the PC: set the audio output to This PC and pick the headphones. The live sound would then be three seconds ahead of the picture, so the app plays it through a delay line. The Headphone delay control on the Capture card sets it, 3 seconds by default. Raise it if you hear things before you see them.

Since the loopback reads the Windows default device, the headphones must not be the default too. Otherwise the delayed copy is played into the same device that is being captured and comes back as an echo. The app refuses that combination and says so on the Capture card. Make the speakers the Windows default and pick the headphones in the app.

Setting it up

  1. Put the device in its receiving mode. On the goggles that's Wireless Streaming, on a TV it may be a DLNA or media sharing option in its network settings
  2. In GogglePlayer, open the Capture tab and pick a monitor under Screen
  3. Select the device in the device list and press Play

With two monitors, stream the second one and keep working on the first. Settings, Desktop capture has Show cursor, Frame rate, Desktop bitrate and Compatibility capture. If the picture stutters on Wi-Fi, lower the bitrate before the frame rate.

Limits

  • Anything interactive, because of the receiver's buffer
  • DRM protected video. Windows excludes protected video surfaces from screen capture, so a paid streaming service shows up as a black rectangle. No capture app can get around that. The Netflix and YouTube article covers what does work
  • Resolution and bitrate are bounded by your Wi-Fi. The stream is constant bitrate, so a busy network shows up as stutter rather than as softer picture

For a video file, open the file instead of capturing the screen it plays on. The file is sent as it is, or converted once, with seeking and no live buffer to think abuot. The firewall article covers what to check when a device is listed but never starts playing.