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

Render aborts immediately

Tags: None
(comma "," separated)
dalesc
Registered Member
Posts
17
Karma
0
OS

Render aborts immediately

Mon Mar 06, 2017 10:29 am
I've copied this here because I may have posted it in the wrong forum before.

Opensuse Leap 42.2
Kdenlive 16.08.2
libmlt6-6.4.1-79.2.x86_64

When I try to render anything it aborts immediately with:

"Rendering of /home/user/video/untitled.mp4 aborted, resulting video will probably be corrupted."

I've tried with the simplest project. It has just a five second colour clip and I've tried various output formats and sizes too.

If I save and trace the rendering script, the output is:

dale@linux-9blt:~/tempvideo> bash -x ./scripts/script001.sh
+ RENDERER=/usr/bin/kdenlive_render
+ MELT=/usr/bin/melt6
+ SOURCE_0=file:///home/dale/tempvideo/scripts/script001.sh.mlt
+ TARGET_0=file:///home/dale/tempvideo/untitled.webm
+ PARAMETERS_0='-pid:25010 /usr/bin/melt6 atsc_1080p_30 avformat - file:///home/dale/tempvideo/scripts/script001.sh.mlt file:///home/dale/tempvideo/untitled.webm f=webm vcodec=libvpx acodec=libvorbis crf=23 vb=0 quality=good aq=6 max-intra-rate=1000 cpu-used=4 threads=4 real_time=-1'
+ /usr/bin/kdenlive_render -pid:25010 /usr/bin/melt6 atsc_1080p_30 avformat - file:///home/dale/tempvideo/scripts/script001.sh.mlt file:///home/dale/tempvideo/untitled.webm f=webm vcodec=libvpx acodec=libvorbis crf=23 vb=0 quality=good aq=6 max-intra-rate=1000 cpu-used=4 threads=4 real_time=-1
//STARTING RENDERING: false , false , "/usr/bin/melt6" , "atsc_1080p_30" , "avformat" , "-" , "/home/dale/tempvideo/scripts/script001.sh.mlt" , "/home/dale/tempvideo/untitled.webm" , () , ("f=webm", "vcodec=libvpx", "acodec=libvorbis", "crf=23", "vb=0", "quality=good", "aq=6", "max-intra-rate=1000", "cpu-used=4", "threads=4", "real_time=-1") , -1 , -1

There's something fundamentally wrong here. I think the renderer is barely getting started and there's no useful diagnostic info.
I edited the render script and put strace on the front on the render command but the output from that is quite short (393 lines) with no obvious errors in it. However, I'm not a developer so I can't be sure what should be there.

I'm really keen to progress this!

Any help much appreciated.
LilZebra
Registered Member
Posts
26
Karma
0
OS

Re: Render aborts immediately

Mon Mar 06, 2017 11:54 am
Easiest thing to do is search for your 'kdenliverc' file. Rename it to 'kdenliverc.old' and restart Kdenlive. It'll auto-generate a new file and that may fix the problem.

I had this happen most recently from the "ThumbCreator" missing in KDE causing Kdenlive no longer working and when I put in clips not the Library, Kdenlive stopped working properly -- renders would start and stop immediately like in your situation and Add Clip... file manager would go into a wait state.


Kdenlive 17.12.3 MLT 6.4.1, Qt 5.6.2
Fedora 27 GNOME 3.26
dalesc
Registered Member
Posts
17
Karma
0
OS

Re: Render aborts immediately

Mon Mar 06, 2017 1:01 pm
LilZebra wrote:Easiest thing to do is search for your 'kdenliverc' file. Rename it to 'kdenliverc.old' and restart Kdenlive. It'll auto-generate a new file and that may fix the problem.

I had this happen most recently from the "ThumbCreator" missing in KDE causing Kdenlive no longer working and when I put in clips not the Library, Kdenlive stopped working properly -- renders would start and stop immediately like in your situation and Add Clip... file manager would go into a wait state.


Thanks for your help but, unfortunately, that hasn't made any difference.

Rendering still aborts immediately so exactly the same problem.
vpinon
KDE Developer
Posts
708
Karma
6
OS

Re: Render aborts immediately

Mon Mar 06, 2017 2:51 pm
From your log I find surprising to see parameter "vb=0" (video bitrate). Is it a custom render profile?
You can try to bypass kdenlive_render (wrapper to show the render progress in UI) and directly call melt, with something like:
Code: Select all
/usr/bin/melt6 \
-profile atsc_1080p_30 \
/home/dale/tempvideo/scripts/script001.sh.mlt \
-consumer avformat:/home/dale/tempvideo/untitled.webm \
f=webm vcodec=libvpx acodec=libvorbis crf=23 quality=good aq=6 max-intra-rate=1000 cpu-used=4 threads=4 \
real_time=-1 progress=1

And melt should tell you everything it does...
dalesc
Registered Member
Posts
17
Karma
0
OS

Re: Render aborts immediately

Mon Mar 06, 2017 7:06 pm
vpinon wrote:From your log I find surprising to see parameter "vb=0" (video bitrate). Is it a custom render profile?
You can try to bypass kdenlive_render (wrapper to show the render progress in UI) and directly call melt, with something like:
Code: Select all
/usr/bin/melt6 \
-profile atsc_1080p_30 \
/home/dale/tempvideo/scripts/script001.sh.mlt \
-consumer avformat:/home/dale/tempvideo/untitled.webm \
f=webm vcodec=libvpx acodec=libvorbis crf=23 quality=good aq=6 max-intra-rate=1000 cpu-used=4 threads=4 \
real_time=-1 progress=1

And melt should tell you everything it does...


Thanks for this.

It seg faults immediately. I tried /usr/bin/melt6 with no args and it still seg faults. (There's a dump.)

/usr/bin/melt on another system produces usage help when called with no args.

I'm wondering if I have a module version conflict but I don't know how to determine that. I thought RPM was supposed to look after that.

I appreciate your help.
vpinon
KDE Developer
Posts
708
Karma
6
OS

Re: Render aborts immediately

Tue Mar 07, 2017 6:14 am
Then obviously your MLT install is faulty.
I've never used much OpenSuse or RPM-based distro; you could uninstall libmlt6 and everything depending on it (cleaning config files), and maybe frei0r too, then reinstall Kdenlive that will pull its dependencies...
If you are interested in investing more (?) you can run "gdb /usr/bin/melt6" then "backtrace full" after the segfault if you can see which module loading fails...
capslock
Registered Member
Posts
699
Karma
4
OS

Re: Render aborts immediately

Tue Mar 07, 2017 6:49 am
Another thing to look at: kdenlive 16.08.2 has most probably been built with mlt 6.2 (version 6.4 came 2016-11).
Which repos on openSuse are you using? openSuse or packman? I found that packman (kdenlive, mlt and ffmeg pulled from there) gives least errors.
dalesc
Registered Member
Posts
17
Karma
0
OS

Re: Render aborts immediately

Tue Mar 07, 2017 10:50 pm
Thank you for the suggestions. I've not been around much today but I'll investigate tomorrow.
dalesc
Registered Member
Posts
17
Karma
0
OS

Re: Render aborts immediately

Wed Mar 08, 2017 11:41 am
vpinon wrote:Then obviously your MLT install is faulty.
I've never used much OpenSuse or RPM-based distro; you could uninstall libmlt6 and everything depending on it (cleaning config files), and maybe frei0r too, then reinstall Kdenlive that will pull its dependencies...
If you are interested in investing more (?) you can run "gdb /usr/bin/melt6" then "backtrace full" after the segfault if you can see which module loading fails...


This is getting more and more strange.
I uninstalled everything melt, melt6 and Kdenlive related and reinstalled them all from packman.

melt, melt6 both still segfault immediately.

However, if I run them in dbg, they run OK. (WTF?) This might suggest something obvious to a developer but not to me, I'm afraid.

dale@linux-9blt:~> gdb /usr/bin/melt
GNU gdb (GDB; openSUSE Leap 42.2) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.opensuse.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/melt...Reading symbols from /usr/lib/debug/usr/bin/melt6.debug...done.
done.
(gdb) run
Starting program: /usr/bin/melt
Missing separate debuginfos, use: zypper install melt-debuginfo-6.2.0-5.3.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
No LADSPA plugins were found!

Check your LADSPA_PATH environment variable.
Usage: melt [options] [producer [name=value]* ]+
Options:
-attach filter[:arg] [name=value]* Attach a filter to the output
-attach-cut filter[:arg] [name=value]* Attach a filter to a cut
-attach-track filter[:arg] [name=value]* Attach a filter to a track
-attach-clip filter[:arg] [name=value]* Attach a filter to a producer
-audio-track | -hide-video Add an audio-only track
-blank frames Add blank silence to a track
-consumer id[:arg] [name=value]* Set the consumer (sink)
-debug Set the logging level to debug
-filter filter[:arg] [name=value]* Add a filter to the current track
-getc Get keyboard input using getc
-group [name=value]* Apply properties repeatedly
-help Show this message
-jack Enable JACK transport synchronization
-join clips Join multiple clips into one cut
-mix length Add a mix between the last two cuts
-mixer transition Add a transition to the mix
-null-track | -hide-track Add a hidden track
-profile name Set the processing settings
-progress Display progress along with position
-remove Remove the most recent cut
-repeat times Repeat the last cut
-query List all of the registered services
-query "consumers" | "consumer"=id List consumers or show info about one
-query "filters" | "filter"=id List filters or show info about one
-query "producers" | "producer"=id List producers or show info about one
-query "transitions" | "transition"=id List transitions, show info about one
-query "profiles" | "profile"=id List profiles, show info about one
-query "presets" | "preset"=id List presets, show info about one
-query "formats" List audio/video formats
-query "audio_codecs" List audio codecs
-query "video_codecs" List video codecs
-serialise [filename] Write the commands to a text file
-silent Do not display position/transport
-split relative-frame Split the last cut into two cuts
-swap Rearrange the last two cuts
-track Add a track
-transition id[:arg] [name=value]* Add a transition
-verbose Set the logging level to verbose
-version Show the version and copyright
-video-track | -hide-audio Add a video-only track
For more help: <http://www.mltframework.org/>
[Inferior 1 (process 27639) exited normally]
(gdb) q
dale@linux-9blt:~>
dalesc
Registered Member
Posts
17
Karma
0
OS

Re: Render aborts immediately

Wed Mar 08, 2017 11:43 am
capslock wrote:Another thing to look at: kdenlive 16.08.2 has most probably been built with mlt 6.2 (version 6.4 came 2016-11).
Which repos on openSuse are you using? openSuse or packman? I found that packman (kdenlive, mlt and ffmeg pulled from there) gives least errors.


I've reinstalled everything that appears to be linked to Kdenlive and Melt/Melt6 and made sure they came from Packman.
User avatar
farid
Registered Member
Posts
316
Karma
2
OS

Re: Render aborts immediately

Wed Mar 08, 2017 3:52 pm
dalesc wrote:
capslock wrote:Another thing to look at: kdenlive 16.08.2 has most probably been built with mlt 6.2 (version 6.4 came 2016-11).
Which repos on openSuse are you using? openSuse or packman? I found that packman (kdenlive, mlt and ffmeg pulled from there) gives least errors.


I've reinstalled everything that appears to be linked to Kdenlive and Melt/Melt6 and made sure they came from Packman.


In our website the install instructions are:

zypper install kdenlive5

Could you test that? Not very familiar with the differences...


vpinon
KDE Developer
Posts
708
Karma
6
OS

Re: Render aborts immediately

Wed Mar 08, 2017 4:26 pm
I suppose gdb run on melt6 is the same?
Is the called melt executable in /usr/bin/ or maybe pointing to somewhere else?
I don't see how to help much more...
dalesc
Registered Member
Posts
17
Karma
0
OS

Re: Render aborts immediately

Wed Mar 08, 2017 8:50 pm
vpinon wrote:I suppose gdb run on melt6 is the same?
Is the called melt executable in /usr/bin/ or maybe pointing to somewhere else?
I don't see how to help much more...


It seems that melt is just a symlink to melt6 so they are the same thing.

Code: Select all
dale@linux-9blt:~> ls -la /usr/bin/melt
lrwxrwxrwx 1 root root 5 Mar  8 20:31 /usr/bin/melt -> melt6                                                         
dale@linux-9blt:~> ls -la /usr/bin/melt6                                                                             
-rwxr-xr-x 1 root root 31616 Dec 15 11:58 /usr/bin/melt6                                                             
dale@linux-9blt:~>


They are two separate packages but you can't install one without the other. (RPM dependency.)

Code: Select all
dale@linux-9blt:~> melt6   
Segmentation fault (core dumped)
dale@linux-9blt:~> gdb melt6
GNU gdb (GDB; openSUSE Leap 42.2) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.opensuse.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from melt6...Reading symbols from /usr/lib/debug/usr/bin/melt6.debug...done.
done.
(gdb) run
Starting program: /usr/bin/melt6
Missing separate debuginfos, use: zypper install glibc-debuginfo-2.22-3.7.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Usage: melt6 [options] [producer [name=value]* ]+
Options:
  -attach filter[:arg] [name=value]*       Attach a filter to the output
  -attach-cut filter[:arg] [name=value]*   Attach a filter to a cut
  -attach-track filter[:arg] [name=value]* Attach a filter to a track
  -attach-clip filter[:arg] [name=value]*  Attach a filter to a producer
  -audio-track | -hide-video               Add an audio-only track
  -blank frames                            Add blank silence to a track
  -consumer id[:arg] [name=value]*         Set the consumer (sink)
  -debug                                   Set the logging level to debug
  -filter filter[:arg] [name=value]*       Add a filter to the current track
  -getc                                    Get keyboard input using getc
  -group [name=value]*                     Apply properties repeatedly
  -help                                    Show this message
  -jack                                    Enable JACK transport synchronization
  -join clips                              Join multiple clips into one cut
  -mix length                              Add a mix between the last two cuts
  -mixer transition                        Add a transition to the mix
  -null-track | -hide-track                Add a hidden track
  -profile name                            Set the processing settings
  -progress                                Display progress along with position
  -remove                                  Remove the most recent cut
  -repeat times                            Repeat the last cut
  -query                                   List all of the registered services
  -query "consumers" | "consumer"=id       List consumers or show info about one
  -query "filters" | "filter"=id           List filters or show info about one
  -query "producers" | "producer"=id       List producers or show info about one
  -query "transitions" | "transition"=id   List transitions, show info about one
  -query "profiles" | "profile"=id         List profiles, show info about one
  -query "presets" | "preset"=id           List presets, show info about one
  -query "formats"                         List audio/video formats
  -query "audio_codecs"                    List audio codecs
  -query "video_codecs"                    List video codecs
  -serialise [filename]                    Write the commands to a text file
  -silent                                  Do not display position/transport
  -split relative-frame                    Split the last cut into two cuts
  -swap                                    Rearrange the last two cuts
  -track                                   Add a track
  -transition id[:arg] [name=value]*       Add a transition
  -verbose                                 Set the logging level to verbose
  -version                                 Show the version and copyright
  -video-track | -hide-audio               Add a video-only track
For more help: <http://www.mltframework.org/>
[Inferior 1 (process 8399) exited normally]
Missing separate debuginfos, use: zypper install fontconfig-debuginfo-2.11.1-2.2.x86_64 frei0r-plugins-debuginfo-1.4-8.1.x86_64 fribidi-debuginfo-0.19.2-15.5.x86_64 krb5-etc... etc...
debuginfo-1.2.8-10.1.x86_64
(gdb) quit
dale@linux-9blt:~>


How can a program run under debug but not alone? That's like some evil tease!
dalesc
Registered Member
Posts
17
Karma
0
OS

Re: Render aborts immediately

Wed Mar 08, 2017 8:51 pm
farid wrote:
dalesc wrote:
capslock wrote:Another thing to look at: kdenlive 16.08.2 has most probably been built with mlt 6.2 (version 6.4 came 2016-11).
Which repos on openSuse are you using? openSuse or packman? I found that packman (kdenlive, mlt and ffmeg pulled from there) gives least errors.


I've reinstalled everything that appears to be linked to Kdenlive and Melt/Melt6 and made sure they came from Packman.


In our website the install instructions are:

zypper install kdenlive5

Could you test that? Not very familiar with the differences...


Yep. That's essentially what I'm doing.

Cheers.
LilZebra
Registered Member
Posts
26
Karma
0
OS

Re: Render aborts immediately

Sun May 14, 2017 11:51 am
Code: Select all
Rendering of /home/lilzebra/kdenlive/projects/untitled.mp4 crashed

    Unknown flag: 'p'; Usage: freeze [-cdfvVg] [file | +type ...] -c Write output on stdout, don't remove original. -d If given, melting is done instead. -g Use "greedy" parsing (1.5% worse, 40% faster). -f Forces output file to be generated, even if one already exists, and even if no space is saved by freezeing. -i Image mode. -t Text mode. -v Write freezing statistics. -vv means "draw progress indicator". -V Write version and compilation options.


For the past few months, whenever I updated the codecs gstreamer1-plugins-bad and h264 I could no longer Render to File any video no matter what I chose as a container format.

I used the Software Centre today to upgrade system software and after rebooting, what was once a useable Kdenlive system is now not able to render anything.


Kdenlive 17.12.3 MLT 6.4.1, Qt 5.6.2
Fedora 27 GNOME 3.26


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]