snapshort timeout problem and response time

I got timeout exception sometime when request snapshot using rest api, what could be the problem?
And if success, the response time would be about 2 to 3 seconds, how could i increase the response time or delay time?

"exception": "",
"path": "/rest-api/stream/snapshot",
"error": "Internal Server Error",
"message": "Snapshot response timeout",
"timestamp": 1620099930634,
"status": 500


Staff member
Good day.
The server snapshots require transcoding, so please check if you server is powerful enough to decode a stream published, espacially if you are publishing 1080p. Approximately 2 CPU cores are required to transcode one 1080p stream.
You can also take a snapshot locally to prevent transcoding on the server, please see Stream Local Snapshot example.