I have an application which is composed of several processes out of which two are recording video using GStreamer and omxh265enc:
Occasionally (let’s say once a day) one of the recording processes crashes due to a segmentation fault.
The GStreamer pipeline, which is invoked from a python3 application (with OpenCV), is the following:
'appsrc ! videoconvert ! omxh265 bitrate=2000000 ! h265parse ! matroskamux ! filesink location=/tmp/rec.mp4 '
The error message I get is:
Framerate set to : 15 at NvxVideoEncoderSetParameterVENC: VideoEncInputProcessing: 4367: VideoEncFeedImage failed. Input buffer 0 sent VENC: NvMMLiteVideoEncDoWork: 4989: BlockSide error 0x4 Event_BlockError from 20BlockHevcEnc : Error code - 4 Sending error event from 20BlockHevcEnc./main.sh: line 27: 30 Segmentation fault (core dumped) python3 ./recording/recorder_process_runner.py
Why does this happen? What does the error signify? Any suggestions on how to solve this?