Troubleshoot common issues
This topic describes common Visual Computing issues and their solutions.
Camera registration fails
If a camera fails to register, follow these steps to troubleshoot the issue:
-
Check whether the camera's network can connect to the IP address and port of the SIP server.
-
Check if a firewall on the camera's network allows UDP packets to be sent and received.
-
Verify that GB/T 28181 support is enabled on the camera.
-
Check the camera's internal configuration, not the camera settings in the console, to verify that the GB ID, IP address, and port of the SIP server are correct.
-
Check if a SIP domain is configured. If so, make sure that the SIP domain consists of the first 10 digits of the SIP server ID.
-
Verify that the camera's username and password match those entered in the console.
-
If the username or password is incorrect, several consecutive failed registration attempts will lock the camera. The camera unlocks after one hour. You can then try to register it again.
Camera fails to push stream
If a registered camera fails to push its stream, follow these steps to troubleshoot the issue:
-
Check whether the camera is enabled in the console. If not, enable the camera in the console.
-
Check that the camera's network can access the GB standard stream receiving port. The port details are provided during the GB registration signaling interaction.
-
Check if the camera's operating mode is set to Active. In this mode, the camera actively establishes a TCP connection to the Alibaba Cloud server port to push the stream.
Console live preview failures
-
Confirm that the camera is set to register GB/T 28181 devices using the GB/T 28181-2016 protocol.
-
The player in the console does not support H.265 video playback. Change the camera's video encoding format to H.264.
The following example shows how to change the video encoding of a GB/T 28181 camera from H.265 to H.264.
Go to the camera management page, click the Configuration tab, and select Audio & Video in the left-side navigation pane. On the Video tab, change the Video Encoding to H.264 and click Save.
To preview streams in the Visual Computing console, the following conditions must be met:
-
The video is encoded in H.264 and the audio is encoded in AAC.
-
Cross-domain access is configured for the streaming domain.
-
An HTTPS certificate is configured for the streaming domain.
Choppy camera video stream
If the video stream is choppy after successful stream pushing, follow these steps to troubleshoot the issue:
-
Check the camera's internal configuration and review the current stream bitrate. Because the camera connects over the public internet, select a video stream with a bitrate that is appropriate for the camera's actual network conditions.
-
Check whether the network bandwidth at the playback location is sufficient for the camera's stream bitrate.
Incorrect GB/T 28181 registration settings
Before you register a camera using the GB/T 28181 standard, you must configure its GB/T 28181 access on its management page. Verify that the following settings are correct:
-
On the GB/T 28181 configuration page, ensure the Enable checkbox is selected.
-
Verify that the SIP Server ID is the GB ID provided by Alibaba Cloud Visual Computing.
-
Verify that the SIP Server Address and SIP Server Port match the SIP server address and port provided by Alibaba Cloud Visual Computing.
-
Check that the protocol version is GB/T 28181-2016.
-
Configures video and audio media transmission to use PS encapsulation over TCP.

GB/T 28181 stream ingestion failures
-
Check the network connection to the Alibaba Cloud server. You can use Telnet to test the connection to the SIP server address and port provided by Alibaba Cloud Visual Computing, or capture packets directly on the NVR or IPC.
-
Check whether the GB/T 28181 registration was successful. The GB/T 28181 configuration page on the NVR or IPC may display the registration status. For more information, see the manufacturer's manual.
-
Check the GB signaling interaction. Capture packets to check whether an INVITE request is received from the Alibaba Cloud SIP server and whether it contains the address and port of the Alibaba Cloud media server. Also, check whether the NVR or IPC sends a response to the INVITE request to the Alibaba Cloud SIP server.
-
Check whether video stream ingestion was successful. Capture packets to check whether the NVR or IPC is sending data to the Alibaba Cloud media server address and port, and verify that the video uses PS encapsulation.
Common causes of playback latency
-
By default, players like VLC and ffplay analyze data for 5 seconds (for RTMP) to 90 seconds (for URLs that end with .flv) to check for audio. For streams without audio, this behavior causes startup and playback delays. For ffplay, you can add the
-analyzeduration 1parameter to achieve near-instant startup. We also recommend using aliplayer for near-instant startup.
ffplay -analyzeduration 1 'http://edge1.example.com/app/ipc-1.flv?vhost=test.example.com'
-
Besides player-induced latency, the video's Group of Pictures (GOP) setting can also cause extra delay. For example, a GOP of 2 seconds can result in a delay of up to 2 seconds. If playback starts 1 second after the last keyframe, a 1-second delay occurs.
Live playback issues
For troubleshooting live monitoring stream issues, refer to the Playback Related section in the ApsaraVideo Live documentation.