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

How to analyse when rendering crashes?

Tags: None
(comma "," separated)
lxvidcut
Registered Member
Posts
54
Karma
0
Hi together,

yesterday I got my first crash at the end of a 2-pass rendering job.
There is only a very short message in the job window available which is expressionless.

How can I get more verbose informations while and/or after rendering?
Are there logfiles available?

At the moment I'm calling kdenlive from a KDE menu shortcut.

Thanks!
Christian
ddennedy
Registered Member
Posts
1315
Karma
1
Render it manually with melt. You will have to know the profile name: see /usr/share/mlt/profiles/. Use the same profile as used in your project. In the render dialog, get the details on your render profile and copy them to the clipboard. When doing 2 pass, you must run melt twice, once with pass=1 and again with pass=2. Then, the composed command is something like:

melt path/to/project.kdenlive -verbose -profile atsc_720p_2997 -consumer avformat:/path/to/output.ext (paste render options here)

Do not expect a detailed explanation, but sometimes it is obvious. If you are using a version of melt older than 0.5.4, it is know to have some problems on second pass x264.


Granjow
Moderator
Posts
247
Karma
0
Side note:
How to analyse IF rendering crashes = Did rendering crash or not?
How to analyse WHEN rendering crashes = Rendering crashed, how to find out more?
lxvidcut
Registered Member
Posts
54
Karma
0
@Granjow: Thank's for your note! That's important. I realized that I have general misunderstanding of the both words if and when. I'm a German native speaker and we have only one word to use in this case -> "wenn".
http://www.bbc.co.uk/worldservice/learningenglish/grammar/learnit/learnitv179.shtml
The correct sentence then is: How to analyse when render(ing) crashes? :)

Now back to my problem:

Here are my both "logs". The first is from kdenlive's console (Render is crashing at the end of 2nd pass, but the output file is ok), the second is using melt directly(Render job is ok).

--- KDENLIVE: ---------------------------------------------------------
chr@os113work:~> kdenlive
File given: true
Color mode changed to 0
File given: true
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
//STARTING RENDERING: true , false , "/home/chr/opt/bin/melt" , "atsc_1080i_50" , "avformat" , "-" , "/tmp/kde-chr/kdenliveeQ4202.mlt" , "/home/chr/lxvidcut/prfts/nodering_nkde2.mkv" , () , ("f=matroska", "threads=2", "hq=1", "acodec=ac3", "ab=384k", "pix_fmt=yuv420p", "vcodec=libx264", "minrate=0", "b=18000k", "b_strategy=1", "subcmp=2", "cmp=2", "coder=1", "g=250", "flags=+loop", "flags2=+dct8x8-wpred", "qmax=51", "subq=7", "qmin=10", "qcomp=0.6", "qdiff=4", "trellis=1", "aspect=@16/9", "pass=1") , -1 , -1
Started render process: "/home/chr/opt/bin/melt" "/tmp/kde-chr/kdenliveeQ4202.mlt -profile atsc_1080i_50 -consumer avformat:/home/chr/lxvidcut/prfts/nodering_nkde2.mkv progress=1 f=matroska threads=2 hq=1 acodec=ac3 ab=384k pix_fmt=yuv420p vcodec=libx264 minrate=0 b=18000k b_strategy=1 subcmp=2 cmp=2 coder=1 g=250 flags=+loop flags2=+dct8x8-wpred qmax=51 subq=7 qmin=10 qcomp=0.6 qdiff=4 trellis=1 aspect=@16/9 pass=1"
Rendering of "/home/chr/lxvidcut/prfts/nodering_nkde2.mkv" finished
Started render process: "/home/chr/opt/bin/melt" "/tmp/kde-chr/kdenliveeQ4202.mlt -profile atsc_1080i_50 -consumer avformat:/home/chr/lxvidcut/prfts/nodering_nkde2.mkv progress=1 f=matroska threads=2 hq=1 acodec=ac3 ab=384k pix_fmt=yuv420p vcodec=libx264 minrate=0 b=18000k b_strategy=1 subcmp=2 cmp=2 coder=1 g=250 flags=+loop flags2=+dct8x8-wpred qmax=51 subq=7 qmin=10 qcomp=0.6 qdiff=4 trellis=1 aspect=@16/9 pass=2"
Rendering of "/home/chr/lxvidcut/prfts/nodering_nkde2.mkv" aborted, resulting video will probably be corrupted.


--- MELT:-------------------------------------------------------
chr@os113work:~> cd lxvidcut/
chr@os113work:~/lxvidcut> cd prfts/
chr@os113work:~/lxvidcut/prfts> ./ftsmlt.sh
+-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
|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 |
+---------------------------------------------------------------------+
[libx264 @ 0x6d02d0] using SAR=1/1
[libx264 @ 0x6d02d0] interlaced (1) > level limit (0)
[libx264 @ 0x6d02d0] using cpu capabilities: MMX2 SSE2Slow SlowCTZ
[libx264 @ 0x6d02d0] profile High, level 5.1
[libx264 @ 0x6d02d0] 264 - core 106 - H.264/MPEG-4 AVC codec - Copyleft 2003-2010 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0 me=dia subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=4 chroma_me=0 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=bff constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=18000 ratetol=0.2 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 ip_ratio=1.25 aq=1:1.00
[ac3 @ 0x6d0940] No channel layout specified. The encoder will guess the layout, but it might be incorrect.
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[libx264 @ 0x6d02d0] frame I:68 Avg QP:16.01 size:219109
[libx264 @ 0x6d02d0] frame P:16814 Avg QP:18.01 size: 89391
[libx264 @ 0x6d02d0] mb I I16..4: 3.3% 85.0% 11.7%
[libx264 @ 0x6d02d0] mb P I16..4: 7.9% 0.0% 0.0% P16..4: 84.2% 0.0% 0.0% 0.0% 0.0% skip: 7.9%
[libx264 @ 0x6d02d0] final ratefactor: 16.86
[libx264 @ 0x6d02d0] 8x8 transform intra:4.1% inter:70.4%
[libx264 @ 0x6d02d0] coded y,uvDC,uvAC intra: 80.7% 79.5% 46.6% inter: 65.7% 54.7% 11.8%
[libx264 @ 0x6d02d0] i16 v,h,dc,p: 13% 23% 39% 26%
[libx264 @ 0x6d02d0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 9% 27% 31% 4% 5% 3% 8% 4% 9%
[libx264 @ 0x6d02d0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 33% 11% 5% 7% 5% 12% 4% 11%
[libx264 @ 0x6d02d0] i8c dc,h,v,p: 56% 24% 13% 6%
[libx264 @ 0x6d02d0] kb/s:17982.61
Current Position: 16881
+-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
|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 |
+---------------------------------------------------------------------+
[libx264 @ 0x6d02d0] using SAR=1/1
[libx264 @ 0x6d02d0] interlaced (1) > level limit (0)
[libx264 @ 0x6d02d0] using cpu capabilities: MMX2 SSE2Slow SlowCTZ
[libx264 @ 0x6d02d0] profile High, level 5.1
[libx264 @ 0x6d02d0] 264 - core 106 - H.264/MPEG-4 AVC codec - Copyleft 2003-2010 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0 me=dia subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=4 chroma_me=0 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=bff constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc_lookahead=40 rc=2pass mbtree=1 bitrate=18000 ratetol=0.2 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 cplxblur=20.0 qblur=0.5 ip_ratio=1.25 aq=1:1.00
[ac3 @ 0x6d0940] No channel layout specified. The encoder will guess the layout, but it might be incorrect.
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[libx264 @ 0x6d02d0] frame I:68 Avg QP:16.40 size:209449
[libx264 @ 0x6d02d0] frame P:16814 Avg QP:18.06 size: 89515
[libx264 @ 0x6d02d0] mb I I16..4: 3.5% 84.5% 12.0%
[libx264 @ 0x6d02d0] mb P I16..4: 7.8% 0.0% 0.0% P16..4: 84.2% 0.0% 0.0% 0.0% 0.0% skip: 8.0%
[libx264 @ 0x6d02d0] 8x8 transform intra:4.2% inter:70.4%
[libx264 @ 0x6d02d0] coded y,uvDC,uvAC intra: 80.4% 80.8% 46.9% inter: 65.1% 54.7% 12.0%
[libx264 @ 0x6d02d0] i16 v,h,dc,p: 13% 23% 38% 26%
[libx264 @ 0x6d02d0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 9% 27% 31% 4% 5% 3% 8% 4% 9%
[libx264 @ 0x6d02d0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 33% 11% 5% 7% 5% 12% 4% 11%
[libx264 @ 0x6d02d0] i8c dc,h,v,p: 56% 24% 13% 7%
[libx264 @ 0x6d02d0] kb/s:17999.66
Current Position: 16881
chr@os113work:~/lxvidcut/prfts>

This is the ftsmlt.sh --------------------------------------------
#!/bin/bash
#pass 1
melt ~/lxvidcut/prftspr.kdenlive -verbose -profile atsc_1080i_50 -consumer avformat:/home/chr/lxvidcut/prfts/nodering_man.mkv f=matroska threads=2 hq=1 acodec=ac3 ab=384k pix_fmt=yuv420p vcodec=libx264 minrate=0 b=18000k b_strategy=1 subcmp=2 cmp=2 coder=1 g=250 flags=+loop flags2=+dct8x8-wpred qmax=51 subq=7 qmin=10 qcomp=0.6 qdiff=4 trellis=1 aspect=@16/9 pass=1
#pass 2
melt ~/lxvidcut/prftspr.kdenlive -verbose -profile atsc_1080i_50 -consumer avformat:/home/chr/lxvidcut/prfts/nodering_man.mkv f=matroska threads=2 hq=1 acodec=ac3 ab=384k pix_fmt=yuv420p vcodec=libx264 minrate=0 b=18000k b_strategy=1 subcmp=2 cmp=2 coder=1 g=250 flags=+loop flags2=+dct8x8-wpred qmax=51 subq=7 qmin=10 qcomp=0.6 qdiff=4 trellis=1 aspect=@16/9 pass=2
lxvidcut
Registered Member
Posts
54
Karma
0
Now this case will get funny!

Using melt direct with absolute identically settings works always fine! So I'm not able to open a new thread with the problem. I've compared the printf's when I call kdenlive from console to build a short script which is using melt assimilable.
For me the difference is only the progress option and that kdenlive is calling a rendering helper. My script is melting twice, each with it's pass=1/2 option.

Kdenlive renderer is crashing only when the whole project is the source. A small part always works fine. Memory is rising up to 1,4 GB of 4.
Could the long rendering time (about 3h for both passes) be an issue?
lxvidcut
Registered Member
Posts
54
Karma
0
Ok, thanks. I'll try it tonight.

If I call kdenlive from console, then there are a little bit more informations available.
I can see both passes and at the end of pass 2 the same obvious message "rendering crashes..." is present, but the file seems to be ok.
Tonight I'll give melt -verbose a try and then I will start a new thread about the problem.

All versions are recent. I'm the one who has installed all from sources into ~/opt for an independent producer environment (ffmpeg patch)...

Thanks
Christian
ddennedy
Registered Member
Posts
1315
Karma
1
Hmm, maybe the second pass returns a non-zero return code. Kdenlive may pick that up, but in a command line you must 'echo $?' to see it.




Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], Yahoo [Bot]