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

Rendering with h264 crash

Tags: None
(comma "," separated)
User avatar
Steve Guilford
Registered Member
Posts
207
Karma
0

Re: Rendering with h264 crash

Sun Apr 20, 2014 4:06 pm
rulet111 wrote:
Steve Guilford wrote: If so, use 'export LD_LIBRARY_PATH=~/kdenlive/lib" to override the link path and give kdenlive a try.


Yes, I tried, but that didn't helped.


Do you have multiple copies of libx264 on your system?

Try the LD_LIBRARY_PATH hack w/ the rendering script you generated earlier. Place the export line in the script. The start-kdenlive script modifies LD_LIBRARY_PATH. Using the render script will give you a more isolated test environment than kdenlive and the start-kdenlive script.

Otherwise...I'm out of ideas for you...sorry. Seems like a config issue though.
rulet111
Registered Member
Posts
30
Karma
0

Re: Rendering with h264 crash

Sun Apr 20, 2014 6:14 pm
Steve Guilford wrote:Try the LD_LIBRARY_PATH hack w/ the rendering script you generated earlier. Place the export line in the script.


F.e. like this?:

#! /bin/sh

SOURCE="/home/r/kdenlive/scripts/script001.sh.mlt"
TARGET="/home/r/kdenlive/untitled.mp4"
RENDERER="/home/r/kdenlive/20140416/bin/kdenlive_render"
MELT="/home/r/kdenlive/20140416/bin/melt"
PARAMETERS="-pid:5600 $MELT hdv_1080_50i avformat - $SOURCE $TARGET f=mp4 hq=1 acodec=aac ab=384k ar=48000 pix_fmt=yuv420p vcodec=libx264 minrate=0 vb=12000k g=250 bf=3 b_strategy=1 subcmp=2 cmp=2 coder=1 flags=+loop flags2=dct8x8 qmax=51 subq=7 qmin=10 qcomp=0.6 qdiff=4 trellis=1 aspect=@16/9 pass=1 threads=1 real_time=-1"
$RENDERER $PARAMETERS
export LD_LIBRARY_PATH=/kdenlive/20140416/lib
User avatar
Steve Guilford
Registered Member
Posts
207
Karma
0

Re: Rendering with h264 crash

Sun Apr 20, 2014 7:36 pm
rulet111 wrote:
Steve Guilford wrote:Try the LD_LIBRARY_PATH hack w/ the rendering script you generated earlier. Place the export line in the script.


F.e. like this?:

#! /bin/sh

SOURCE="/home/r/kdenlive/scripts/script001.sh.mlt"
TARGET="/home/r/kdenlive/untitled.mp4"
RENDERER="/home/r/kdenlive/20140416/bin/kdenlive_render"
MELT="/home/r/kdenlive/20140416/bin/melt"
PARAMETERS="-pid:5600 $MELT hdv_1080_50i avformat - $SOURCE $TARGET f=mp4 hq=1 acodec=aac ab=384k ar=48000 pix_fmt=yuv420p vcodec=libx264 minrate=0 vb=12000k g=250 bf=3 b_strategy=1 subcmp=2 cmp=2 coder=1 flags=+loop flags2=dct8x8 qmax=51 subq=7 qmin=10 qcomp=0.6 qdiff=4 trellis=1 aspect=@16/9 pass=1 threads=1 real_time=-1"
$RENDERER $PARAMETERS
export LD_LIBRARY_PATH=/kdenlive/20140416/lib

Almost....

SOURCE="/home/r/kdenlive/scripts/script001.sh.mlt"
TARGET="/home/r/kdenlive/untitled.mp4"
RENDERER="/home/r/kdenlive/20140416/bin/kdenlive_render"
MELT="/home/r/kdenlive/20140416/bin/melt"
PARAMETERS="-pid:5600 $MELT hdv_1080_50i avformat - $SOURCE $TARGET f=mp4 hq=1 acodec=aac ab=384k ar=48000 pix_fmt=yuv420p vcodec=libx264 minrate=0 vb=12000k g=250 bf=3 b_strategy=1 subcmp=2 cmp=2 coder=1 flags=+loop flags2=dct8x8 qmax=51 subq=7 qmin=10 qcomp=0.6 qdiff=4 trellis=1 aspect=@16/9 pass=1 threads=1 real_time=-1"
export LD_LIBRARY_PATH=/home/r/kdenlive/20140416/lib
$RENDERER $PARAMETERS
rulet111
Registered Member
Posts
30
Karma
0

Re: Rendering with h264 crash

Sun Apr 20, 2014 9:50 pm
Steve Guilford wrote:Almost....

SOURCE="/home/r/kdenlive/scripts/script001.sh.mlt"
TARGET="/home/r/kdenlive/untitled.mp4"
RENDERER="/home/r/kdenlive/20140416/bin/kdenlive_render"
MELT="/home/r/kdenlive/20140416/bin/melt"
PARAMETERS="-pid:5600 $MELT hdv_1080_50i avformat - $SOURCE $TARGET f=mp4 hq=1 acodec=aac ab=384k ar=48000 pix_fmt=yuv420p vcodec=libx264 minrate=0 vb=12000k g=250 bf=3 b_strategy=1 subcmp=2 cmp=2 coder=1 flags=+loop flags2=dct8x8 qmax=51 subq=7 qmin=10 qcomp=0.6 qdiff=4 trellis=1 aspect=@16/9 pass=1 threads=1 real_time=-1"
export LD_LIBRARY_PATH=/home/r/kdenlive/20140416/lib
$RENDERER $PARAMETERS


Well I tried that but rendering still crashes with this error:

Rendering of /home/r/kdenlive/untitled.mp4 crashed
[NULL @ 0x7feaec2c7e40] [Eval @ 0x7feaf32ce310] Undefined constant or missing '(' in 'dct8x8' [NULL @ 0x7feaec2c7e40] Unable to parse option value "dct8x8" [NULL @ 0x7feaec2c7e40] [Eval @ 0x7feaf32ce310] Invalid chars '.6' at the end of expression '0.6' [NULL @ 0x7feaec2c7e40] Unable to parse option value "0.6"
[NULL @ 0x7feaec2c9240] [Eval @ 0x7feaf32ce780] Undefined constant or missing '(' in 'dct8x8' [NULL @ 0x7feaec2c9240] Unable to parse option value "dct8x8" [libx264 @ 0x7feaec2c7e40] interlace + weightp is not implemented
User avatar
Steve Guilford
Registered Member
Posts
207
Karma
0

Re: Rendering with h264 crash

Mon Apr 21, 2014 12:25 am
rulet111 wrote: Well I tried that but rendering still crashes with this error:

Rendering of /home/r/kdenlive/untitled.mp4 crashed
[NULL @ 0x7feaec2c7e40] [Eval @ 0x7feaf32ce310] Undefined constant or missing '(' in 'dct8x8' [NULL @ 0x7feaec2c7e40] Unable to parse option value "dct8x8" [NULL @ 0x7feaec2c7e40] [Eval @ 0x7feaf32ce310] Invalid chars '.6' at the end of expression '0.6' [NULL @ 0x7feaec2c7e40] Unable to parse option value "0.6"
[NULL @ 0x7feaec2c9240] [Eval @ 0x7feaf32ce780] Undefined constant or missing '(' in 'dct8x8' [NULL @ 0x7feaec2c9240] Unable to parse option value "dct8x8" [libx264 @ 0x7feaec2c7e40] interlace + weightp is not implemented


Maybe not all is lost just yet...

I searched for "Undefined constant or missing '(' in 'dct8x8'" and got some useful hits. Among others was this one:

http://www.kdenlive.org/mantis/view.php?id=3006

What version of ffmpeg answers when you type 'ffmpeg -version'. Post the entire output.
Next, verify where ffmpeg is running by typing 'which ffmpeg'. Also post the output of 'echo $PATH'.
Your render script should be running the ffmpeg in /home/r/kdenlive/2050416/bin
rulet111
Registered Member
Posts
30
Karma
0

Re: Rendering with h264 crash

Mon Apr 21, 2014 6:02 am
Here is ffmpeg output:

r@prime:~/kdenlive/20140420/bin$ ./ffmpeg
ffmpeg version N-62579-gde9cd58 Copyright (c) 2000-2014 the FFmpeg developers
built on Apr 20 2014 21:28:09 with gcc 4.8 (Debian 4.8.2-16)
configuration: --prefix=/home/r/kdenlive/20140420 --disable-doc --disable-network --disable-ffserver --enable-gpl --enable-version3 --enable-shared --enable-debug --disable-stripping --enable-pthreads --enable-runtime-cpudetect --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-libx264 --enable-libvpx
libavutil 52. 77.100 / 52. 77.100
libavcodec 55. 58.105 / 55. 58.105
libavformat 55. 37.101 / 55. 37.101
libavdevice 55. 13.100 / 55. 13.100
libavfilter 4. 4.100 / 4. 4.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
r@prime:~/kdenlive/20140420/bin$

ffmpeg is not instlled as a system wide.

r@prime:/$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
r@prime:/$

By that link which you gave it is written at 2013-03-21 that "fixed with latest patch of mlt", but I used compilation script just yesterday.
User avatar
Steve Guilford
Registered Member
Posts
207
Karma
0

Re: Rendering with h264 crash

Mon Apr 21, 2014 3:41 pm
Well that idea didn't pan out.

Where does KdenLive think it's running FFMpeg from? You can see by going to Settings-->Config-Kdenlive and clicking on the Environment icon.

Just to be certain, modify your render script w/

export $PATH=/home/r/kdenlive/20140420/bin:$PATH

before the $RENDER $PARAMETERS line and give it one more try...
rulet111
Registered Member
Posts
30
Karma
0

Re: Rendering with h264 crash

Mon Apr 21, 2014 10:02 pm
Steve Guilford wrote:Well that idea didn't pan out.

Where does KdenLive think it's running FFMpeg from? You can see by going to Settings-->Config-Kdenlive and clicking on the Environment icon.

Just to be certain, modify your render script w/

export $PATH=/home/r/kdenlive/20140420/bin:$PATH

before the $RENDER $PARAMETERS line and give it one more try...


Everything is ok in "environment"
When I tried export $PATH=/home/r/kdenlive/20140422/bin:$PATH (22 is just because I compiled last time yesterday)
and run the script it waits for something and that's it.
User avatar
Steve Guilford
Registered Member
Posts
207
Karma
0

Re: Rendering with h264 crash

Mon Apr 21, 2014 11:13 pm
rulet111 wrote: Everything is ok in "environment"
When I tried export $PATH=/home/r/kdenlive/20140422/bin:$PATH (22 is just because I compiled last time yesterday)
and run the script it waits for something and that's it.


So KdenLive thinks FFMpeg is in /home/r/kdenlive/20140422/bin ?

At least it did something different.

Can you try running the script from the command line / Konsole in order to see if it prints out anything useful?
rulet111
Registered Member
Posts
30
Karma
0

Re: Rendering with h264 crash

Tue Apr 22, 2014 7:49 am
Steve Guilford wrote:
rulet111 wrote: Everything is ok in "environment"
When I tried export $PATH=/home/r/kdenlive/20140422/bin:$PATH (22 is just because I compiled last time yesterday)
and run the script it waits for something and that's it.


So KdenLive thinks FFMpeg is in /home/r/kdenlive/20140422/bin ?

At least it did something different.

Can you try running the script from the command line / Konsole in order to see if it prints out anything useful?


Well, of course kdenlive thinks that ffmpeg is /home/r/kdenlive/20140422/bin(I rebuilded it yesterday), because ffmpeg is there if your are using the building script for kdenlive which is from here. It is installation in home directory. So, seems like you haven't used that script, but something different.

Here is output using modifed rendering script as you said:

r@prime:~/kdenlive/scripts$ ./script001.sh
./script001.sh: 8: export: /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games: bad variable name
r@prime:~/kdenlive/scripts$
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Rendering with h264 crash

Tue Apr 22, 2014 9:17 am
The following line replacement should be used instead:
Code: Select all
export PATH="/home/r/kdenlive/20140422/bin:$PATH"


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
rulet111
Registered Member
Posts
30
Karma
0

Re: Rendering with h264 crash

Tue Apr 22, 2014 9:37 am
bcooksley wrote:The following line replacement should be used instead:
Code: Select all
export PATH="/home/r/kdenlive/20140422/bin:$PATH"


Yes, of course, I changed the number before(22) and added "" as you say but it still gives an error:

Rendering of /home/r/kdenlive/untitled.mp4 crashed
[NULL @ 0x7f70000c7dc0] [Eval @ 0x7f7007682310] Undefined constant or missing '(' in 'dct8x8' [NULL @ 0x7f70000c7dc0] Unable to parse option value "dct8x8"
[NULL @ 0x7f70000c7dc0] [Eval @ 0x7f7007682310] Invalid chars '.6' at the end of expression '0.6' [NULL @ 0x7f70000c7dc0] Unable to parse option value "0.6"
[NULL @ 0x7f70000c91c0] [Eval @ 0x7f7007682780] Undefined constant or missing '(' in 'dct8x8'
[NULL @ 0x7f70000c91c0] Unable to parse option value "dct8x8"
[libx264 @ 0x7f70000c7dc0] interlace + weightp is not implemented

And in terminal:

r@prime:~/kdenlive/scripts$ ./script001.sh
//STARTING RENDERING: false , false , "/home/r/kdenlive/20140422/bin/melt" , "hdv_1080_50i" , "avformat" , "-" , "/home/r/kdenlive/scripts/script001.sh.mlt" , "/home/r/kdenlive/untitled.mp4" , () , ("f=mp4", "hq=1", "acodec=aac", "ab=384k", "ar=48000", "pix_fmt=yuv420p", "vcodec=libx264", "minrate=0", "vb=12000k", "g=250", "bf=3", "b_strategy=1", "subcmp=2", "cmp=2", "coder=1", "flags=+loop", "flags2=dct8x8", "qmax=51", "subq=7", "qmin=10", "qcomp=0.6", "qdiff=4", "trellis=1", "aspect=@16/9", "threads=1", "real_time=-1") , -1 , -1
Started render process: "/home/r/kdenlive/20140422/bin/melt" "/home/r/kdenlive/scripts/script001.sh.mlt -profile hdv_1080_50i -consumer avformat:/home/r/kdenlive/untitled.mp4 progress=1 f=mp4 hq=1 acodec=aac ab=384k ar=48000 pix_fmt=yuv420p vcodec=libx264 minrate=0 vb=12000k g=250 bf=3 b_strategy=1 subcmp=2 cmp=2 coder=1 flags=+loop flags2=dct8x8 qmax=51 subq=7 qmin=10 qcomp=0.6 qdiff=4 trellis=1 aspect=@16/9 threads=1 real_time=-1"
"Rendering of /home/r/kdenlive/untitled.mp4 aborted, resulting video will probably be corrupted."
r@prime:~/kdenlive/scripts$
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Rendering with h264 crash

Tue Apr 22, 2014 10:36 am
Is this a 32 bit of 64 bit system? If it is 64 bit, then you probably want to use this LD_LIBRARY_PATH variable instead:
Code: Select all
export LD_LIBRARY_PATH=/home/r/kdenlive/20140416/lib64/


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
rulet111
Registered Member
Posts
30
Karma
0

Re: Rendering with h264 crash

Tue Apr 22, 2014 11:24 am
bcooksley wrote:Is this a 32 bit of 64 bit system? If it is 64 bit, then you probably want to use this LD_LIBRARY_PATH variable instead:
Code: Select all
export LD_LIBRARY_PATH=/home/r/kdenlive/20140416/lib64/


Yes, it is 64bit sysstem but threre is no lib64 directory after compiling using that script:

r@prime:~/kdenlive/20140422$ ls -l
итого 28
drwxr-xr-x 2 r r 4096 Апр 22 00:26 bin
drwxr-xr-x 15 r r 4096 Апр 22 00:24 include
drwxr-xr-x 6 r r 4096 Апр 22 00:26 lib
drwxr-xr-x 16 r r 4096 Апр 22 00:26 share
-rwxr-xr-x 1 r r 9230 Апр 22 00:26 start-kdenlive
r@prime:~/kdenlive/20140422$

So, f.e. using this variant of the script gives an error as before:
Rendering of /home/r/kdenlive/1.mp4 crashed
[NULL @ 0x7f43840c7dc0] [Eval @ 0x7f438aad4310] Undefined constant or missing '(' in 'dct8x8' [NULL @ 0x7f43840c7dc0] Unable to parse option value "dct8x8" [NULL @ 0x7f43840c7dc0] [Eval @ 0x7f438aad4310] Invalid chars '.6' at the end of expression '0.6' [NULL @ 0x7f43840c7dc0] Unable to parse option value "0.6" [NULL @ 0x7f43840c91c0] [Eval @ 0x7f438aad4780] Undefined constant or missing '(' in 'dct8x8' [NULL @ 0x7f43840c91c0] Unable to parse option value "dct8x8" [libx264 @ 0x7f43840c7dc0] interlace + weightp is not implemented

The script is:

#! /bin/sh

SOURCE="/home/r/kdenlive/scripts/script001.sh.mlt"
TARGET="/home/r/kdenlive/untitled.mp4"
RENDERER="/home/r/kdenlive/20140422/bin/kdenlive_render"
MELT="/home/r/kdenlive/20140422/bin/melt"
PARAMETERS="-pid:4573 $MELT hdv_1080_50i avformat - $SOURCE $TARGET f=mp4 hq=1 acodec=aac ab=384k ar=48000 pix_fmt=yuv420p vcodec=libx264 minrate=0 vb=12000k g=250 bf=3 b_strategy=1 subcmp=2 cmp=2 coder=1 flags=+loop flags2=dct8x8 qmax=51 subq=7 qmin=10 qcomp=0.6 qdiff=4 trellis=1 aspect=@16/9 pass=1 threads=1 real_time=-1"
export LD_LIBRARY_PATH=/home/r/kdenlive/20140422/lib
$RENDERER $PARAMETERS
User avatar
Steve Guilford
Registered Member
Posts
207
Karma
0

Re: Rendering with h264 crash

Tue Apr 22, 2014 4:08 pm
rulet111 wrote:Well, of course kdenlive thinks that ffmpeg is /home/r/kdenlive/20140422/bin(I rebuilded it yesterday), because ffmpeg is there if your are using the building script for kdenlive which is from here. It is installation in home directory. So, seems like you haven't used that script, but something different.

Here is output using modifed rendering script as you said:

r@prime:~/kdenlive/scripts$ ./script001.sh
./script001.sh: 8: export: /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games: bad variable name
r@prime:~/kdenlive/scripts$


I use that build script too. I'm on Ubu 12.04 LTS.

I'm out of ideas at the moment. Sorry I could help you find the answer. Maybe the MLT group can help.


Bookmarks



Who is online

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