nvjpegenc keeps crashing, no matter what I try

I have this pipeline:

gst-launch-1.0 uridecodebin uri=rtsp://ip:554/Streaming/Channels/102?transportmode=unicast ! nvvideoconvert ! 'video/x-raw(memory:NVMM), formt=(string)I420' ! nvjpegenc ! multifilesink location=img_%03d.jpeg

It crashes with:

x0000007f8ebff048 in __GI___poll (fds=0x559a057e00, nfds=547856892528,
    timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:41
41      ../sysdeps/unix/sysv/linux/poll.c: No such file or directory.

Removing nvjpegenc i.e

gst-launch-1.0 uridecodebin uri=rtsp://ip:554/Streaming/Channels/102?transportmode=unicast ! nvvideoconvert ! 'video/x-raw(memory:NVMM), formt=(string)I420' ! multifilesink location=img_%03d.jpeg

works fine.

This one works also:

gst-launch-1.0 uridecodebin uri=rtsp://ip:554/Streaming/Channels/102?transportmode=unicast ! nvvidconv ! 'video/x-raw(memory:NVMM), formt=(string)I420'  ! nvjpegenc ! multifilesink location=img_%03d.jpeg

But If I replace nvvidconv with nvvideoconvert as per https://devtalk.nvidia.com/default/topic/1066867/deepstream-sdk/nvjpegenc-causes-segfault-/post/5403345/#reply but it does not work.

Can somebody please show me show to get nvjpegenc to work.

Let’s continue in
https://devtalk.nvidia.com/default/topic/1066867/deepstream-sdk/nvjpegenc-causes-segfault-/post/5404150/#5404150