Unable to generate proxy clips through VAAPI

Got some consistent problems in generating proxy clips when working with videos created with the DJI Osmo Action 6. The weird fact is that it generates one and then starts failing. No idea what’s going on.

The error is currently the following:

Unrecognized option 'vsync'.
Error splitting the argument list: Option not found

the current output of vainfo is the following

$ vainfo
Trying display: wayland
vainfo: VA-API version: 1.24 (libva 2.24.0)
vainfo: Driver version: Mesa Gallium driver 26.1.7-arch1.1 for AMD Radeon 780M Graphics (radeonsi, phoenix, ACO, DRM 3.64, 7.1.8-arch1-3)
vainfo: Supported profile and entrypoints
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSlice
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointVLD
      VAProfileAV1Profile0            : VAEntrypointVLD
      VAProfileAV1Profile0            : VAEntrypointEncSlice
      VAProfileNone                   : VAEntrypointVideoProc

Any idea? I’m pretty stumped right now.

This will be fixed in 26.08 (you may also want to try the daily/nightly builds as the fix has already been merged).

The reason is that -vsync is a deprecated ffmpeg parameter replaced by -fps_mode.

thanks a lot @berndmj :folded_hands:

glad this is going to be fixed soon!

Seems that 26.08.0 doesn’t contain the fix, I still get error when trying to transcode x265 video using “Lossy x264 I frame only (Nvidia GPU)”

flatpak run --command=sh org.kde.kdenlive -c "grep -n vsync /app/share/kdenlive/kdenlivetranscodingrc"
41:Lossy x264 I frame only (NVidia GPU)=-f mp4 -vsync 0 -codec:v h264_nvenc -vb 0 -rc cbr -g 2 -bf 0 -codec:a aac -ab 256k %1.mp4;av
44:Lossy x264 I frame only (NVidia GPU Video only)=-f mp4 -vsync 0 -codec:v h264_nvenc -vb 0 -rc cbr -g 2 -bf 0 -an %1.mp4;video

Yeah, sorry, didn’t make it into 26.08.0 but will definitely be included in the next maintenance release.

You can fix it temporarily by locating encodingprofiles.rc and editing it in the text editor of your choice. Replace all occurrences of -vsync 1 with fps_mode cfr.

Do the same for kdenlivetranscodingrc (note the missing dot before rc!) and replace -vsync 0 with -fps_mode passthrough.

There is one more change needed but that is in the source code and only affects silence removal.