This is not really a Kdenlive issue but perhaps somebody here can help me ... finally I managed to upload my ~450 video clips (AVCHD MTS) into Kdenlive (proxies enabled). Rendering crashes eventually. After some time I found out that it happens always at the same clip. I then remove that clip from the timeline, restart rendering again until at some time later it crashes at yet another clip ...
The clips play well in VLC, but upset Kdenlive when rendering. Rendering in Kdenlive may just stall, or give an error message, e.g.
Rendering of /home/hlan/Desktop/STREAM/debug.mpg crashed
[h264 @ 0x798062e0] reference picture missing during reorder [h264 @ 0x798062e0] Missing reference picture
[mpeg @ 0x7a80adc0] VBV buffer size not set, muxing may fail
[mpeg @ 0x7a80adc0] buffer underflow i=0 bufi=234341 size=622092 [mpeg @ 0x7a80adc0] packet too large, ignoring buffer limits to mux it
Because all the clips come from the same camcorder, were recorded at the same day, clips before and after the offendee work I wonder if the camcorder output may be bad at times? Therefore, is there a way to health check and/or repair MTS files?
Attached output from Mediainfo for an offending clip:
General
ID : 1 (0x1)
Complete name : /home/somewhere/Desktop/STREAM/00143.MTS
Format : BDAV
Format/Info : Blu-ray Video
File size : 63.9 MiB
Duration : 31s 148ms
Overall bit rate mode : Variable
Overall bit rate : 17.2 Mbps
Maximum Overall bit rate : 18.0 Mbps
Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Format settings, GOP : M=3, N=12
Codec ID : 27
Duration : 31s 120ms
Bit rate mode : Variable
Bit rate : 16.3 Mbps
Maximum bit rate : 16.8 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.314
Stream size : 60.4 MiB (94%)
Audio
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : 129
Duration : 31s 232ms
Bit rate mode : Constant
Bit rate : 256 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : -80ms
Stream size : 976 KiB (1%)
Text
ID : 4608 (0x1200)
Menu ID : 1 (0x1)
Format : PGS
Codec ID : 144
Duration : 30s 656ms
Delay relative to video : -80ms

The camcorder is a Panasonic SD90, settings AVCHD [HA=17Mbps] 1920x1080 /50i. These settings were not changed between the clips. The Kdenlive project settings are HD 1080i 25fps
PS I did not record in 50p because at the time I felt it was too "proprietary" when reading in the manual that it can get played only on the camcorder - but anyway, my recordings now are the other format so it would be great to get it working...
Because kdenlive bumps out only at every ~50th clip, i.e. happily processes ~49, I do wonder why it works for so many clips and not for some others?
I tried remuxing (handrake) but the result was not that great - what settings do you advise?
Kind regards