Converting to a lower quality fails with Hardware-Accelerated Streaming in Plex Web

It’s worth noting that in rare cases the bug doesn’t occour. In that case the Transcoder runs with the following parameters:

/usr/lib/plexmediaserver/Plex Transcoder -codec:0 h264 -hwaccel:0 nvdec -hwaccel_fallback_threshold:0 10 -hwaccel_output_format:0 cuda -codec:2 dca -analyzeduration 20000000 -probesize 20000000 -i /path/file.mkv -filter_complex [0:0]hwupload[0];[0]scale_cuda=w=960:h=720:format=nv12[1] -filter_complex [0:2] aresample=async=1:ocl='stereo':rematrix_maxval=0.000000dB:osr=48000[2] -map [1] -codec:0 h264_nvenc -b:0 2727k -maxrate:0 3637k -bufsize:0 7274k -forced-idr:0 1 -r:0 23.975999999999999 -force_key_frames:0 expr:gte(t,0+n_forced*3) -map [2] -metadata:s:1 language=eng -codec:1 aac -b:1 148k -f dash -seg_duration 3 -init_seg_name init-stream$RepresentationID$.m4s -media_seg_name chunk-stream$RepresentationID$-$Number%05d$.m4s -window_size 5 -delete_removed false -skip_to_segment 1 -time_delta 0.0625 -manifest_name http://127.0.0.1:32400/video/:/transcode/session/foo/bar/manifest?X-Plex-Http-Pipeline=infinite -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 dash -start_at_zero -copyts -vsync cfr -y -init_hw_device cuda=cuda: -hwaccel_device cuda -filter_hw_device cuda -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/foo/bar/progress