ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i "${1}" -af "volume=1.0" -f mp4 -c:a mp3 -c:v h264_nvenc -preset slow -rc:v vbr_hq -cq:v 19 -b:v 1024k -ab 192000 -ar 44100 -threads 8 -maxrate 3M "${1}_converted".mp4
[h264_nvenc @ 0x5638b8035980] Specified rc mode is deprecated.
[h264_nvenc @ 0x5638b8035980] Use -rc constqp/cbr/vbr, -tune and -multipass instead.
[h264_nvenc @ 0x5638b8035980] InitializeEncoder failed: invalid param (8): Presets P1 to P7 are not supported with older 2 Pass RC Modes(CBR_HQ, VBR_HQ) and cbr lowdelay.
Enable NV_ENC_RC_PARAMS::multiPass flag for two pass encoding a
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[libmp3lame @ 0x5638b805bc40] 3 frames left in the queue on closing
Conversion failed!
Что-то не пойму, что ей надо подставить в:
-rc:v vbr_hq -cq:v 19 -b:v 1024k