nvh264enc: Preset files are missing.
I've noticed that encoding is unacceptably slow ie. 20ms/frame for a single 1080p stream, even after explicitly setting all tuning options to low latency + performance. Further expirementing show that streaming quality + encoding speed had no effect regardless of what preset was choosen.
gst-inspect with debug flags reveals preset files are missing:
0:00:00.946877553 81 0x55dc31d0ca00 INFO preset gstpreset.c:141:preset_get_paths:<nvh264enc0> element_name: 'nvh264enc'
0:00:00.946893946 81 0x55dc31d0ca00 INFO preset gstpreset.c:151:preset_get_paths:<nvh264enc0> user_preset_dir: '/root/.local/share/gstreamer-1.0/presets'
0:00:00.946902144 81 0x55dc31d0ca00 INFO preset gstpreset.c:155:preset_get_paths:<nvh264enc0> user_preset_path: '/root/.local/share/gstreamer-1.0/presets/nvh264enc.prs'
0:00:00.946952697 81 0x55dc31d0ca00 INFO preset gstpreset.c:200:preset_get_paths:<nvh264enc0> system_preset_dir: '/usr/local/share/gstreamer-1.0/presets'
0:00:00.946963257 81 0x55dc31d0ca00 INFO preset gstpreset.c:203:preset_get_paths:<nvh264enc0> system_preset_path: '/usr/local/share/gstreamer-1.0/presets/nvh264enc.prs'
0:00:00.947040516 81 0x55dc31d0ca00 INFO preset gstpreset.c:290:preset_open_and_parse_header:<nvh264enc0> Unable to read preset file /root/.local/share/gstreamer-1.0/presets/nvh264enc.prs: No such file or directory
0:00:00.947063359 81 0x55dc31d0ca00 INFO preset gstpreset.c:290:preset_open_and_parse_header:<nvh264enc0> Unable to read preset file /usr/local/share/gstreamer-1.0/presets/nvh264enc.prs: No such file or directory
0:00:00.947080383 81 0x55dc31d0ca00 INFO preset gstpreset.c:543:gst_preset_default_get_preset_names:<nvh264enc0> Empty preset file
Google also does not seem know where such a preset file can be found.