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

Rendering error in Kdenlive/ffmpeg

Tags: None
(comma "," separated)
smithmark
Registered Member
Posts
8
Karma
0

Rendering error in Kdenlive/ffmpeg

Sat Jul 18, 2015 8:34 am
Hello,

I am using Kdenlive 0.9.10 in Ubuntu 12.04 to render a video project from a group of .avi DV video-clips. If I select mp4 H.264/AAC High Profile as output format, Kdenlive crashes after a few seconds with the following error:
Code: Select all
Rendering of /kdenlive/myvideo.mp4 crashed
medium: [ ref=1, _mlt_properties_load=medium, __mlt_properties_load=medium ] [mp4 muxer @ 0x7f46f400bae0] [Eval @ 0x7f46f96c7450] Undefined constant or missing '(' in 'faststart' [mp4 muxer @ 0x7f46f400bae0] Unable to parse option value "faststart" [dvvideo @ 0x7f44e7ca8720] AC EOB marker is absent pos=64 [dvvideo @ 0x7f44e7ca8720] AC EOB marker is absent pos=64 [dvvideo @ 0x7f44e7ca8720] AC EOB marker is absent pos=64 [dvvideo @ 0x7f44e7ca8720] AC EOB marker is absent pos=64 [dvvideo @ 0x7f44e7ca8720] AC EOB marker is absent pos=65 [dvvideo @ 0x7f44e7ca8720] AC EOB marker is absent pos=64 [dvvideo @ 0x7f44e7ca8720] AC EOB marker is absent pos=66 [dvvideo @ 0x7f44e7ca8720] AC EOB marker is absent pos=70 [dvvideo @ 0x7f44e7ca8720] AC EOB marker is absent pos=66 [dvvideo @ 0x7f44e7ca8720] AC EOB marker is absent pos=64

If I pick Matroska as the output format, Kdenlive still crashes with the following error:
Code: Select all
Rendering of /kdenlive/myvideo.mkv crashed
[dvvideo @ 0x7f54beeea8c0] AC EOB marker is absent pos=65 [dvvideo @ 0x7f54beeea8c0] AC EOB marker is absent pos=66
[dvvideo @ 0x7f54beeea8c0] AC EOB marker is absent pos=64 [dvvideo @ 0x7f54beeea8c0] AC EOB marker is absent pos=64 [dvvideo @ 0x7f54beeea8c0] AC EOB marker is absent pos=64
[dvvideo @ 0x7f54beeea8c0] AC EOB marker is absent pos=64 [dvvideo @ 0x7f54beeea8c0] AC EOB marker is absent pos=64
[dvvideo @ 0x7f54beeea8c0] AC EOB marker is absent pos=70
[dvvideo @ 0x7f54beeea8c0] AC EOB marker is absent pos=64 [dvvideo @ 0x7f54beeea8c0] AC EOB marker is absent pos=66

I browsed the Internet and found out that this error could be due to ffmpeg coming across a sort of index error in the DV source files:
https://bugs.kdenlive.org/view.php?id=1592

If that is indeed the cause of my troubles, someone suggested to use mencoder to repair the "broken" source .avi file:
https://superuser.com/questions/709313/ ... ly-in-linu
http://www.kahunaburger.com/2010/01/30/ ... -mencoder/

Unfortunately, I have tens of short .avi clips in my Kdenlive project and I have no idea which one is causing this crash.
Is there a way to exactly pinpoint the problematic clips? Or can anyone suggest a mencoder-based single script or terminal command to parse and fix all "broken" .avi files in my project folder at once?

Thank you very much for your help.
User avatar
ttguy
Moderator
Posts
1152
Karma
6
OS
Do you get the crash with just one .avi file in the project ?

Because my suspicion is that this is a ffmpeg/avconv version issue.

How did you install kdenlive ?
What version of libavconv or ffmpeg do you have?
smithmark
Registered Member
Posts
8
Karma
0
I made a test with a handful of clips before editing the whole 17-minute video, and Kdenlive rendered it without errors.
I think I installed Kdenlive using the following command, but I do not remember for sure:
Code: Select all
sudo add-apt-repository ppa:sunab/kdenlive-release && sudo apt-get update && sudo apt-get install kdenlive

ffmpeg version is:
Code: Select all
ffmpeg version 0.8.17-4:0.8.17-0ubuntu0.12.04.1, Copyright (c) 2000-2014 the Libav developers
  built on Mar 16 2015 13:26:50 with gcc 4.6.3

libavconv is not installed.
Thanks for your help.
User avatar
ttguy
Moderator
Posts
1152
Karma
6
OS
The package I should have asked about is libav-tools not libavconv. libav-tools supplies the command line tool avconv.

And sunabs builds are against the libav-tools version of the video utilities.

You are using sunabs repository for kdenlive. Do you also have his builds of mlt and frei0r? Because missmatching kdenlive and builds of mlt and or frei0r can run you into issues.

If you want to upgrade mlt and or frei0r you should use Sunabs old repository - because it has the KF5 versions of the libraries https://launchpad.net/~sunab/+archive/u ... elease-old

https://userbase.kde.org/Kdenlive/Manua ... stallation
smithmark
Registered Member
Posts
8
Karma
0
I checked in Synaptic and found that I am up-to-date with all the latest versions available of the packages you mentioned:
Code: Select all
frei0r-plugins
1.4.0+git20140826.72e51041-0ubuntu0~sunab~precise1
melt
0.9.3+git20140926.bbf724b6-0ubuntu0~sunab~precise1
libvidstab
2:0.98b-0ubuntu0~sunab~precise1

So I guess it must be something else then.
Someone in the French forum flagged this problem a while ago, but somehow he managed to pinpoint the troublesome clips.
viewtopic.php?f=267&t=118364&p=296296
I posted a request for help there, but I have not yet received an answer.
I would like to try to parse and fix the clips with mencoder, but I am no expert in Linux command line scripts.
By any chance, can you suggest a mencoder-based single script or terminal command to parse and fix all "broken" .avi files in my project folder at once? Something based on what was suggested here for a single clip, but modified to parse and fix the whole set of clips (as I cannot pinpoint which one is causing the crash):
http://www.kahunaburger.com/2010/01/30/ ... -mencoder/
Thank you.
User avatar
ttguy
Moderator
Posts
1152
Karma
6
OS
Use a spreadsheet program to write the script for you. If this is a one off then this is the easyist way to do it.

1. copy a directory listing of all yourfilenames into one column on the spreadsheet
2. set up a formula to construct strings of the form mencoder -idx in.avi -ovc copy -oac copy -o out.avi
eg use a formula like ="mencoder -idx" & A1 & "-ovc copy -oac copy -o " & A1 & "2.avi"

3. Fill down
4. copy the column with the formuale in it to a text file and save it as script.sh file
5. using nautilus to set file permissons on script.sh to make it executable as a program (or run chmod u+x script.sh at command line)

6. run the script type this in a terminal
./script.sh
vpinon
KDE Developer
Posts
708
Karma
6
OS
one-liner sh script (with avconv, using mov container, usually good for editing):
Code: Select all
for i in *.avi ; do avconv -i $i -c copy ${i%%.avi}.mov ; done

isn't there a "transcode" clip job for simply remuxing a file in Kdenlive (can't check I don't have it running here...)
smithmark
Registered Member
Posts
8
Karma
0
Thank you both for your suggestions.
I'd rather use a filename-independent script solution rather than harvesting file names, as I have lots of video projects in the pipeline and hundreds of DV .avi clips to process and render.
vpinon wrote:one-liner sh script (with avconv, using mov container, usually good for editing):
Code: Select all
for i in *.avi ; do avconv -i $i -c copy ${i%%.avi}.mov ; done

isn't there a "transcode" clip job for simply remuxing a file in Kdenlive (can't check I don't have it running here...)

I tried the transcode to DVD PAL 4:3 option in Kdenlive on a pair of clips and it froze the window. I had to force quit. To me, transcoding means converting to a different video format. Is transcoding supposed to also fix broken video clips in the process? Is avconv the same as mencoder for this purpose?
I run the one-line script that vpinon suggested in a folder with 4 .avi clips and got the following error: "*.avi: No such file or directory"
vpinon
KDE Developer
Posts
708
Karma
6
OS
do you type the command in right folder?
are you files named *.avi or *.AVI?
I guess you might want to update also the project files, here is a sample command to search-replace extension (could do it in any editor as kdenlive files are plain text):
Code: Select all
sed -i 's/.avi/.mov/g' projectname.kdenlive
smithmark
Registered Member
Posts
8
Karma
0
It's my fault, I used the wrong command to run the script. Using sh the script works, but it stops after one clip without any error message, although my test folder contains four .avi files.
I also have a space in all my clip filenames, so I could use a modified version that accepts filenames with spaces.
Thanks again.
smithmark
Registered Member
Posts
8
Karma
0
Hi,
any chance for a modified version of the script that doesn't stop at the first clip and works with spaces in the filename?
Thanks and regards.
vpinon
KDE Developer
Posts
708
Karma
6
OS
with quotes to handle spaces ; does it still stop after 1st?
Code: Select all
for i in *.avi ; do avconv -i "$i" -c copy "${i%%.avi}.mov" ; done
smithmark
Registered Member
Posts
8
Karma
0
Thanks for your quick reply.
Yes, this version of the script works on multiple files with a space in the name.
After processing all the clips and renaming the clip extension in the kdenlive project file, I re-run the rendering, but it failed again, with the same type of message:

Code: Select all
[dvvideo @ 0x7f5d3fde2ba0] AC EOB marker is absent pos=65 [dvvideo @ 0x7f5d3fde2ba0] AC EOB marker is absent pos=64
[dvvideo @ 0x7f5d3fde2ba0] AC EOB marker is absent pos=64 [dvvideo @ 0x7f5d3fde2ba0] AC EOB marker is absent pos=64 [dvvideo @ 0x7f5d3fde2ba0] AC EOB marker is absent pos=64 [dvvideo @ 0x7f5d3fde2ba0] AC EOB marker is absent pos=66 [dvvideo @ 0x7f5d3fde2ba0] AC EOB marker is absent pos=70
[dvvideo @ 0x7f5d3fde2ba0] AC EOB marker is absent pos=66 [dvvideo @ 0x7f5d3fde2ba0] AC EOB marker is absent pos=64 [dvvideo @ 0x7f5d3fde2ba0] AC EOB marker is absent pos=64


So I guess now I am stuck again. I only wonder if a script based on mencoder, instead of avconv, could work. After all it's mencoder that was presented as a possible solution in the links I posted above.
Most people are probably fine with Kdenlive, but for me it has been a source of disappointment and a waste of time.
I can only hope it will work when I upgrade to the next LTS release of Ubuntu, but I am not very hopeful.
vpinon
KDE Developer
Posts
708
Karma
6
OS
Oh yes 12.04 ships a very old libav version... and there are even no more daily builds (embedding latest ffmpeg) to circumvent that.
However there were unfortunate libav/mlt version mix in 14.04, so upgrading might bring you some other problems (audio shift appearing with some codecs), you would then have to use PPA for mlt again and that should be OK.
Using 14.10 or 15.04 would be also a good choice, with not more updates annoyance (nor security holes) than outdated 12.04 ;-)


Bookmarks



Who is online

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