VIDEOCAMERA LIVE

H.265 cameras in the browser: the black screen and the fix

Most new cameras ship set to H.265 because it saves recorder disk space. Many browsers cannot play it. Here is why, what our server does about it, and when it is better to change the camera setting.

Why H.265 often will not play in a browser

H.265 (HEVC) is the successor to H.264: it delivers similar quality at roughly half the bitrate, which is why it spread quickly in surveillance. It never fully made it into browsers, mainly because of patent licensing. Today the picture looks like this:

  • Safari on Apple devices generally plays H.265.
  • Chrome and Edge play it only when the computer or phone has a hardware H.265 decoder. Older or budget devices often do not.
  • Firefox support is limited and uneven.
  • WebRTC, which is how low latency is achieved, supports H.265 even more rarely.

So the same stream works for one viewer and shows a black screen, with no error, for another. You cannot control which devices visitors use, so sending H.265 straight to the browser means leaving it to luck.

What we do

  1. When you add a camera, the server detects its codec by itself — there is nothing to set by hand.
  2. While someone is watching an H.265 camera, the server converts the video to H.264, which every browser plays.
  3. Conversion runs on demand: when nobody is watching, it stops.

The camera still sends H.265 to our server, so your upload keeps the H.265 savings. The conversion happens on our side and viewers receive the video as usual — over WebRTC or LL-HLS.

The trade-off you should know: conversion means re-encoding the video. That adds a little delay and a small loss of quality, and when the first viewer opens a camera that nobody has watched for a while, the picture takes a moment longer to appear.

When to switch the camera to H.264 anyway

  • When you want the lowest delay and original quality — H.264 reaches the browser without re-encoding.
  • When the camera runs a smart codec (H.265+, Smart Codec, U-Code). These modes cause trouble in browsers whatever the codec — see below.
  • When H.264 is simply available in the camera menu and your upload can carry it: 3–4 Mbit/s for 1080p.

If your recorder stores the main stream in H.265 and you want to keep the disk savings, you do not have to change it. Set the camera's second or third stream to H.264 (on Hikvision, for example /Streaming/Channels/102 or 103) and use that path for streaming. Exact values: camera settings for web streaming.

Smart codecs: H.264+ and H.265+

The “+” is not a separate codec. It is an encoding mode that drops the bitrate sharply on still scenes and sends key frames very rarely and irregularly. Convenient for a recorder. In a browser, a new viewer waits a long time for the first picture, and with motion the video freezes or breaks into coloured blocks. Turn off H.264+/H.265+ on Hikvision, Smart Codec on Dahua and U-Code on Uniview, and set the I-frame interval to 1–2 seconds.

A camera that keeps dropping its stream

If the stream works sometimes and drops at other times, the cause is often not the codec but the camera or the network:

CauseWhat to do
The camera limits simultaneous RTSP connections: recorder, phone app and our server together are too manyClose extra connections, or take the stream from the recorder
The upload fills up at peak hoursLower the bitrate or switch to CBR
The ISP changes your IP addressAsk your ISP for a static IP
The PoE switch runs out of power, or the cable is longer than 100 mCheck the power budget and the cable
The camera is on Wi-Fi or a wireless bridgeUse a cable wherever possible
After repeated wrong-password logins the camera blocks the IPFind where an old password is still saved
The camera overheats in summer sun, or reboots on a scheduleShade it; check the auto-reboot schedule

If the connection test reports an unsupported codec, the camera is probably sending something other than H.264 or H.265 (for example MJPEG) — select H.264 on the camera. If you cannot find the cause, call us: +995 577 79 53 77.

Will my H.265 camera work?

Yes. The server detects H.265 automatically and converts it to H.264 while someone watches, so the video plays in every browser. You do not need to replace the camera.

Why does the video play on an iPhone but not on a Windows PC?

Safari on Apple devices plays H.265; many other browsers do not. That is why H.265 should not go to the browser directly — our server converts it to H.264.

Should I switch my camera to H.264?

If you can and your upload allows it, yes: no re-encoding is needed and the delay is lowest. If your recorder records in H.265, use a separate H.264 stream for streaming.

What is H.265+ and why should I turn it off?

It is a smart encoding mode that saves disk space by sending key frames rarely. In a browser this makes the video start late and freeze.

Put your camera on your website today

Sign up, add an RTSP link and get the embed code. Questions? Call us — our engineers answer.