HandBrake giving segmentation faults from SBo and Alien's script
I've installed HandBrake some time ago from SBo but never used it, today while trying to encode a video (with x264 encoder) the softwares crashes and, by running it via terminal, it reported a segmentation fault.
I went on Google and found a few things like this bugreport on Ubuntu. Because of this part: Quote:
Code:
pedro@darkstar:~/Downloads/slackware/alien_repository/handbrake/build$ diff handbrake.SlackBuild /home/pedro/SlackBuilds/14.1/handbrake/handbrake.SlackBuild |
Some backups don't run properly with Handbrake, so you may need to use makeMkv as a first step. I've not seen this encode issue from a makeMkv output.
Handbrake being only a transcoder, sometimes it needs better inputs to work from. I use aliens pre-built blob. |
I don't get what you meant. HandBrake always crashes when I try to encode a video using x264, if I switch the encoder to MPEG-4 it runs fine.
|
I also recommend AlienBobs prebuilt binary. In fact, If there's anything I want and he has it, that's my first port of call. Period. No arguments.
|
Quote:
|
Well, I decided to try the prebuilt package and it works. Damn, something might be wrong in my system.
|
Out of curiosity, I tried to test this with the SBo package. Transcoding segfaulted here as well, except if I used the "Placebo" preset. I think you make a good choice to use AlienBOB's prebuilt. I've found that his binaries are quite reliable. I do most of my transcoding using ffmpeg, but have for long been curious about HandBrake. I noted a common error just before segfaults:
Code:
x264 [warning]: --psnr used with psy on: results will be invalid! |
Quote:
|
Quote:
Eric |
This page references the bug: https://bugs.launchpad.net/ubuntu/+s...4/+bug/1241772. I have tested the added CFLAG on the SBo SlackBuild and it fixes the issue for me. I will get in touch with the maintainer after dinner.
|
Here is a link to the patch:
https://github.com/jvvv/slackbuilds/...segfault.patch I'll be notifying package maintainer after I post this. Just adding the usual SLKCFLAGS didn't work. So I saved the current environment for CFLAGS and CXXFLAGS, exported the SLKCFLAGS as CFLAGS and CXXFLAGS, and then restored the saved CFLAGS and CXXFLAGS after compilation completes; this worked for me. Cheers |
Quote:
I tried SBo's stock script I tried yours stock script I tried a modified version of your script with a newer x264 tarball All of them gave me the segmentation error. Now I've installed your prebuilt package and it works fine. |
Quote:
Eric |
Quote:
Quote:
|
Quote:
Check your build log (you kept a log did you?) and find out if a x264 tarball was downloaded before the compilation started. Eric |
All times are GMT -5. The time now is 08:31 PM. |