[SOLVED] ffmpeg: segmentation fault when trying to encode using libx264
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.
Suggestions would depend upon what you want to accomplish.
If you only want to convert your video file, try some other tool like mencoder instead.
If you want to avoid segfaults and other bugs, try some stable version of Slackware like 15.0 or maybe 14.2 which has slackbuilds for ffmpeg.
If you really want to be a beta tester and provide useful patches and bug-fixes, start by typing:
ulimit -c 512000
and then reproduce the bug. Then the segfault will give you a core file which you can use in your favorite debugger. To make the corefile useful, you will probably have to recompile ffmpeg with the -g switch to get debug symbols. Once you have found the cause of the bug you might get an idea on how to fix it.
The original is 28757 kb/s and you are trying to re-encode it to -b:v 88700k. Why? That won't make it any better, It will make the file size a lot bigger and you have re-encoded it again.
The only reason to re-encode that from x264 to x264 would be if you want a smaller file size. It is h264 and aac.
Or, 117.45 fps, if you want to drop the frame rate down to 60, 30, 24.
The original is 28757 kb/s and you are trying to re-encode it to -b:v 88700k. Why? That won't make it any better, It will make the file size a lot bigger and you have re-encoded it again.
I noticed that mistake when I ran ffprobe.
Quote:
Originally Posted by teckk
What was your goal?
Reduce the size. I am running it again using the preset that you suggested. Thank you.
I was able to fix the segmentation fault issue by adding -vsync cfr to the first pass (based on this post).
These were the commands that I used, which produced a good quality video and reduced the size of the file a lot:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.