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

Rendering aborted: [h264 @ 0x7f1ef800d5e0] insufficient thread locking around avcodec_open/close()

Tags: None
(comma "," separated)
mrcrowley
Registered Member
Posts
31
Karma
0
The project is an HD 1080p 25 fps of 18 minutes. Kdenlive 0.8.3, KDE 4.7.3.

I try with File Rendering MP4 (various bitrate) and I get the message in the subject.

I also try with H.264 (various bitrate) and the job stop at 20%.

I also try with Lossless / HQ (h.264 and mp4) with same result.

Anyone can help me ??

bye bye
mrcrowley
Registered Member
Posts
31
Karma
0

Nobody can help me ???

Is this a problem with memory ?? I have 4Gb and I see they are all used the same way as the cpu.

Bye
mrcrowley
Registered Member
Posts
31
Karma
0

Any idea ?? Installed all the libraries required but nothing change.

mrcrowley
Registered Member
Posts
31
Karma
0

Is there anybody from devolpment team that can help with this problem ????

I see many people hanging with this error messages. Is there a solution or not ???

Bye bye
mrcrowley
Registered Member
Posts
31
Karma
0
More error message:

Rendering file /media/Video/compleanno.mp4 crash
[NULL @ 0x58d3220] insufficient thread locking around avcodec_open/close()
[NULL @ 0x58d9500] insufficient thread locking around avcodec_open/close()
consumer_avformat.c: Unable to encode audio - disabling audio output.
[mp4 @ 0x14c9a40] track 1: codec frame size is not set
j-b-m
Registered Member
Posts
804
Karma
1
Hi.

First, please check the settings of MLT processing threads, it is in Kdenlive Settings dialog > Environment > Processing threads (the setting at the bottom). Make sure it is set to 1, and try rendering again if its value was > 1.

Otherwise, one good way to debug rendering issues is to render to script instead of rendering to file.
This creates a bash script in $HOME/kdenlive/scripts that can be run from a terminal.

Then, run the script with:

sh -x ./script001.sh

That might give us some more infos. Also, are you using FFmpeg and libx264 from your distro's official packages?
mrcrowley
Registered Member
Posts
31
Karma
0

First of all I thank you for your help.

MLT processing threads is set = 1.

When I run the script with sh -x ./script001.sh, I get "sh: Can't open ./script001.sh"

FFmpeg is origin from Ubuntu version 4:0.7.2-1 ubuntu1

libx264 is from Ubuntu too and version is 2:0.116.2042+git178455c-1ubuntu1


Thank you a lot !!!
Max
j-b-m
Registered Member
Posts
804
Karma
1
Well, if you did use the "Generate script" option in render dialog, it should have told you that a file called script00x.sh was created (where x can be any number). Keep that name and then in a terminal, go to the script directory:

cd $HOME/kdenlive/scripts

And then you can run the script:

sh -x ./script001.sh (replace script001.sh with the name that was given when you did generate the script)
mrcrowley
Registered Member
Posts
31
Karma
0

it was written Script001.sh :-/

this is the result:

+ SOURCE=/media/Video/kdenlive/scripts/Script002.sh.mlt
+ TARGET=file:///media/Video/compleanno.mp4
+ RENDERER=/usr/bin/kdenlive_render
+ MELT=/usr/bin/melt
+ PARAMETERS=-pid:4289 /usr/bin/melt atsc_1080p_25 avformat - /media/Video/kdenlive/scripts/Script002.sh.mlt file:///media/Video/compleanno.mp4 f=mp4 acodec=libmp3lame ab=384k ar=44100 vcodec=mpeg4 minrate=0 vb=18000k aspect=@16/9 mbd=2 trellis=1 mv4=1 pass=2 threads=1 real_time=-1
+ /usr/bin/kdenlive_render -pid:4289 /usr/bin/melt atsc_1080p_25 avformat - /media/Video/kdenlive/scripts/Script002.sh.mlt file:///media/Video/compleanno.mp4 f=mp4 acodec=libmp3lame ab=384k ar=44100 vcodec=mpeg4 minrate=0 vb=18000k aspect=@16/9 mbd=2 trellis=1 mv4=1 pass=2 threads=1 real_time=-1
//STARTING RENDERING: false , false , "/usr/bin/melt" , "atsc_1080p_25" , "avformat" , "-" , "/media/Video/kdenlive/scripts/Script002.sh.mlt" , "/media/Video/compleanno.mp4" , () , ("f=mp4", "acodec=libmp3lame", "ab=384k", "ar=44100", "vcodec=mpeg4", "minrate=0", "vb=18000k", "aspect=@16/9", "mbd=2", "trellis=1", "mv4=1", "pass=1", "threads=1", "real_time=-1") , -1 , -1
Started render process: "/usr/bin/melt" "/media/Video/kdenlive/scripts/Script002.sh.mlt -profile atsc_1080p_25 -consumer avformat:/media/Video/compleanno.mp4 progress=1 f=mp4 acodec=libmp3lame ab=384k ar=44100 vcodec=mpeg4 minrate=0 vb=18000k aspect=@16/9 mbd=2 trellis=1 mv4=1 pass=1 threads=1 real_time=-1"
Rendering of "/media/Video/compleanno.mp4" finished
Started render process: "/usr/bin/melt" "/media/Video/kdenlive/scripts/Script002.sh.mlt -profile atsc_1080p_25 -consumer avformat:/media/Video/compleanno.mp4 progress=1 f=mp4 acodec=libmp3lame ab=384k ar=44100 vcodec=mpeg4 minrate=0 vb=18000k aspect=@16/9 mbd=2 trellis=1 mv4=1 pass=2 threads=1 real_time=-1"
"Rendering of /media/Video/compleanno.mp4 aborted, resulting video will probably be corrupted."

Thank you.
j-b-m
Registered Member
Posts
804
Karma
1
Ok, so now can you try this command:

melt -debug /media/Video/kdenlive/scripts/Script002.sh.mlt -profile atsc_1080p_25 -consumer avformat:/media/Video/compleanno.mp4 progress=1 f=mp4 acodec=libmp3lame ab=384k ar=44100 vcodec=mpeg4 minrate=0 vb=18000k aspect=@16/9 mbd=2 trellis=1 mv4=1 pass=2 threads=1 real_time=-1
mrcrowley
Registered Member
Posts
31
Karma
0

I see a lot of lines. What do I have to search for ????
What I have to let you know ???



j-b-m
Registered Member
Posts
804
Karma
1
Well, it should crash at 20% like when you start it from Kdenlive. You could post the last lines before the crash...
mrcrowley
Registered Member
Posts
31
Karma
0
[consumer avformat] stopping put waiting
[consumer avformat] stopping consumer
[producer avformat] /media/Video/2011/Compleanno Matteo/00026.MTS
mlt_service_cache_get: name producer_avformat object 0x30fe670
mlt_cache_get: get 9 = 0x30fe670, 0x7f37484cd240
[filter deinterlace] previous -1 current 27025 next -1
[consumer avformat] stopping read_ahead
[filter deinterlace] error 0 deint 1 prog 1 fmt yuv422 method yadif
[filter resample] channels 2 samples 1920 frequency 48000 -> 44100
[filter audioconvert] s16 -> float 2 channels 1920 samples
[filter audioconvert] float -> s16 2 channels 1764 samples
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 29
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 28
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 27
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 26
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 25
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 24
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 23
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 22
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 21
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 20
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 19
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 18
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 17
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 16
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 15
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 14
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 13
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 12
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 11
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 10
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 9
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 8
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 7
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 6
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 5
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 4
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 3
cache_object_close: item 0x2ed7c70 object 0x30fe670 data 0x7f37484cd240 refcount 2
[consumer avformat] stopped
cache_object_close: item 0x25f9fd0 object 0x282b890 data 0x6498e10 refcount 1
producer_avformat_close
mlt_cache_close: 9 = 0x1718
cache_object_close: item 0x7f37483bf880 object 0x900 data 0x7f3746bfb020 refcount 1
mlt_cache_close: 0 = 0x8ff
cache_object_close: item 0x7f37480b79c0 object 0x8ff data 0x7f373ffe0020 refcount 1
[consumer avformat] stopping put waiting
[consumer avformat] stopping consumer
[consumer avformat] stopping read_ahead
[consumer avformat] stopped
mrcrowley
Registered Member
Posts
31
Karma
0

[filter deinterlace] error 0 deint 1 prog 1 fmt yuv422 method yadif

Is this the cause of the crash ???

bye
mrcrowley
Registered Member
Posts
31
Karma
0
Hello ???

No reply ???

Did you forget it ???


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]