I’ve got a new drone - a DJI Mini5 Pro.
It produces either MP4-videofiles or D-LOGM-videofiles.
When I copy the files to my PC and import them into KDENLIVE, it cannot create proxys of them. This is the same wether it’s a MP4-video, or a D-LOGM-video = no proxy.
KDENLIVE states this errormessage:
[mov @ 0x62602b685240] Could not find tag for codec h264 in stream #1, codec not currently supported in container
[out#0/mov @ 0x62602b655740] Could not write header (incorrect codec parameters ?): Invalid argument
Error while filtering: Nothing was written into the output file 0 (because at least one of its streams received no packets).
frame= 0 fps=0.0 q=0.0 Lsize= 0kB time=-00:00:00.00 bitrate=N/A speed= 0x
What’s wrong?
Is there anything I can do to help out this issue?
I found this link which seems to explain what is happening. Since this is drone footage, I wonder if stream #1 contains non-video data (gyro info, GPS, etc.); if so, Kdenlive would choke as it doesn’t know what to do with it. That would also explain why when marix passed his footage into Handbrake, his issues were solved, as the video stream got rearranged or something.
Assuming you have ffmpeg installed, could you run ffmpeg -i (filename)in the terminal with your video and paste the output?This is very useful for seeing what is in each stream.
It won’t be that this data exists in the file as such, I have lots of footage containing data streams like that, in some cases several of them in addition to the A/V streams, and there’s been no problems with any of it.
But there may indeed be some assumption about layout being violated somewhere. The usual layout I tend to see is video in stream 0, audio in stream 1, then data in some number of streams following that.
If the drone has no audio, then it would make sense that the telemetry begins in stream 1. It’s not immediately obvious what chokes on that or why, but I think you’re on the right track.
Is it only proxy creation that is the problem? Can you import and edit the files just fine?
It would probably be helpful if someone with one of the affected devices could create a minimal example file for testing (just a couple of seconds of footage in a small file that reproduces the problem) - and attach that to a bug report.
You can link back to the bug report here for general discussion and reference for others who might also see this here.
Thanks - yeah this seems like a real bug, so please do file a report for it (see the instruction at the link I posted above). We don’t actually track bugs in this forum, but it was the right place to bring it up and get initial confirmation. If you can create a small test file (just a few seconds of sharable footage) to attach there too that would be a great help.
I don’t have Handbrake - Didn’t even know it existed. Is that now a must-have to solve this issue?
Until it’s actually fixed, you can probably remove the offending stream with ffmpeg, something like this. In your case copying only the stream 0 video.
Though it looks like that file might also contain a low res preview in stream 2 - so it might also be possible to extract that stream (in the same manner with ffmpeg) to use as an external proxy file instead of needing Kdenlive to generate one.
We don’t currently support proxies in the same container as the original, so you’d need to split those into a separate file - but if they are of good enough quality to use as editing proxies, that might be a useful feature request to consider too.
This bug has already been resolved and the fix will be available in the next release due next month. In the meantime you can test the fix using this appimage.