Segmentation Fault

Asked by byonik

Hi everyone,

I have a segmentation fautl anytime I try to open a video or an image. It happened with the following format:
ogv, avi and mpeg.

Thank you,

Question information

Language:
English Edit question
Status:
Solved
For:
OpenShot Video Editor Edit question
Assignee:
No assignee Edit question
Solved by:
Jonathan Thomas
Solved:
Last query:
Last reply:
Revision history for this message
Jonathan Thomas (jonoomph) said :
#1

Let's start with the basics. What OS (name and version) are you using? Is it a 32 or 64 CPU? And lastly, were you able to run any of the MLT demos? Try this and let me know what happens:

$ cd ~/mlt/demo
$ sudo bash mlt_watermark

Does a new window open up? Does it have a giant "Ok" icon in the window? Do you get an error?

If the demo doesn't work then that would indicate MLT is not installed correctly. I would re-run the OpenShot build wizard, and pay close attention to any build errors. They are not very obvious sometimes.

Thanks,
-Jonathan

Revision history for this message
byonik (batspeed) said :
#2

Wow you're quick to answer.

Sorry, I have Ubunut 9.04.
I didn't noticed any error during the wizard but I'll pass trough the history to see again.

Ok mlt runs and display the big "ok" icons however it tells me that it fail to load a certain clip, i give the messages on the console:

Failed to load "clip2.dv"
+-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
|1=-10| |2= -5| |3= -2| |4= -1| |5= 0| |6= 1| |7= 2| |8= 5| |9= 10|
+-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
+---------------------------------------------------------------------+
| H = back 1 minute, L = forward 1 minute |
| h = previous frame, l = next frame |
| g = start of clip, j = next clip, k = previous clip |
| 0 = restart, q = quit, space = play |
+---------------------------------------------------------------------+
Current Position: 294

Revision history for this message
byonik (batspeed) said :
#3

OK this might help:

I reruned the install.py and I noticed this message:

"avformat: No build environment found."

Thank you.

Revision history for this message
Jonathan Thomas (jonoomph) said :
#4

Please try this command, and post the output:

$ melt -query producers

Also, just out of curiosity, can you post the output of these 2 commands:

Command 1:
$ ls /usr/lib/libmlt*

Command 2:
$ cd ~/mlt/
$ find . -name "libmlt*" -print

Revision history for this message
byonik (batspeed) said :
#5

Hello,

Hare are the output of the three commands:

$melt -query producers

---
producers:
  - melt
  - melt_file
  - pango
  - pixbuf
  - color
  - colour
  - consumer
  - loader
  - hold
  - noise
  - ppm
  - kino
  - frei0r.ising0r
  - frei0r.lissajous0r
  - frei0r.nois0r
  - frei0r.onecol0r
  - frei0r.partik0l
  - xml
  - xml-string
  - libdv
  - framebuffer
  - pgm
  - vorbis
  - slowmotion
...

$ ls /usr/lib/libmlt*

/usr/lib/libmlt.so /usr/lib/libmlt++.so.0.3.8 /usr/lib/libmlt.so.1
/usr/lib/libmlt++.so /usr/lib/libmlt.so.0.4.1 /usr/lib/libmlt++.so.1
/usr/lib/libmlt.so.0.3.8 /usr/lib/libmlt++.so.0.4.1 /usr/lib/libmlt++.so.2

$ ls /usr/lib/libmlt*

/usr/lib/libmlt.so /usr/lib/libmlt++.so.0.3.8 /usr/lib/libmlt.so.1
/usr/lib/libmlt++.so /usr/lib/libmlt.so.0.4.1 /usr/lib/libmlt++.so.1
/usr/lib/libmlt.so.0.3.8 /usr/lib/libmlt++.so.0.4.1 /usr/lib/libmlt++.so.2

One last thing, it seems that the packages libavformat-dev in my repository is broken and so shouldn't be installed. I'll look into this. Do you think this might be it?

Thank you,
B.

Revision history for this message
byonik (batspeed) said :
#6

Sorry,

I fortgot to give one of the result in my last post:

$ find . -name "libmlt*" -print
./src/framework/libmlt.so
./src/framework/libmlt.so.0.4.1
./src/framework/libmlt.so.1
./src/mlt++/libmlt++.so.0.4.1
./src/mlt++/libmlt++.so.2
./src/mlt++/libmlt++.so
./src/modules/libmltkdenlive.so
./src/modules/libmltxml.so
./src/modules/libmltcore.so
./src/modules/libmltdv.so
./src/modules/libmltresample.so
./src/modules/libmltvmfx.so
./src/modules/libmlteffectv.so
./src/modules/libmltoldfilm.so
./src/modules/libmltmelt.so
./src/modules/libmltvorbis.so
./src/modules/libmltplus.so
./src/modules/libmltjackrack.so
./src/modules/libmltfrei0r.so
./src/modules/libmltmotion_est.so
./src/modules/libmltkino.so
./src/modules/libmltdgraft.so
./src/modules/libmltxine.so
./src/modules/libmltgtk2.so
./src/modules/libmltnormalize.so
./src/modules/libmltsdl.so

Thx,
B.

Revision history for this message
Best Jonathan Thomas (jonoomph) said :
#7

Thanks for the info! Here is the problem, the $ melt -query producers command should have "avformat" in the list for MLT to work properly. Without "avformat" I was able to reproduce the segmentation fault.

I made a few changes to the build wizard to help solve this problem. Try getting the newest version 1.0.2 of the build wizard (https://launchpad.net/openshot/+download). In the middle of the wizard, there is a question about FFmpeg and it gives you 3 options. Try each option 1, 2, and then 3. Each time the build wizard completes, try this command:

$ melt -query producers

When it has "avformat" in the list, everything should work. Hopefully this will work for you.

Thanks,
-Jonathan

Revision history for this message
byonik (batspeed) said :
#8

Ok everything worked like charms,

I used the second option.

Tahnks for the quick answars and for the great program,
Bye,
B.