HandBrake giving segmentation faults from SBo and Alien's script
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
I thought that simply using a newer version of the x264 tarball would work, I grabbed Alien's script (that also had the same problem) and edited as this:
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!
x264 [warning]: --tune psnr should be used if attempting to benchmark psnr!
I intend to find the meaning of these errors and figure out what is the cause.
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!
x264 [warning]: --tune psnr should be used if attempting to benchmark psnr!
I intend to find the meaning of these errors and figure out what is the cause.
I didn't understand why changing x264 version didn't fix the problem. I also used alien's script with no modifications and the generated binary gave me segmentation faults.
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.
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.
Did you install my package or did you use my handbrake.SlackBuild script to produce your own package?
Eric
As I said before on the thread:
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.
As I said before on the thread:
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.
My package works fine because it was compiled with gcc-4.7. The bug in x264 is only present when you compile it with gcc-4.8 ...
And the bug report is 6 months old I thought a newer tarball would fix it (I used the latest tarball avaliable)
Are you sure the build used that newer tarball? Handbrake downloads a very specific version of x264 which is hardcoded in the build script. All my SlackBuild script does is download it beforehand, so that you can do an offline build of the package.
Check your build log (you kept a log did you?) and find out if a x264 tarball was downloaded before the compilation started.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.