Video no longer ingesting
Issue details
- Video is not being sent to Formant.
- My RTSP camera is not showing video in Formant, but I can connect to it.
Troubleshooting steps
First, gather Formant agent logs:
- Install the Formant agent: Retrieve agent logs
- Install the Formant agent via Docker: Retrieve agent logs
Review the agent log for the following error messages:
Unsupported image encoding
Unsupported image encodingIf a ROS image topic is publishing but no frames appear in Formant, check the encoding field on the sensor_msgs/Image message.
For ROS 1, run:
rostopic echo /your/image/topic/encodingFor ROS 2, run:
ros2 topic echo /your/image/topic --field encodingIf the agent logs show an error like:
Unsupported image encoding: mono8check whether Video encoding is enabled for the stream. mono8 is supported when Video encoding is enabled. If Video encoding is disabled, raw image ingestion supports only rgb8, bgr8, and 8UC3.
To resolve this issue, either:
- Enable Video encoding on the ROS topic stream.
- Republish the image topic using
rgb8,bgr8, or8UC3.
"media encoder exited with code -1: core dumped"
"media encoder exited with code -1: core dumped"This may be caused by an underlying error in media encoding packages. To verify:
- Run the following command:
apt policy libproxy1v5If you see the following output:
libproxy1v5:
Installed: 0.4.17-2
Candidate: 0.4.17-2
There is a known issue with libproxy1v5_0.4.17-2 which is resolved by upgrading to libproxy1v5_0.4.17-3:
sudo apt install ./libproxy1v5_0.4.17-3_amd64.debgst_parse_error: could not set property “speed-preset” in element “x264enc0" to “fastest” (4)
gst_parse_error: could not set property “speed-preset” in element “x264enc0" to “fastest” (4)Set the FORMANT_ENCODE_SPEED_PRESET environment variable to a supported value: Environment variables for the agent: Media environment variables.
FORMANT_ENCODE_SPEED_PRESET values from fastest (least CPU time) to slowest (highest quality) |
|---|
"ultrafast" |
"superfast" |
"veryfast" |
"faster" |
"fast" |
"medium" |
"slow" |
"slower" |
"veryslow" |
The agent defaults to ultrafast. There is a tradeoff between video quality and lag. We typically see that, depending on the cpu between veryfast and medium, lag starts accumulating.
To optimize video quality and speed, experiment to find the slowest setting that doesn't accumulate lag.
See also
If you notice an issue with this page or need help, please reach out to us! Use the 'Did this page help you?' buttons below, or get in contact with our Customer Success team via the Intercom messenger in the bottom-right corner of this page, or at [email protected].
Updated 1 day ago
