Please make .kdenlive part of the user interface and try keep it scriptable and simple.
In too many words:
I'm trying to work with a number of video formats and kdenlive.
It's been quite a ride, but now I think I know how to make various formats editable in kdenlive for progressive 720p output:
- deinterlace all dv videos with ffmpeg before editing:
ffmpeg -i raw.dv -target pal-dv -deinterlace -sameq editable.avi
- deinterlace and convert all AVCHD .mts files to mpeg4 avi's:
ffmpeg -i $f -s hd720 -acodec pcm_s16le -ac 2 -vcodec mpeg4 -sameq -deinterlace editable.avi
- use MJPEG 720p videos as is
The problem now is, that all the editing I did with bad file formats like interleaved and fps wrongly set to 60000 videos is now going to waste.
Problem 1: changing fps
My timeline is a fast paced 8 minute clip. Some of the edited MPEG4 clips had fps set to 60000 (mencoder doesn't like fps 60000/1001) which seemed play with original speed in editor but not after rendering. I re-created these MPEG4 clips from the original AVCHD .MTS files with correct fps. The clips are loaded and seem to play at correct speed in kdenlive editor, but the project file still states the files to be at 60000 fps.
Can I safely remove the source_fps property from the .kdenlive file?
Problem 2: changing clip name
I deinterlaced all dv material which kdenlive wasn't able to deinterlace for me, but I also changed the clip file names.
Can I just change the clip file name to point to *_deint.avi instead of .dv?
There's another problem, ffmpeg creates 48kHz audio while my cheap Sony camera used 32kHz audio stream.
Can I just change the meta.media.1.codec.sample_rate to 48000, or can kdenlive somehow re-read the properties.
The project takes 20 minutes to load, a few hundred clips and still fotos. It seems reading clip properties and thumbnails takes all this time. But still I'd like kdenlive to read clip properties from the clips, and not cache them in the project file. This would allow using editing sources at say VGA resolution and rendering sources at 1024i50 resolution. Also, loading thumbnails effectively makes the GUI non-responsive, I can't really do anything on the project before it's done. Progress bar would be nice.