streaming from imx6
Thornton, Keith
keith.thornton at zeiss.com
Tue Jun 5 13:45:10 UTC 2018
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180605/07ef5541/attachment.html>
More information about the gstreamer-devel
mailing list