OMX H264 encoder error with Gstreamer RTSP Server
Mariem MHIRI
mariem.mhiri.ext at valeo.com
Wed Jun 28 12:00:56 UTC 2017
Hello,
I am running an RTSP server with the following pipeline (using Logitech
c270).
At the server side:
$./test-launch "( v4l2src device=/dev/video8 ! videoconvert !
video/x-raw,width=640,height=480,framerate=30/1 ! \
omxh264enc control-rate=2 target-bitrate=1024000
interval_intraframes=14 periodicty-idr=2 scantype=0 !
h264parse ! rtph264pay name=pay0 pt=96 )");
0:00:03.546198625 3976 0xffff84038190 WARN v4l2src
gstv4l2src.c:681:gst_v4l2src_query:<v4l2src0> Can't give latency since
framerate isn't fixated !
0:00:04.973297133 3976 0xffff7c01f050 ERROR v4l2src
gstv4l2src.c:547:gst_v4l2src_set_crop:<v4l2src0> Fail to set crop
0:00:05.025839223 3976 0xffff7c01f050 ERROR omxh264enc
gstomxh264enc.c:449:gst_omx_h264_enc_set_format:<omxh264enc-omxh264enc0>
Unsupported
profile constrained-baseline
0:00:05.025899704 3976 0xffff7c01f050 ERROR omxvideoenc
gstomxvideoenc.c:1259:gst_omx_video_enc_set_format:<omxh264enc-omxh264enc0>
Subclass
failed to set the new format
0:00:05.025918184 3976 0xffff7c01f050 WARN videoencoder
gstvideoencoder.c:674:gst_video_encoder_setcaps:<omxh264enc-omxh264enc0>
rejected
caps video/x-raw, width=(int)640, height=(int)480, pixel-2
0:00:05.026667827 3976 0xffff7c01f050 ERROR omxh264enc
gstomxh264enc.c:449:gst_omx_h264_enc_set_format:<omxh264enc-omxh264enc0>
Unsupported
profile constrained-baseline
0:00:05.026692187 3976 0xffff7c01f050 ERROR omxvideoenc
gstomxvideoenc.c:1259:gst_omx_video_enc_set_format:<omxh264enc-omxh264enc0>
Subclass
failed to set the new format
0:00:05.026706587 3976 0xffff7c01f050 WARN videoencoder
gstvideoencoder.c:674:gst_video_encoder_setcaps:<omxh264enc-omxh264enc0>
rejected
caps video/x-raw, width=(int)640, height=(int)480, pixel-2
0:00:05.026737907 3976 0xffff7c01f050 WARN GST_PADS
gstpad.c:3990:gst_pad_peer_query:<capsfilter0:src> could not send sticky
events
0:00:06.992635811 3976 0xffff7c01f050 ERROR omxh264enc
gstomxh264enc.c:449:gst_omx_h264_enc_set_format:<omxh264enc-omxh264enc0>
Unsupported
profile constrained-baseline
0:00:06.992718851 3976 0xffff7c01f050 ERROR omxvideoenc
gstomxvideoenc.c:1259:gst_omx_video_enc_set_format:<omxh264enc-omxh264enc0>
Subclass
failed to set the new format
0:00:06.992741531 3976 0xffff7c01f050 WARN videoencoder
gstvideoencoder.c:674:gst_video_encoder_setcaps:<omxh264enc-omxh264enc0>
rejected
caps video/x-raw, width=(int)640, height=(int)480, pixel-2
0:00:07.018615075 3976 0xffff7c01f050 ERROR omxh264enc
gstomxh264enc.c:449:gst_omx_h264_enc_set_format:<omxh264enc-omxh264enc0>
Unsupported
profile constrained-baseline
0:00:07.018673995 3976 0xffff7c01f050 ERROR omxvideoenc
gstomxvideoenc.c:1259:gst_omx_video_enc_set_format:<omxh264enc-omxh264enc0>
Subclass
failed to set the new format
0:00:07.018691875 3976 0xffff7c01f050 WARN videoencoder
gstvideoencoder.c:674:gst_video_encoder_setcaps:<omxh264enc-omxh264enc0>
rejected
caps video/x-raw, width=(int)640, height=(int)480, pixel-2
0:00:07.018819555 3976 0xffff7c01f050 WARN basesrc
gstbasesrc.c:2943:gst_base_src_loop:<v4l2src0> error: Internal data flow
error.
0:00:07.018838395 3976 0xffff7c01f050 WARN basesrc
gstbasesrc.c:2943:gst_base_src_loop:<v4l2src0> error: streaming task
paused, reason not-negotiated (-4)
0:00:07.019033756 3976 0xffff84038190 WARN rtspmedia
rtsp-media.c:2164:default_handle_message: 0xffff84076340: got error
Internal data flow error. (../../../../gstreamer-1.6.3/libs/gst/base/gs:
streaming task paused, reason not-negotiated (-4))
0:00:07.019101796 3976 0x18cfb590 WARN rtspmedia
rtsp-media.c:2459:wait_preroll: failed to preroll pipeline
0:00:07.019135517 3976 0x18cfb590 WARN rtspmedia
rtsp-media.c:2749:gst_rtsp_media_prepare: failed to preroll pipeline
0:00:07.020914884 3976 0xffff7c01f050 ERROR omxh264enc
gstomxh264enc.c:449:gst_omx_h264_enc_set_format:<omxh264enc-omxh264enc0>
Unsupported
profile constrained-baseline
0:00:07.020953644 3976 0xffff7c01f050 ERROR omxvideoenc
gstomxvideoenc.c:1259:gst_omx_video_enc_set_format:<omxh264enc-omxh264enc0>
Subclass
failed to set the new format
0:00:07.021009444 3976 0xffff7c01f050 WARN videoencoder
gstvideoencoder.c:674:gst_video_encoder_setcaps:<omxh264enc-omxh264enc0>
rejected
caps video/x-raw, width=(int)640, height=(int)480, pixel-2
0:00:07.022118369 3976 0xffff7c01f050 ERROR omxh264enc
gstomxh264enc.c:449:gst_omx_h264_enc_set_format:<omxh264enc-omxh264enc0>
Unsupported
profile constrained-baseline
0:00:07.022149209 3976 0xffff7c01f050 ERROR omxvideoenc
gstomxvideoenc.c:1259:gst_omx_video_enc_set_format:<omxh264enc-omxh264enc0>
Subclass
failed to set the new format
0:00:07.022164809 3976 0xffff7c01f050 WARN videoencoder
gstvideoencoder.c:674:gst_video_encoder_setcaps:<omxh264enc-omxh264enc0>
rejected
caps video/x-raw, width=(int)640, height=(int)480, pixel-2
0:00:07.067160669 3976 0x18cfb590 ERROR rtspclient
rtsp-client.c:729:find_media: client 0x190278c0: can't prepare media
0:00:07.067711831 3976 0x18cfb590 ERROR rtspclient
rtsp-client.c:2239:handle_describe_request: client 0x190278c0: no media
At the client side:
gst-launch-1.0 -v --gst-debug=2 rtspsrc
location=rtsp://ip_address:8554/test ! decodebin ! autovideosink
──(\o_ 1 _o/)─┘
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://ip_address:8554/test
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
0:00:04.747243433 4893 0xad6450 WARN rtspsrc
gstrtspsrc.c:5670:gst_rtspsrc_send:<rtspsrc0> error: Got error response:
503 (Service Unavailable).
0:00:04.747337611 4893 0xad6450 WARN rtspsrc
gstrtspsrc.c:6898:gst_rtspsrc_open:<rtspsrc0> can't get sdp
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not
read from resource.
0:00:04.747354237 4893 0xad6450 WARN rtspsrc
gstrtspsrc.c:5075:gst_rtspsrc_loop:<rtspsrc0> we are not connected
Additional debug info:
gstrtspsrc.c(5670): gst_rtspsrc_send ():
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Got error response: 503 (Service Unavailable).
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
P.S: I added gst_rtsp_server_set_address(server, "server_ip_address"); to
the test-launch.c
I also tested the same pipeline using gst-launch as it is showing below and
they worked perfectly.
$gst-launch-1.0 -v --gst-debug=2 v4l2src device=/dev/video8 ! videoconvert
! video/x-raw,width=640,height=480,framerate=30/1 ! \
omxh264enc control-rate=2 target-bitrate=1024000 interval_intraframes=14
periodicty-idr=2 scan-type=0 ! \
h264parse ! rtph264pay ! udpsink host=host_ip_address port=5000
$gst-launch-1.0 -v --gst-debug=2 udpsrc port=5000 caps =
"application/x-rtp\,\ media\=\(string\)video\,\ clock-rate\=\(int\)90000\,\
encoding-name\=\(string\)H264" ! rtph264depay ! h264parse ! avdec_h264 !
autovideosink
I appreciate any help.
Best regards,
Mariem
--
*This e-mail message is intended only for the use of the intended recipient(s).
The information contained therein may be confidential or privileged,
and its disclosure or reproduction is strictly prohibited.
If you are not the intended recipient, please return it immediately to its sender
at the above address and destroy it. *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-openmax/attachments/20170628/08677911/attachment-0001.html>
More information about the gstreamer-openmax
mailing list