Segfault on Linux
|
|
When I run the encoder file “dsvideo.86” in the Linux terminal, the terminal returns “Segmentation fault (core dumped)” I am running ubuntu gutsy gibbon 7.10 and i have installed ffmpeg and twolame from ubuntu’s software repository. I tried the program with a .avi file. Any ideas? i am running a Celeron 1.75Ghz processor with 1024MB of RAM and 40GB of HDD space. :/ |
|
|
Will compiling the program myself help? |
|
|
Compiling should help, even if it only allows you to help us debug where the crash is happening. Do you have devkitPro installed? |
|
|
No, I don’t have devkitpro. I’ll try compiling the encoder though. |
|
|
To compile the encoder, you need libtwolame and libavcodec/libavformat/libavutil from the ffmpeg package. Hopefully they will be available as development libraries with whatever package system your linux distribution uses. |
|
|
I’ve (finally) built dsvideo after installing libtwolame and ffmpeg and libavocdec etc. No errors whatsoever with the build process, just the usual compiling and linking. Then I actually try to run the program and it goes and segfaults on me again! Oh, and devkitpro is installed now as well. Note: in order to get dsvideo to build i needed not only the libavcodec files but also libavcodec-dev. |
|
|
Yes, libavcodec-dev will give you the header files required for compilation, and the package name without “-dev” gives you the shared libraries. Now, the next stage: Do you know how to use gdb to get a backtrace of what crashed in DSVideo encoder? I suspect it will be within libavcodec/libavformat, but it would be useful to confirm that. |
|
|
no, I don’t know about gdb. |
|
|
OK here’s what I’d like you do to for us: 1. Install the gdb package Thanks for the help with this. |