Skip to content

Commit 5b74a10

Browse files
committed
Fix errors pushed for NVENC
there is no way to do a fallback format filter like with qsv and vaapi. This seems to fail for cuda.
1 parent 100d1ee commit 5b74a10

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/encoders/nvenc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,11 @@ def generate_filtergraphs(self, settings, has_sw_filters, hw_smart_filters, targ
171171
# Add filter to upload software frames to CUDA for CUDA filters
172172
# Note, format conversion (if any - eg yuv422p10le -> p010le) happens after the software filters.
173173
# If a user applies a custom software filter that does not support the pix_fmt, then will need to prefix it with 'format=p010le'
174-
sw_filter_suffix_args.append(f'format={sw_fmt}|cuda,hwupload_cuda')
174+
sw_filter_suffix_args.append(f'format={sw_fmt},hwupload_cuda')
175175
# If we have no software filters:
176-
else:
176+
elif not hw_decode:
177177
# Add hwupload filter that can handle when the frame was decoded in software or hardware
178-
hw_filter_args.append(f'format={sw_fmt}|cuda,hwupload_cuda')
178+
hw_filter_args.append(f'format={sw_fmt},hwupload_cuda')
179179

180180
# Loop over any HW smart filters to be applied and add them as required.
181181
for smart_filter in hw_smart_filters:

0 commit comments

Comments
 (0)