Registered Member
|
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:
If I pick Matroska as the output format, Kdenlive still crashes with the following error:
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. |
Moderator
|
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? |
Registered Member
|
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:
ffmpeg version is:
libavconv is not installed. Thanks for your help. |
Moderator
|
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 |
Registered Member
|
I checked in Synaptic and found that I am up-to-date with all the latest versions available of the packages you mentioned:
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. |
Moderator
|
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 |
KDE Developer
|
one-liner sh script (with avconv, using mov container, usually good for editing):
isn't there a "transcode" clip job for simply remuxing a file in Kdenlive (can't check I don't have it running here...) |
Registered Member
|
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.
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" |
KDE Developer
|
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):
|
Registered Member
|
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. |
Registered Member
|
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. |
KDE Developer
|
with quotes to handle spaces ; does it still stop after 1st?
|
Registered Member
|
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:
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. |
KDE Developer
|
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 |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient