FFMPEG CUVID decoding issue with P2000

I’m trying to transcode H.264 Stream to HEVC. Everything just working fine when I’m using the in-built CPU decoder, but when I turn on the Hardware-accelerated CUVID module, it throws some error with most of my streams.

nvidia-bug-report: https://1drv.ms/u/s!AlIDARy55xh44GHXxlIlt2jipoqJ

/root/bin/ffmpeg -hwaccel cuvid -c:v h264_cuvid -i ‘udp://’ -map 0:0:v -map 0:1:a -c:v hevc_nvenc -f mpegts test.ts

[h264_cuvid @ 0x3d2b800] Video height 14 not within range from 16 to 4096
Error while opening decoder for input stream #0:0 : Invalid argument

My video height with all of streams is HD or PAL resolution, so probably within that range.
stream #0:0 is the video stream.

I’ve tried to add -analyzeduration 10M -probesize 10M flags, the results same.

FFREPORT file: https://1drv.ms/u/s!AlIDARy55xh44F2f_8C1TyKwxA0t

It says:
data partitioning is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[h264 @ 0x31df240] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)

I’ve already written a mail to FFMPEG support, but I didn’t get a response. Maybe you can help me somehow.

Sample from input: https://1drv.ms/v/s!AlIDARy55xh44F7_i2Ak_q8bmTTF
The output file is empty.

My FFMPEG version is the newest: 4.0

FFMPEG compilation parameters:
–prefix=/root/ffmpeg_build --pkg-config-flags=–static --extra-cflags=’-I/root/ffmpeg_build/include -I/usr/local/cuda/include’ --extra-ldflags=’-L/root/ffmpeg_build/lib -L/usr/local/cuda/lib64’ --extra-libs=-lpthread --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-cuda --enable-cuvid --enable-nvenc --enable-libnpp

CUDA Version: 9.2 (Patch installed)
NVIDIA Driver: 390.48
Card: NVIDIA Quadro P2000

Using Ubuntu 17.10 and I’ve Centos 7 server with the same parameters.

If using something like this:
/root/bin/ffmpeg -i ‘udp://’ -map 0:0:v -map 0:1:a -c:v hevc_nvenc -f mpegts udp:// or file

It runs without an issue/warning.

I made a sample of a working stream too:
Input: https://1drv.ms/v/s!AlIDARy55xh44GA4yH34AIke-8Op
Output: https://1drv.ms/v/s!AlIDARy55xh44F-uJFXcvHsLTBw3

Is there anything which solves this kind of issue? Am I doing something wrong?

Best regards:
Ferenc Nánási

Same problem is here