This forum has been archived. All content is frozen. Please use KDE Discuss instead.

kdenlive crashes if I want to add 500MB AVI

Tags: None
(comma "," separated)
kdemichi1234
Registered Member
Posts
16
Karma
0
OS
Hi!

If I want to add a 500MB AVI (-> to the "projectsources", don't know how it is called english. Use the german version. The place where you can pick videos and other stuff to move to a track...) to kdenlive it crases. I have MLT 4.4.2, so this shouldn't be the problem.
The AVI is a not compressed version, without audio-info

Did anyone ever have this problem?

ubuntu 9.10
kdenlive 0.7.5
kde 4.3.2

Thanks!
Michael
j-b-m
Registered Member
Posts
804
Karma
1
These crashes usually mean there is a problem with MLT. Please try playing your video clip with MLT. In a terminal, type:

melt myclip.avi

What is the result?

Also try:

ffplay myclip.avi

And report the result here. But please be aware that 2 versions of MLT were released since 0.4.4 so that you should maybe consider upgrading MLT and Kdenlive.
regards
kdemichi1234
Registered Member
Posts
16
Karma
0
OS
Result from melt:

michael@michael-laptop:~$ sudo melt /home/michael/Desktop/Versuch_2_Full_AVI_Uncompressed.avi
+-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
|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 |
+---------------------------------------------------------------------+
Segmentation fault

Result from ffplay:

michael@michael-laptop:~$ sudo ffplay /home/michael/Desktop/Versuch_2_Full_AVI_Uncompressed.avi
FFplay version SVN-r19352-4:0.5+svn20090706-2ubuntu2, Copyright (c) 2003-2009 Fabrice Bellard, et al.
configuration: --extra-version=4:0.5+svn20090706-2ubuntu2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --extra-cflags=-I/build/buildd/ffmpeg-0.5+svn20090706/debian/include --enable-shared --disable-static
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Oct 13 2009 22:15:16, gcc: 4.4.1
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 133 (XVideo)
Minor opcode of failed request: 19 ()
Serial number of failed request: 27
Current serial number in output stream: 28
kdemichi1234
Registered Member
Posts
16
Karma
0
OS
Nobody an idea???

What I maybe have to say: If I open a AVI of the exact same type, but just 80MB, then it works!

I also checked if I have still enough space on the disk or on ram/swap, but this looks OK! What could it be?
Have to finish a project and should use this uncompressed AVI for good resolution of the rendered video... :-(

Thanks for every hint!
pseudoruprecht_drupal
Registered Member
Posts
41
Karma
0
You seem to be eager to trash your system. Don't run those commands with sudo!

Anything that has to do with codecs is known to have memory leaks etc. that get uncovered every now and then. So don't run those commands with sudo. This is important, so I repeat: Don't run those commands with sudo.

This may even make (at least) your ffmpeg work. It doesn't have access to the running X Server, it seems (because of the sudo).

But there might be something else that goes wrong; we'll see then.

Please, don't run anything with sudo that doesn't absolutely need sudo to run! Will save you lots of trouble. And keeps your n00b level a bit lower in public support forums like this one :)
kdemichi1234
Registered Member
Posts
16
Karma
0
OS
Thanks for your tip pseudoruprecht! I will keep that in mind! The reason why I tried to play the AVI with sudo in front, was because I wanted to be sure that there is no permission issue... (And by the way, I'm not concerned about my n00b-factor, because I know that I don't know much about Linux yet... ;-))

But here the same behaviour, without sudo:

MLT:
****************************************************************************
michael@michael-laptop:~$ melt /home/michael/Desktop/Versuch_2_Full_AVI_Uncompressed.avi
+-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
|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 |
+---------------------------------------------------------------------+
Segmentation fault
****************************************************************************

FFPLAY:
****************************************************************************
michael@michael-laptop:~$ ffplay /home/michael/Desktop/Versuch_2_Full_AVI_Uncompressed.avi
FFplay version SVN-r19352-4:0.5+svn20090706-2ubuntu2, Copyright (c) 2003-2009 Fabrice Bellard, et al.
configuration: --extra-version=4:0.5+svn20090706-2ubuntu2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --extra-cflags=-I/build/buildd/ffmpeg-0.5+svn20090706/debian/include --enable-shared --disable-static
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Oct 13 2009 22:15:16, gcc: 4.4.1
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 133 (XVideo)
Minor opcode of failed request: 19 ()
Serial number of failed request: 27
Current serial number in output stream: 28
****************************************************************************
kdemichi1234
Registered Member
Posts
16
Karma
0
OS
And here melt with -debug opt. switched on:

michael@michael-laptop:~$ melt -debug /home/michael/Desktop/Versuch_2_Full_AVI_Uncompressed.avi
st:0 removing common factor 1000 from timebase
+-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
|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 |
+---------------------------------------------------------------------+
[producer @ 0x99dcca0]seeking timestamp 0 position 0 expected 0 last_pos -1
[producer @ 0x99dcca0]pkt.dts 0 req_pos 0 cur_pos -1 pkt_pos 0 got_pic 32 key 1
Segmentation fault
ddennedy
Registered Member
Posts
1315
Karma
1
Basically, that clip is not compatible. It will not work. If you want some feedback on the reason why the 80 MB works but not the 512 MB, then send the output of 'ffmpeg -i the.avi' for both clips and we will try to see what is different.


kdemichi1234
Registered Member
Posts
16
Karma
0
OS
Yes, that really would be interessting. Here's the output of both the 500MB and the 80MB file:

500MB FILE:
*************************************************************
FFmpeg version SVN-r19352-4:0.5+svn20090706-2ubuntu2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --extra-version=4:0.5+svn20090706-2ubuntu2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --extra-cflags=-I/build/buildd/ffmpeg-0.5+svn20090706/debian/include --enable-shared --disable-static
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Oct 13 2009 22:15:16, gcc: 4.4.1
Input #0, avi, from '/home/michael/Desktop/500MB.avi':
Duration: 00:00:08.83, start: 0.000000, bitrate: 460982 kb/s
Stream #0.0: Video: rawvideo, bgr24, 936x684, 30 tbr, 30 tbn, 30 tbc
At least one output file must be specified
*************************************************************

80MB FILE:
*************************************************************
FFmpeg version SVN-r19352-4:0.5+svn20090706-2ubuntu2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --extra-version=4:0.5+svn20090706-2ubuntu2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --extra-cflags=-I/build/buildd/ffmpeg-0.5+svn20090706/debian/include --enable-shared --disable-static
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Oct 13 2009 22:15:16, gcc: 4.4.1
Input #0, avi, from '/home/michael/Desktop/80MB.avi':
Duration: 00:00:08.83, start: 0.000000, bitrate: 84623 kb/s
Stream #0.0: Video: rawvideo, bgr24, 544x216, 30 tbr, 30 tbn, 30 tbc
At least one output file must be specified
*************************************************************

--> Hmmm... strange... Except resolution, bitrate and size there is no difference... Or am I wrong?
Tested it again exactly with those two files. The 80MB works, the 500 lets kdenlive crash....

Thanks for your support!
Michael
ddennedy
Registered Member
Posts
1315
Karma
1
What tool is creating these?
AVI can suffer from interoperability problems in implementations. It is possible that the resolution affects a calculation in either the writing tool or ffmpeg's reader that causes this problem. If your tool outputs an image sequence, then you might consider using it. You would load it into Kdenlive using a Slideshow Clip where you set the duration of each slide to one frame. It is not entirely convenient to wait for Kdenlive to generate a thumnail of each pic to display in the list at the bottom of that dialog. :-/ We should change it so that you have to click something to preview or just let the user preview using the functions in the KDE file dialog.


kdemichi1234
Registered Member
Posts
16
Karma
0
OS
It's generated by Blueberry. A scren capturing tool for MS-Windows...

I'll think about the slideshow solution!

Thanks!
Michael
kdemichi1234
Registered Member
Posts
16
Karma
0
OS
In fact, the video format I have is nothing more than a "image-sequence" right? Because it says "Stream #0.0: Video: rawvideo, bgr24, 544x216, 30 tbr, 30 tbn, 30 tbc" on command 'ffmpeg -i the.avi'.... -> RAWVIDEO

So, how do I convert this to an image-sequence? And what is the best way to import this to kdenlive?

Thanks!
Michael
kdemichi1234
Registered Member
Posts
16
Karma
0
OS
Tried to open the AVI on the USB-Live system you provide... Kdenlive (melt?) also crashed! So there seems to be really an icompatibility with my AVI-format (But just from a certain size on, thats the strange thing)...

If I have time, I will describe the problem detailed later.

Thanks for your help!
Michael


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]