Bug 470499

Summary: Wrong value is passed for the "frame_duration" option for `libopus`
Product: [Applications] kdenlive Reporter: rempas <rempas>
Component: Rendering & ExportAssignee: Jean-Baptiste Mardelle <jb>
Status: REPORTED ---    
Severity: major    
Priority: NOR    
Version First Reported In: 23.04.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description rempas 2023-05-31 22:46:32 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

STEPS TO REPRODUCE
1. Create a video
2. Try to render using SVT-AV1 (`libsvtav1`) as the Video encoding and `libopus` as the audio encoder 

OBSERVED RESULT
Render failed.

EXPECTED RESULT
Render to complete successfully.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch Linux (latest updates)
(available in About System)
KDE Plasma Version:
KDE Frameworks Version: 
Qt Version: 5.15.9+kde+r154-1

ADDITIONAL INFORMATION
I have created a custom render preset using the SVT-AV1 encoder. I have bother tried from scratch and by copying the existing preset of AOM AV1 and just changing the video encoder. In both of the cases, I cannot render as it seems that a wrong value is passed for the option "frame_duration".

I have tried to manually set the option in the "addition parameters" section but I get the same results.

It is worth noting that I have the same exact problem in Shotcut so maybe what is used underline in both these editors causes the problem. Also, I'm able to find a work around, using the method [here](https://gitlab.com/AOMediaCodec/SVT-AV1/-/issues/1958). Yes, this issue was create from me and I found help.

So another theory is that as the custom packages work, this may be a problem with the default packages of Arch Linux. But I wanted to post and find a solution because compiling so many programs in every release will just be a pain so this must be addressed cause if the later is the case, I will not be the only one that has/will have a problem and I/we/you need to talk with the team on Arch Linux to find a solution.

The crass error message in more detail:

```
[libopus @ 0x7f3c74004080]
Value 33333.000000 for parameter 'frame_duration' out of range [2.5 - 120]
Svt[info]:
-------------------------------------------
Svt[info]:
SVT [version]: SVT-AV1 Encoder Lib v1.1.0
Svt[info]:
SVT [build] : GCC 12.1.0 64 bit
Svt[info]:
LIB Build date: Jul 28 2022 09:50:18
Svt[info]:
-------------------------------------------
[libsvtav1 @ 0x7f3c74001fc0]
Error setting encoder parameters: bad parameter (0x80001005)
[libopus @ 0x7f3c740035c0]
Value 33333.000000 for parameter 'frame_duration' out of range [2.5 - 120]
```