<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hello,<br></div><div><br></div><div>I want to use the different encoding presets for nvenc that seem to be available for both nvh264enc and nvh265enc elements. For example, for nvh264enc, the following presets are listed:<br></div><div> (0): default - Default<br></div><div> (1): hp - High Performance<br></div><div> (2): hq - High Quality<br></div><div> (3): low-latency - Low Latency<br></div><div> (4): low-latency-hq - Low Latency, High Quality<br></div><div> (5): low-latency-hp - Low Latency, High Performance<br></div><div> (6): lossless - Lossless<br></div><div> (7): lossless-hp - Lossless, High Performance<br></div><div><br></div><div>However, after doing some encodings with different presets, I realized that I'm always getting the same output. For inspection, I l ran gst-inspect-1.0 on nvh264enc with GST_DEBUG=4:<br></div><div><i>GST_DEBUG=4 gst-inspect-1.0 nvh264enc</i><br></div><div><br></div><div>I've realized that the preset files that are pointed at actually do not exist in the local and system folders. Please see the debug log below:<br></div><div><br></div><div>0:00:00.025438967 4373 0x55ae12aa8400 INFO preset gstpreset.c:141:preset_get_paths:<nvh264enc0> element_name: 'GstNvH264Enc'<br></div><div>0:00:00.025446180 4373 0x55ae12aa8400 INFO preset gstpreset.c:151:preset_get_paths:<nvh264enc0> user_preset_dir: '/home/guel/.local/share/gstreamer-1.0/presets'<br></div><div>0:00:00.025449868 4373 0x55ae12aa8400 INFO preset gstpreset.c:155:preset_get_paths:<nvh264enc0> user_preset_path: '/home/guel/.local/share/gstreamer-1.0/presets/GstNvH264Enc.prs'<br></div><div>0:00:00.025470318 4373 0x55ae12aa8400 INFO preset gstpreset.c:200:preset_get_paths:<nvh264enc0> system_preset_dir: '/usr/local/share/gstreamer-1.0/presets'<br></div><div>0:00:00.025473666 4373 0x55ae12aa8400 INFO preset gstpreset.c:203:preset_get_paths:<nvh264enc0> system_preset_path: '/usr/local/share/gstreamer-1.0/presets/GstNvH264Enc.prs'<br></div><div>0:00:00.025534849 4373 0x55ae12aa8400 INFO preset gstpreset.c:290:preset_open_and_parse_header:<nvh264enc0> Unable to read preset file /home/guel/.local/share/gstreamer-1.0/presets/GstNvH264Enc.prs: No such file or directory<br></div><div>0:00:00.025543944 4373 0x55ae12aa8400 INFO preset gstpreset.c:290:preset_open_and_parse_header:<nvh264enc0> Unable to read preset file /usr/local/share/gstreamer-1.0/presets/GstNvH264Enc.prs: No such file or directory<br></div><div>0:00:00.025550956 4373 0x55ae12aa8400 INFO preset gstpreset.c:543:gst_preset_default_get_preset_names:<nvh264enc0> Empty preset file<br></div><div><br></div><div>I also couldn't find any Nvenc preset files through a web search. I understand that these are config files to set the appropriate parameters for different presets and I inspected the prs file for x264 (GstX264Enc.prs) present under /usr/local/share/gstreamer-1.0/presets. However, I don't have a clue how to write a prs file for the different presets of Nvenc. I appreciate any help for a starting point.<br></div><div><br></div><div>Thank you.<br></div><div><br></div><div id="sig67116920"><div class="signature">-- <br></div><div class="signature"> Serhan Gül<br></div><div class="signature"> serhan@fastmail.com<br></div><div class="signature"><br></div></div><div><br></div></body></html>