Hi all !
I am working on an app that accepts Opencv frames (originated via opencv camera Api) and tries to send those frames into the network after encoding them to H264 frames.
For this project I was asked to perform the encoding via hardware.
I used the below pipeline to do the encoding bit of the transmitter:
gst-launch-1.0 appsrc name=applicationSource ! videoconvert !
vaapiencode_h264 ! vaapiparse_h264 config-interval=1 ! rtph264pay
config-interval=1 ! gdppay ! tcpserversink host=127.0.0.1 port=5002
The Caps for my Appsrc are :
"framerate", 15, 1,
"pixel-aspect-ratio" 1, 1,
This pipeline however gives me the below error when i try to run it:
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_37
libva info: va_openDriver() returns 0
0:00:04.597696251 23508 0x7f724003f940 WARN GST_PADS
gstpad.c:3739:gst_pad_peer_query: could not send sticky events
0:00:05.030818739 23508 0x7f724003f940 WARN basesrc
gstbasesrc.c:2933:gst_base_src_loop: error: Internal data flow error.
0:00:05.030864404 23508 0x7f724003f940 WARN basesrc
gstbasesrc.c:2933:gst_base_src_loop: error**: streaming task paused,
reason not-negotiated (-4)**
Error : Internal data flow error.
0:00:05.032763231 23508 0x7f724003f940 WARN baseparse
gstbaseparse.c:1155:gst_base_parse_sink_event_default: error: No valid
frames found before end of stream
Error : No valid frames found before end of stream
As I have highlighted, the pipeline does not start due to negotiation issues
I have tested my Appsrc and it seems to be working (receiving data).
Could anyone suggest any other additions to pipeline/new pipeline to overcome this ??
PS: I had tried this pipeline with a camera v4l2src plugin and the pipeline seems to be working in good condition !
Any help would be nice !