I am trying to construct a gstreamer pipeline which can stream a live video feed using RTSP server and record a portion of the feed on trigger. I am attaching my script for reference stream-app-probe.py (12.0 KB) . I am able to successfully generate a RTSP stream. For the recording feature I have created a “tee” which creates a separate branch, which uses the following elements : omxh26enc → matroskamux → filesink.
The pipeline doesnt work and throws the following error :
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
NvMMLiteVideoEncDoWork: Surface resolution (0 x 0) smaller than encode resolution (1280 x 720)
VENC: NvMMLiteVideoEncDoWork: 4283: BlockSide error 0x4
Event_BlockError from 0BlockAvcEnc : Error code - 4
**Sending error event from 0BlockAvcEncH264: Profile = 66, Level = 0 **
Error: gst-library-error-quark: GStreamer encountered a general supporting library error. (1): /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideoenc.c(1331): gst_omx_video_enc_loop (): /GstPipeline:pipeline0/GstOMXH264Enc-omxh264enc:omxh264encoder:
OpenMAX component in error state Bad parameter (0x80001005) .
How do I resolve this? Any help is appreciated.