-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
ffmpeg 7.1_4 segfault during transcode with x265 4.1 #202612
Comments
Seeing the same thing here. bash-3.2$ ffmpeg -i input.mp4 -c:v libx265 -c:a copy out.mkv
# output:
...
Segmentation fault: 11 |
Can you try attaching |
I'm not super familiar with lldb, but I've managed to get this:
Hope this will be helpful. |
One possibility is that the ffmpeg brew formula did not get rebuilt with the newer x265; I have seen this issue on and off with the Arch Linux package management where maintainer forgets to do this. |
I'm experiencing the same issue with libx265 encoding after doing a 'brew update && brew upgrade' today. Question - you said "Manually downgrading to x265 4.0_1 and ffmpeg 7.1_3 resolved the issue" - how do you easily do that? Is there an easy way to downgrade ffmpeg and x265? I tried using brew install https://github.com/Homebrew/homebrew-core/blob/c1fc61315283f9f0f87ef538aa21329eef57f37e/Formula/f/ffmpeg.rb but it didn't work. I then tried to curl -O "https://github.com/Homebrew/homebrew-core/blob/c1fc61315283f9f0f87ef538aa21329eef57f37e/Formula/f/ffmpeg.rb" and install locally with brew install ./ffmpeg but that didn't work for me either. |
I think you have to do a downgrade of both
|
Just did a couple of quick tests before my busy Sunday starts, and I can confirm that:
Smells like an upstream |
See if locally building #202680 helps which backports FFmpeg/FFmpeg@099f88b |
Just did a quick rebuild, and HEVC encoding seems to work again. Thanks much, @cho-m! |
@cho-m There is no bump revision, so I guess users already stuck with the issue won't receive the fix? |
You can do
to pick up the fix. |
Something went wrong with the PR, the |
Yep, my mistake. New bottles dispatched: https://github.com/Homebrew/homebrew-core/actions/runs/12535995059 |
Should be fixed by #202717 |
Yup, |
@carlocab Thank you. And yes I know this I could reinstall. But is this expected? Please note that I'm not talking about myself, but probably thousands of brew users. I'm just asking about the expected repair process and how it works. Anyway, thanks everyone for the work and quick fix. ❤️ |
Confirmed it works for me as well, thanks all! |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Yes. That installs a formula from the homebrew-ffmpeg tap, not this one. Please report issues with that formula there and not here (because we cannot fix problems with code in that repository here). |
Ok thanks, I'll do that. |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
Running my usual multimedia transcodes, via
ffmpeg -i foo.webm -c:v libx265 bar.mkv
They worked fine with x265 4.0_1 and ffmpeg 7.1_3 but stopped working today after a brew upgrade, segfaulting instead.
What happened (include all command output)?
zsh: segmentation fault ffmpeg -i foo.webm -c:v libx265 bar.mkv
What did you expect to happen?
Successful transcode
Step-by-step reproduction instructions (by running
brew
commands)brew upgrade (and check that ffmpeg, x265 are at latest 7.1_4, 4.1 respectively) followed by sample transcode command reproduces the issue on my M4 Mac Mini, MacOS Sequoia 15.2. Manually downgrading to x265 4.0_1 and ffmpeg 7.1_3 resolved the issue.
The text was updated successfully, but these errors were encountered: