Comparison
Which stream format lets an HMI panel show an IP camera view
Short answer
An HMI panel shows an IP camera only when the camera's output matches a display object the runtime can render. The cyclically refreshed JPEG snapshot URL is the lowest-risk match; MJPEG and RTSP with H.264 work only where the runtime documents a camera or media object with those codecs; a proprietary SDK control needs an open Windows runtime. On Comfort Panels the documented object is the Camera view object with MJPEG, H.264 or MPEG4.
On this page
An HMI panel shows an IP camera only when the camera's output format matches a display object its runtime can render — the stream format decides the project before the first screen is drawn. Network cameras emit four formats: a JPEG snapshot fetched over HTTP, an MJPEG stream over HTTP, an RTSP stream carrying MJPEG, H.264 or MPEG4, and the camera vendor's own SDK viewer. The lowest-risk match is a cyclically refreshed JPEG snapshot URL: no codec, no persistent connection, no continuous decoding — any runtime that can fetch a URL on a trigger can show it. RTSP with H.264 delivers real video only where the runtime documents a camera object with that codec, and a proprietary SDK control needs an open Windows runtime, which rules it out on a closed panel. Below are the four formats compared, the bandwidth arithmetic and the decision for each case.
What the panel runtime can render #
Three things decide whether a given camera works on a given panel, and only one of them is the camera. First, the runtime's object set: a browser-type object, a media or camera object, or scripting that can fetch a URL. Second, the stream encapsulation the camera emits: snapshot URL, MJPEG, RTSP with a specific codec, or a proprietary SDK control. Third, whether the runtime image is closed — an embedded panel cannot install codecs or browser plugins afterwards, so the format support it shipped with is the support it has.
Check those three against each other before sizing the panel or choosing the camera. Feature parity does not exist between a closed panel runtime and the PC runtime of the same visualization family, and a camera object that exists in one does not exist in the other.
The four stream formats compared #
| Camera output | What the HMI side needs | What the operator sees | Risk on a closed panel runtime |
|---|---|---|---|
| JPEG snapshot over HTTP | An object or script that fetches a URL on a cyclic trigger | A still image refreshed at the trigger cycle | Low: no codec, no persistent connection |
| MJPEG over HTTP | A browser or media object that renders successive JPEG frames | Continuous video at the camera's frame rate | Medium: the embedded browser or media engine decides |
| RTSP with MJPEG, H.264 or MPEG4 | A documented camera or media object whose codec list names the camera's codec | Live video | Low when the list matches, high when undocumented |
| Proprietary SDK viewer | An open Windows runtime that installs the vendor control | Live video with vendor features | Very high: ruled out on a closed panel |
On Comfort Panels engineered in TIA Portal, the documented combination is the Camera view object working with cameras that stream over the protocol pair the documentation prints as RTP/RTPS — the RTSP/RTP pair — using the codecs MJPEG, H.264 or MPEG4. A camera that offers only H.265 falls outside that documented list, which makes it the wrong camera for that panel, not a configuration problem to solve on site.
Where a runtime provides an HTML browser object, an MJPEG URL can render, but the embedded browser engine decides that, not the panel hardware. Runtimes built for video — some Windows CE SCADA images ship a dedicated IP camera object — remove the format question entirely, and that capability belongs to the runtime image, so it cannot be retrofitted to a panel that lacks it. The same matching rule applies when the source is a vision camera rather than a network camera; viewing a vision camera image on a Comfort Panel HMI covers that case.
What each format costs: a worked example #
Example inputs, not measured values: a 1280 × 720 camera whose JPEG frame comes to 80 kB, an MJPEG rate of 10 frame/s, an H.264 stream configured at 2 Mbit/s, a 1 s snapshot cycle and an 8-hour shift.
Snapshot path: 80 kB × 1/s = 80 kB/s, and 80 kB × 8 bits = 640 kbit/s on the wire. Per hour: 80 kB/s × 3600 s = 288 MB. Per shift: 288 MB × 8 = 2,304 MB, about 2.3 GB.
MJPEG path: 80 kB × 10/s = 800 kB/s, and 800 kB × 8 = 6.4 Mbit/s. Per hour: 800 kB/s × 3600 s = 2,880 MB. Per shift: 2,880 MB × 8 = 23,040 MB, about 23 GB.
H.264 path: the configured rate sets the load directly. Per hour: 2 Mbit/s × 3600 s = 7,200 Mbit = 900 MB. Per shift: 900 MB × 8 = 7.2 GB.
| Format | Wire rate | Data per 8-hour shift |
|---|---|---|
| JPEG snapshot, 1 snapshot/s | 640 kbit/s | about 2.3 GB |
| MJPEG, 10 frame/s | 6.4 Mbit/s | about 23 GB |
| H.264, 2 Mbit/s | 2 Mbit/s | about 7.2 GB |
Sensitivity: halve the trigger cycle to 0.5 s and the snapshot load doubles to 1.28 Mbit/s — still below the 2 Mbit/s H.264 example — so the trigger cycle, not the format, sets the snapshot load. Wire bandwidth is rarely the limit; decoding is. Re-displaying a JPEG is a copy into a frame buffer, while every H.264 frame runs a video codec on the panel's CPU, and a closed runtime offers no way to add decoding power afterwards. That is why the snapshot wins for verification tasks: it trades continuous video for predictable load.
Setting up the snapshot view #
Build the snapshot path first, because it runs on the widest range of runtimes. On a PC-based SCADA runtime the same snapshot and MJPEG paths are plain configuration — the Ignition integration guide for MJPEG and JPEG still camera streaming documents both — while a closed panel uses its own image-from-URL or scripting objects. The sequence:
- Open the camera's own web interface and record the exact snapshot URL, including a non-standard port where one is used — for example
http://192.168.1.50:8080/snapshot.jpg— plus its authentication mode (none, Basic or digest) and its configurable frame rate. - Open that URL from a laptop on the same subnet and confirm the image renders and keeps rendering over a half-hour run.
- Give the camera a fixed address, static or a DHCP reservation; a URL-based object breaks silently when the camera's address changes.
- Place the display object that matches the chosen format — the Camera view object for a compliant RTSP camera on Comfort Panels, the runtime's image-from-URL or browser object for snapshots and MJPEG — and enter the URL character for character.
- Drive the refresh from a cyclic trigger or a scheduled script. Begin the cycle at 1 s and shorten it only after watching panel CPU load.
- Add an offline state: when the fetch fails, show a banner that says so, never the last frame.
Network and accounts for camera traffic #
- Segmentation: put the cameras on their own VLAN, or on the panel's second Ethernet port where the model provides one, so video bursts never share a cable with controller traffic.
- Multicast: allow it only with IGMP snooping enabled on every switch in the path; unsnooped multicast floods every port, including the controller's.
- Accounts: create a dedicated read-only camera account for the HMI. Credentials typed into a project URL sit in the project file, where anyone with access to it can read them.
- Frame rate: set the lowest rate that satisfies the operator task — each added frame per second raises wire load and panel CPU in direct proportion.
When the panel cannot render the stream #
If verification shows the runtime cannot render the camera's format — an H.265-only camera, or a vendor SDK viewer — four architectures keep the project moving. A transcoding gateway pulls the RTSP/H.264 stream and republishes MJPEG or JPEG snapshots the panel can consume, at the cost of a second device, a second failure point and added latency. Snapshot-on-event has the camera or gateway write a still on each process event; not live, but usually enough for reject and fault review at a fraction of the load. A second display dedicated to video keeps the panel on process control while a separate screen shows the feed. Or the video screen moves to a PC runtime hosted on industrial panel PCs, where the vendor control installs normally — and if the picture then lives on that PC, a VNC viewer object on an HMI to display other panels is one way to bring it back to the operator station.
The decision for each case #
One boundary first: a camera image on an HMI is a monitoring aid, not a safety function — IP video latency is not deterministic, so no interlock, guard confirmation or presence detection may depend on it.
- Verify a state or review a fault after the fact: JPEG snapshot URL on a cyclic trigger. Begin the cycle at 1 s; in the example that is 640 kbit/s and about 2.3 GB per 8-hour shift, and the cycle, not the camera, sets both.
- Live motion on a Comfort Panel: the Camera view object with a camera that streams RTSP and offers MJPEG, H.264 or MPEG4 — the documented combination. An H.265-only camera is the wrong purchase for that panel.
- Live motion on a runtime with no documented camera object: MJPEG over HTTP if the runtime documents a media or browser object that renders it; otherwise stay on the snapshot path and accept the trigger-cycle refresh rate.
- A camera that only offers a proprietary SDK viewer: ruled out on a closed panel runtime — add a transcoding gateway that republishes a consumable format, or move that screen to a PC runtime.
- In every case: cameras on their own VLAN or the panel's second port, IGMP snooping before any multicast, a dedicated read-only account, and an offline banner instead of a frozen frame.
Questions asked
Why does the camera view stay blank while the same URL works in a laptop browser?
Check the camera's HTTP authentication mode first. A camera set to digest authentication can serve a desktop browser yet return nothing to an embedded panel object that issues only plain or Basic requests, which looks exactly like a dead URL. Then confirm the panel itself can reach the camera address, because the laptop test proves the URL and the camera, not the route from the panel's port to the camera subnet.
What does the camera field show when the link to the camera drops?
That depends on the object. Some keep displaying the last decoded frame, others blank the field, and neither tells the operator the truth. Supervise the fetch or the stream with a tag or a script and switch the display to an explicit offline banner when it fails, because during a fault search a frozen frame reads as live video.
Can the camera share the switch and cabling with the PLC?
For a snapshot view refreshed once a second, usually yes: the worked example loads 640 kbit/s, a small fraction of a 100 Mbit/s link. Continuous MJPEG or multicast video is different, because bursts share the cable with controller traffic, so put cameras on their own VLAN or the panel's second Ethernet port and enable IGMP snooping before allowing any multicast.
Does a higher camera resolution give the operator a better view?
Only up to the pixel size of the display field. A 1280 × 720 stream shrunk into a smaller field costs the panel extra scaling work and loses legibility, so match or under-run the stream to the field in pixels. Raise the resolution only when the operator must read detail the current stream cannot resolve, such as a gauge reading or a label.