Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hardware profiles for H265 templates #809

Closed
MPTres opened this issue Dec 7, 2023 · 1 comment
Closed

Fix hardware profiles for H265 templates #809

MPTres opened this issue Dec 7, 2023 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@MPTres
Copy link

MPTres commented Dec 7, 2023

Streaming fails when using the default h265/videtoolbox template (in a mac). It shows this error:

[hevc_videotoolbox @ 0x7fb602b08300] [Eval @ 0x7ff7b834a380] Undefined constant or missing '(' in 'high'
[hevc_videotoolbox @ 0x7fb602b08300] Unable to parse option value "high"
[hevc_videotoolbox @ 0x7fb602b08300] Error setting option profile to value high.
[vost#0:0/hevc_videotoolbox @ 0x7fb602b07b80] Error initializing output stream: 
Error while opening encoder for output stream #0:0 - maybe incorrect parameters
 such as bit_rate, rate, width or height

Current template:
h265/videotoolbox": "-c:v hevc_videotoolbox -g 50 -bf 0 -profile:v high -level:v 5.1

The problem is the -profile:v parameter, because high is not a valid option.
The valid options for that value in ffmpeg are:

 -profile           <int64>      E..V....... Profile (from 0 to 3) (default 0)
     main                         E..V....... Main Profile
     main10                       E..V....... Main10 Profile

That should be an integer from 0 to 3, or the literals main or main10. Did not send a PR because i have no idea which profile is the equivalent to h264's high :)

@AlexxIT AlexxIT added the bug Something isn't working label Dec 7, 2023
@AlexxIT AlexxIT self-assigned this Dec 7, 2023
@AlexxIT AlexxIT changed the title Error in h265/videotoolbox template Fix hardware profiles for H265 templates Dec 17, 2023
@AlexxIT AlexxIT added this to the v1.8.5 milestone Dec 17, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Jan 1, 2024

@AlexxIT AlexxIT closed this as completed Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants