Hi, I’m having difficulties setting up a streaming pipeline on an imx6 running the mainline kernel and gstreamer 1.14.1. The following pipelines work as required
This streaming pipeline withot dma buffers and using openh264 drops lots of frames ./test-launch "( v4l2src min-buffers=16 device=/dev/v4l/by-path/platform-capture-subsystem-video-index4 ! video/x-raw,format=NV12,width=1920,height=1080,framerate=60000/1001,interlace-mode=progressive,colorimetry=bt709
! videorate drop-only=true skip-to-first=true !videoconvert ! video/x-raw,framerate=30/1 ! openh264enc ! video/x-h264,profile=baseline ! queue ! h264parse ! rtph264pay name=pay0 pt=96 )" This recording pipeline using dma buffers and v4l2h264enc storing to file also works gst-launch-1.0 v4l2src min-buffers=10 num-buffers=150 device=/dev/v4l/by-path/platform-capture-subsystem-video-index4 io-mode=dmabuf ! video/x-raw,format=NV12,width=1920,height=1080,framerate=60000/1001
! v4l2h264enc output-io-mode=dmabuf-import extra-controls=cid,video_bitrate=12000000,video_gop_size=30 ! h264parse ! qtmux ! filesink location=ZNB_30fps_2.mp4 but streaming using v4l2h264enc and dma buffers doesn’t work ./test-launch "( v4l2src min-buffers=10 device=/dev/v4l/by-path/platform-capture-subsystem-video-index4 io-mode=4 ! video/x-raw,format=NV12,width=1920,height=1080,framerate=60000/1001,interlace-mode=progressive,colorimetry=bt709
! v4l2h264enc output-io-mode=5 output-min-buffers=6 ! video/x-h264,profile=baseline ! rtph264pay name=pay0 pt=96 )" The following log is produced 0:00:07.327381335 634 0x74f0f2f0 WARN v4l2bufferpool gstv4l2bufferpool.c:804:gst_v4l2_buffer_pool_start:<v4l2h264enc0:pool:src> Uncertain or not enough
buffers, enabling copy threshold 0:00:07.582559335 634 0x74f0f2f0 WARN v4l2videoenc gstv4l2videoenc.c:782:gst_v4l2_video_enc_handle_frame:<v4l2h264enc0> error: Failed to allocate required
memory. 0:00:07.582796001 634 0x74f0f2f0 WARN v4l2videoenc gstv4l2videoenc.c:782:gst_v4l2_video_enc_handle_frame:<v4l2h264enc0> error: Buffer pool activation
failed 0:00:07.583304001 634 0x74f0f2f0 WARN basesrc gstbasesrc.c:3055:gst_base_src_loop:<v4l2src0> error: Internal data stream error. 0:00:07.583435001 634 0x74f0f2f0 WARN basesrc gstbasesrc.c:3055:gst_base_src_loop:<v4l2src0> error: streaming stopped, reason error (-5) 0:00:07.583347335 634 0x75c0e860 WARN rtspmedia rtsp-media.c:2720:default_handle_message: 0x75c1ce18: got error Failed to allocate required memory.
(gstv4l2videoenc.c(782): gst_v4l2_video_enc_handle_frame (): /GstPipeline:media-pipeline/GstBin:bin0/v4l2h264enc:v4l2h264enc0: Buffer pool activation failed) 0:00:07.583797668 634 0x10adc90 WARN rtspmedia rtsp-media.c:2989:wait_preroll: failed to preroll pipeline 0:00:07.583841335 634 0x75c0e860 WARN rtspmedia rtsp-media.c:2720:default_handle_message: 0x75c1ce18: got error Internal data stream error. (gstbasesrc.c(3055):
gst_base_src_loop (): /GstPipeline:media-pipeline/GstBin:bin0/GstV4l2Src:v4l2src0: streaming stopped, reason error (-5)) 0:00:07.584003001 634 0x10adc90 WARN rtspmedia rtsp-media.c:3293:gst_rtsp_media_prepare: failed to preroll pipeline 0:00:07.601349335 634 0x10adc90 ERROR rtspclient rtsp-client.c:1044:find_media: client 0x10b8898: can't prepare media 0:00:07.603700001 634 0x10adc90 ERROR rtspclient rtsp-client.c:2898:handle_describe_request: client 0x10b8898: no media Maybe someone has an explanation as to what is wrong with the last pipeline. I can’t explain why it doesn’t work It also makes no difference if I reduce the framerate using videorate. Thanks for any replies _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi
does anyone have a working rtsp/rtp pipeline from an imx6 which makes use of v4l2src and v4l2h264enc using dmabuffers which they would be prepared to share with
me gruesse _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
I suggest to use gstreamer-imx. You can find it on github. Using mainline kernel Linux you could also do streaming with dmabuffers. _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi Eloi, would it be possible for you to share some working example pipeline/source code for the mainline kernel Linux variant of rtsp streaming? Many thanks! Best regards, Marie _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |