nvv4l2decoder error

Hi,

when I used GST_DEBUG=2 to run the app, I found the error “Driver bug detected” from nvv4l2decoder element.

0:01:13.764587826   560     0x767f34a0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder21:sink> Unable to try format: Unknown error -1
0:01:13.764633789   560     0x767f34a0 WARN                    v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder21:sink> Could not probe minimum capture size for pixelformat MJPG
0:01:13.764652435   560     0x767f34a0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder21:sink> Unable to try format: Unknown error -1
0:01:13.764668217   560     0x767f34a0 WARN                    v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder21:sink> Could not probe maximum capture size for pixelformat MJPG
0:01:13.764699651   560     0x767f34a0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder21:sink> Unable to try format: Unknown error -1
0:01:13.764714086   560     0x767f34a0 WARN                    v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder21:sink> Could not probe minimum capture size for pixelformat H265
0:01:13.764738560   560     0x767f34a0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder21:sink> Unable to try format: Unknown error -1
0:01:13.764752217   560     0x767f34a0 WARN                    v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder21:sink> Could not probe maximum capture size for pixelformat H265
0:01:13.764780629   560     0x767f34a0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder21:sink> Unable to try format: Unknown error -1
0:01:13.764794620   560     0x767f34a0 WARN                    v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder21:sink> Could not probe minimum capture size for pixelformat H264
0:01:13.764807237   560     0x767f34a0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder21:sink> Unable to try format: Unknown error -1
0:01:13.764820266   560     0x767f34a0 WARN                    v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder21:sink> Could not probe maximum capture size for pixelformat H264
0:01:13.764867444   560     0x767f34a0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder21:src> Unable to try format: Unknown error -1
0:01:13.764885929   560     0x767f34a0 WARN                    v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder21:src> Could not probe minimum capture size for pixelformat NM12
0:01:13.764898661   560     0x767f34a0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder21:src> Unable to try format: Unknown error -1
0:01:13.764912241   560     0x767f34a0 WARN                    v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder21:src> Could not probe maximum capture size for pixelformat NM12
0:01:13.764931329   560     0x767f34a0 WARN                    v4l2 gstv4l2object.c:2370:gst_v4l2_object_add_interlace_mode:0x7f564406bb90 Failed to determine interlace mode
0:01:13.876598501   560     0x767f34a0 ERROR                   v4l2 gstv4l2object.c:2072:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:01:13.876645100   560     0x767f34a0 ERROR                   v4l2 gstv4l2object.c:2072:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:01:13.876712169   560     0x767f34a0 ERROR                   v4l2 gstv4l2object.c:2072:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:01:13.876730975   560     0x767f34a0 ERROR                   v4l2 gstv4l2object.c:2072:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:01:13.876797401   560     0x767f34a0 ERROR                   v4l2 gstv4l2object.c:2072:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:01:13.876814256   560     0x767f34a0 ERROR                   v4l2 gstv4l2object.c:2072:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:01:13.876866556   560     0x767f34a0 ERROR                   v4l2 gstv4l2object.c:2072:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:01:13.876885045   560     0x767f34a0 ERROR                   v4l2 gstv4l2object.c:2072:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:01:13.876939969   560     0x767f34a0 ERROR                   v4l2 gstv4l2object.c:2072:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:01:13.876956956   560     0x767f34a0 ERROR                   v4l2 gstv4l2object.c:2072:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

Hi,

We don’t observe the issue in playing this video. Probably it is specific to certain video files? If yes, please share the video file.

Hi,

It also occur with

GST_DEBUG=3 deepstream-app -c deepstream-app/source30_1080p_dec_infer-resnet_tiled_display_int8.txt

In 1080Ti with driver version 418.87.00

Thanks.

Hi,
Please check if you set up the environment correctly:
[url]NVIDIA DeepStream SDK Developer Guide — DeepStream 6.1.1 Release documentation

It shoudle be something wrong in the environment if you cannot run the sample config file. We have verified all sample config files before releasing DS4.0.1.

Hi,

I have check the environment, and update the driver to 440.31, but not help at all.

And we checked with DS4.0 and not DS4.0.1

Thanks.

Hi,
Does it work if you run without display? Please try fakesink.
https://docs.nvidia.com/metropolis/deepstream/dev-guide/index.html#page/DeepStream_Development_Guide%2Fdeepstream_app_config.3.2.html%23wwpID0ENHA

Hi,

We have tried some examples:

GST_DEBUG=3 gst-launch-1.0 filesrc location=sample_1080p_h264.mp4 ! qtdemux ! h264parse ! nvv4l2decoder ! nvvideoconvert ! fakesink
GST_DEBUG=3 gst-launch-1.0 filesrc location=sample_1080p_h264.mp4 ! qtdemux ! h264parse ! nvv4l2decoder ! nvvideoconvert ! nveglglessink
GST_DEBUG=3 gst-launch-1.0 filesrc location=sample_1080p_h264.mp4 ! qtdemux ! h264parse ! avdec_h264 ! nvvideoconvert ! fakesink
GST_DEBUG=3 gst-launch-1.0 filesrc location=sample_1080p_h264.mp4 ! qtdemux ! h264parse ! avdec_h264 ! nvvideoconvert ! nveglglessink

1 and 2 (use nvv4l2decoder) would happen error, 3 and 4 (use avdec_h264) would not happen.

0:00:00.029577362  5544 0x55a9a014d190 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: unknow error -1
0:00:00.029590533  5544 0x55a9a014d190 WARN                    v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat MJPG
0:00:00.029595662  5544 0x55a9a014d190 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format:  -1
0:00:00.029599454  5544 0x55a9a014d190 WARN                    v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat MJPG
0:00:00.029609091  5544 0x55a9a014d190 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: -1
0:00:00.029612790  5544 0x55a9a014d190 WARN                    v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat H265
0:00:00.029617654  5544 0x55a9a014d190 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format:  -1
0:00:00.029623207  5544 0x55a9a014d190 WARN                    v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat H265
0:00:00.029632108  5544 0x55a9a014d190 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: -1
0:00:00.029635830  5544 0x55a9a014d190 WARN                    v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat H264
0:00:00.029639036  5544 0x55a9a014d190 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: -1
0:00:00.029642387  5544 0x55a9a014d190 WARN                    v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat H264
0:00:00.029860092  5544 0x55a9a014d190 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:src> Unable to try format:  -1
0:00:00.029865883  5544 0x55a9a014d190 WARN                    v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:src> Could not probe minimum capture size for pixelformat NM12
0:00:00.029869363  5544 0x55a9a014d190 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:src> Unable to try format:  -1
0:00:00.029872869  5544 0x55a9a014d190 WARN                    v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:src> Could not probe maximum capture size for pixelformat NM12
0:00:00.029878875  5544 0x55a9a014d190 WARN                    v4l2 gstv4l2object.c:2370:gst_v4l2_object_add_interlace_mode:0x55a9a00b9770 Failed to determine interlace mode
0:00:00.030047139  5544 0x55a9a014d190 WARN                 basesrc gstbasesrc.c:3583:gst_base_src_start_complete:<filesrc0> pad not activated yet
pipeline is PREROLLING ...
0:00:00.030221338  5544 0x55a9a0091e80 WARN                 qtdemux qtdemux.c:3031:qtdemux_parse_trex:<qtdemux0> failed to find fragment defaults for stream 1
0:00:00.030286381  5544 0x55a9a0091e80 WARN                 qtdemux qtdemux.c:3031:qtdemux_parse_trex:<qtdemux0> failed to find fragment defaults for stream 2
0:00:00.179700517  5544 0x55a9a0091e80 ERROR                   v4l2 gstv4l2object.c:2072:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:00:00.179761673  5544 0x55a9a0091e80 ERROR                   v4l2 gstv4l2object.c:2072:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:00:00.179871413  5544 0x55a9a0091e80 ERROR                   v4l2 gstv4l2object.c:2072:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:00:00.179916605  5544 0x55a9a0091e80 ERROR                   v4l2 gstv4l2object.c:2072:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:00:00.180035308  5544 0x55a9a0091e80 ERROR                   v4l2 gstv4l2object.c:2072:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:00:00.180068336  5544 0x55a9a0091e80 ERROR                   v4l2 gstv4l2object.c:2072:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:00:00.180143997  5544 0x55a9a0091e80 ERROR                   v4l2 gstv4l2object.c:2072:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:00:00.180174760  5544 0x55a9a0091e80 ERROR                   v4l2 gstv4l2object.c:2072:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:00:00.180272863  5544 0x55a9a0091e80 ERROR                   v4l2 gstv4l2object.c:2072:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:00:00.180306214  5544 0x55a9a0091e80 ERROR                   v4l2 gstv4l2object.c:2072:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:00:00.181245757  5544 0x55a9a0091e80 WARN            v4l2videodec gstv4l2videodec.c:1433:gst_v4l2_video_dec_decide_allocation:<nvv4l2decoder0> Duration invalid, not setting latency
0:00:00.181313391  5544 0x55a9a0091e80 WARN          v4l2bufferpool gstv4l2bufferpool.c:1054:gst_v4l2_buffer_pool_start:<nvv4l2decoder0:pool:src> Uncertain or not enough buffers, enabling copy threshold
0:00:00.182739479  5544 0x7f867c0145e0 WARN          v4l2bufferpool gstv4l2bufferpool.c:1518:gst_v4l2_buffer_pool_dqbuf:<nvv4l2decoder0:pool:src> Driver should never set v4l2_buffer.field to ANY

If my GPU has some error or driver not compatible ?

Thanks.

1 Like

Hi,
NVIDIA® GeForce® GTX 1080 is listed. 1080Ti should also work well.
Could you clean cache and try again?

If the application encounters errors and cannot create Gst elements, remove the GStreamer cache, then try again. To remove the GStreamer cache, enter this command:
$ rm ${HOME}/.cache/gstreamer-1.0/registry.x86_64.bin

Hi,

It doesn’t help. and I checked it in docker nvcr.io/nvidia/deepstream:4.0-19.07 also happen. And we checked it in tesla P4 also happen.

Now we will try in ubuntu 16.04 with docker 18.04 to exclude the OS error.

Thanks.

Hi ClancyLian,
Is this issue resolved? I am facing the same problem with the driver version 418.87.00, on my RTX 2070

Hi Clancy - Did moving to ubuntu 16.04 solve the driver problem for you?

Same problem for videos from deepstream samples:
GST_DEBUG=nvv4l2decoder,3 gst-launch-1.0 filesrc location=/opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_720p.h264 ! h264parse ! nvv4l2decoder ! fakesink
Setting pipeline to PAUSED …
0:00:00.029801169 22467 0x55b2d7acc040 WARN v4l2 gstv4l2object.c:3035:gst_v4l2_object_get_nearest_size:nvv4l2decoder0:sink Unable to try format: Unknown error -1
0:00:00.029818111 22467 0x55b2d7acc040 WARN v4l2 gstv4l2object.c:2921:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder0:sink Could not probe minimum capture size for pixelformat MJPG

Hi fanis,

Please open a new topic for this issue. Thanks

I’m getting this same issue. Using:
Ubuntu Desktop x64 18.04.03 with 5+ kernel (Tested using server version with 4.15 kernel and got same result)
cuda_10.2.89_440.33.01_linux.run - to install cuda and the 440 driver
Using cudnn 7.6.5 (Test script works)
Installed the cuda-toolkit-10-2 using the apt .deb
TensorRt 7.0.0.11-ga-20191216
Using deepstream-5.0_5.0.0-1_amd64.deb

I’ve followed the steps correctly and nvv4l2decoder still throws the driver error:
0:00:00.288042600 27032 0x5605a579a0a0 ERROR v4l2 gstv4l2object.c:2074:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from v4l-utils.git - media (V4L2, DVB and IR) applications and libraries

GST_DEBUG=4 gst-inspect-1.0 nvv4l2decoder shows no errors.
But

Fails with the driver error.

3 Likes

Any updates on this issue? I get the same result and have the same setup as Santiago.

any updates? I’m facing same issue on deepstream 5.1

Please open a new topic for this issue. Thanks