Hello, thank you for the quick support.
i can run the command
gst-launch-1.0 filesrc location= FHD.mp4 ! qtdemux ! h264parse ! nvv4l2decoder ! fpsdisplaysink text-overlay=0 video-sink=fakesink -v
and it working fine in the host machine.
- however, if i try it inside of the docker enviroment that i am using then i still got the error
Setting pipeline to PAUSED ...
Opening in BLOCKING MODE
(tid): a6fc8020 CUVIDV4L2: Enter CuvidV4L2_Open Pathname /dev/nvidia
(tid): a6fc8020 CUVIDV4L2: Creating new context
(tid): a6fc8020 CUVIDV4L2: Created Context 0xaaaafeb96ef0 at index 0
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for OUTPUT
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT Format description is H264 Encoded bitstream
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for OUTPUT
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT Format description is VP8 Encoded bitstream
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for OUTPUT
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT Format description is VP9 Encoded bitstream
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for OUTPUT
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT Format description is H265 Encoded bitstream
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for OUTPUT
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT Format description is MPEG2 Encoded bitstream
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for OUTPUT
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT Format description is MPEG4 Encoded bitstream
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for OUTPUT
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT Format description is MJPEG Encoded bitstream
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for OUTPUT
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT Format description is divx Encoded bitstream
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for OUTPUT
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT Format description is divx Encoded bitstream
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for OUTPUT
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT Format description is AV1 Encoded bitstream
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for OUTPUT
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT Format description is YUV 4:2:0
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for OUTPUT
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT Format description is NV12 4:2:0
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for OUTPUT
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT Format description is YUV 4:2:0 10bit
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for OUTPUT
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT Format description is YUV 4:4:4
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for OUTPUT
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT Format description is YUV 4:4:4 10bit
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for OUTPUT
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT Format description is YUV 4:4:4 12bit
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for OUTPUT
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT Format description is YUV 4:2:2
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for OUTPUT
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT Format description is YUV 4:2:2 10/12 bit
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for OUTPUT
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for CAPTURE
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT description is H264 Encoded bitstream
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for CAPTURE
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT description is H265 Encoded bitstream
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for CAPTURE
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT description is VP8 Encoded bitstream
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for CAPTURE
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT description is VP9 Encoded bitstream
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for CAPTURE
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT description is MPEG2 Encoded bitstream
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for CAPTURE
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT description is MPEG4 Encoded bitstream
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for CAPTURE
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT description is MJPEG Encoded bitstream
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for CAPTURE
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT description is AV1 Encoded bitstream
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for CAPTURE
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT description is YUV 4:2:0
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for CAPTURE
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT description is YUV 4:2:0 10bit
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for CAPTURE
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT description is YUV 4:4:4
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for CAPTURE
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT description is YUV 4:4:4 10bit
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for CAPTURE
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT description is YUV 4:4:4 12bit
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for CAPTURE
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT description is YUV 4:2:2
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for CAPTURE
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMT description is YUV 4:2:2 10/12 bit
(tid): a6fc8020 CUVIDV4L2: CTX(0xaaaafeb96ef0) ENUM_FMTS for CAPTURE
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0: sync = true
(tid): 9a2340e0 CUVIDV4L2: Common s_extctls received num_controls received 1
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:sink: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)4, profile=(string)high, codec_data=(buffer)01640028ffe1001e67640028acd940780227e5c05a80808120000003002000000781e30632c001000568ef86f2c0fdf8f800, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1
Redistribute latency...
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, level=(string)4, profile=(string)high, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, coded-picture-structure=(string)frame, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, colorimetry=(string)0:0:5:1, parsed=(boolean)true, lcevc=(boolean)false
(tid): 9a2340e0 CUVIDV4L2: Common s_extctls received num_controls received 1
(tid): 9a2340e0 CUVIDV4L2: Common: Received control V4L2_CID_MPEG_VIDEO_CUDA_LOW_LATENCY = 0
(tid): 9a2340e0 CUVIDV4L2: Creating the context 0xaaaafeb96ef0 as DECODER context
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xaaaafeb96ef0) Initializing decoder context mutext address is 0xffff9001f6d0
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xaaaafeb96ef0) Decoder context initialized Blocking 1
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xaaaafeb96ef0) Created Decoder context, DEC Open instances 1 **********
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) SFMT for output plane
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) H264 Decoder
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) Setting Maxbitstream size 4194304
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) S_FMT on Output plane successful
(tid): 9a2340e0 CUVIDV4L2: Subscribing the event EOS
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) Subscribing the event resolution change
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) Getting control V4L2_CID_MIN_BUFFERS_FOR_OUTPUT
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) REQBUFS for OUTPUT count 0
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) Releasing output buffers
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) Releasing output plane buffers in nvdec context
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) Released output buffers
(tid): 9a2340e0 CUVIDV4L2: Unknown IOCTL
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) REQBUFS for OUTPUT count 0
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) Releasing output buffers
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) Releasing output plane buffers in nvdec context
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) Released output buffers
(tid): 9a2340e0 CUVIDV4L2: Unknown IOCTL
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) REQBUFS for OUTPUT count 0
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) Releasing output buffers
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) Releasing output plane buffers in nvdec context
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) Released output buffers
(tid): 9a2340e0 CUVIDV4L2: Unknown IOCTL
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) V4L2_CID_MPEG_VIDEO_DISABLE_COMPLETE_FRAME_INPUT value 0
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) V4L2_CID_MPEG_VIDEO_CUDA_MEM_TYPE value 0
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) V4L2_CID_MPEG_VIDEO_CUDA_GPU_ID value 0
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) Initializing NVDEC context
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) Unable to get Device count 0003
Error while setting IOCTL
Invalid control
S_EXT_CTRLS for CUDA_GPU_ID failed
/GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0.GstPad:sink: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, level=(string)4, profile=(string)high, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, coded-picture-structure=(string)frame, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, colorimetry=(string)0:0:5:1, parsed=(boolean)true, lcevc=(boolean)false
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) V4L2_CID_MPEG_VIDEO_DISABLE_COMPLETE_FRAME_INPUT value 0
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) V4L2_CID_MPEG_VIDEO_CUDA_MEM_TYPE value 0
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) V4L2_CID_MPEG_VIDEO_CUDA_GPU_ID value 0
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) Initializing NVDEC context
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) Unable to get Device count 0003
Error while setting IOCTL
Invalid control
S_EXT_CTRLS for CUDA_GPU_ID failed
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) REQBUFS for OUTPUT count 2
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) Output buffer count 2
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) Allocating output buffers in nvdec context
Cuda failure: status=803
(tid): 9a2340e0 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) Error in allocating the buffers
0:00:01.957048626 19177 0xffff8c000b70 ERROR v4l2allocator gstv4l2allocator.c:786:gst_v4l2_allocator_start:<nvv4l2decoder0:pool:sink:allocator> error requesting 2 buffers: Unknown error -1
0:00:01.957068070 19177 0xffff8c000b70 ERROR v4l2bufferpool gstv4l2bufferpool.c:1230:gst_v4l2_buffer_pool_start:<nvv4l2decoder0:pool:sink> we received 0 buffer from device '/dev/nvidia0', we want at least 2
0:00:01.957074376 19177 0xffff8c000b70 ERROR bufferpool gstbufferpool.c:558:gst_buffer_pool_set_active:<nvv4l2decoder0:pool:sink> start failed
ERROR: from element /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0: Failed to allocate required memory.
Additional debug info:
/dvs/git/dirty/git-master_linux/3rdparty/gst/gst-v4l2/gst-v4l2/gstv4l2videodec.c(2293): gst_v4l2_video_dec_handle_frame (): /GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0:
Buffer pool activation failed
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
(tid): a6fc8020 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) V4L2_CID_MPEG_SET_POLL_INTERRUPT value 0
(tid): a6fc8020 CUVIDV4L2: DEC_CTX(0xffff9001f6d0) V4L2_CID_MPEG_SET_POLL_INTERRUPT value 0
(tid): a6fc8020 CUVIDV4L2: Enter CuvidV4L2_Close fd 0
(tid): a6fc8020 CUVIDV4L2: DEC_CTX(0xaaaafeb96ef0) Closing DEC context v4l2_close_context
(tid): a6fc8020 CUVIDV4L2: DEC_CTX(0xaaaafeb96ef0) Destroying the context
(tid): a6fc8020 CUVIDV4L2: DEC_CTX(0xaaaafeb96ef0) Cleaning up decoder context
(tid): a6fc8020 CUVIDV4L2: DEC_CTX(0xaaaafeb96ef0) Destroying output plane queues
(tid): a6fc8020 CUVIDV4L2: DEC_CTX(0xaaaafeb96ef0) Done destroying output plane queues
(tid): a6fc8020 CUVIDV4L2: DEC_CTX(0xaaaafeb96ef0) Destroying capture plane queues
(tid): a6fc8020 CUVIDV4L2: DEC_CTX(0xaaaafeb96ef0) Done destroying capture plane queues
(tid): a6fc8020 CUVIDV4L2: Closed DEC_CTX(0xaaaafeb96ef0) DEC Open instances 0 **********
ERROR: from element /GstPipeline:pipeline0/GstQTDemux:qtdemux0: Internal data stream error.
Additional debug info:
../subprojects/gst-plugins-good/gst/isomp4/qtdemux.c(7571): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstQTDemux:qtdemux0:
streaming stopped, reason error (-5)
ERROR: pipeline doesn't want to preroll.
Freeing pipeline ...
because the release dockẻ for jetpack R38 is not available yet so i have to build it manually