Nvenc preset files seem to be missing

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Nvenc preset files seem to be missing

chronosynchlastic
Hello,

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:
                           (0): default          - Default
                           (1): hp               - High Performance
                           (2): hq               - High Quality
                           (3): low-latency      - Low Latency
                           (4): low-latency-hq   - Low Latency, High Quality
                           (5): low-latency-hp   - Low Latency, High Performance
                           (6): lossless         - Lossless
                           (7): lossless-hp      - Lossless, High Performance

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:
GST_DEBUG=4 gst-inspect-1.0 nvh264enc

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:

0:00:00.025438967  4373 0x55ae12aa8400 INFO                  preset gstpreset.c:141:preset_get_paths:<nvh264enc0> element_name: 'GstNvH264Enc'
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'
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'
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'
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'
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
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
0:00:00.025550956  4373 0x55ae12aa8400 INFO                  preset gstpreset.c:543:gst_preset_default_get_preset_names:<nvh264enc0> Empty preset file

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.

Thank you.

-- 
  Serhan Gül



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Nvenc preset files seem to be missing

GStreamer-devel mailing list
Hi, I've noticed the same issue:
gst-inspect reports: "Unable to read preset file"
Did you found the root cause?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel