1

So I'm trying to make a YouTube video and I have recorded some gameplay and some facecam footage. When I went over to edit in Kdenlive (my video editor of choice) I tried to import my facecam footage (.mkv formatted) which was shot using the default camera app on my Chromebook. It crashed Kdenlive but before it crashed I looked at the time it predicted to be the end of the video which seemed to be extraordinarily long! Just dragging the clip to my timeline caused my computer to freeze up and then the program to eventually crash. I opened the clip in VLC and the playhead doesn't even move. In fact, VLC says that the video is 0 minutes and 0 seconds long even though I know for a fact that it is 42 minutes long. Attempting to move the playhead makes strange artifacts appear on my video clip and then the playhead jumps to 0:00 and it plays fine. This is extremely frustrating because I don't know how I can convert this so that it has a correct start and end time. I cannot edit the video of course because my video editor tries to import an infinite (or at least really massive) video. Strangely enough it plays fine in the Google Drive video player and I believe the native Chrome OS video player.

1 Answer 1

3

So I've found the issue to be related to inconsistent framerates. I found that running the video through ffmpeg with ffmpeg -i yourfile.mkv -c:v copy -c:a copy -r 30 newfile.mkv actually fixed the issue entirely. Now I can open the file correctly and it appears to be 42 minutes as expected. More information here.

1
  • Exactly what I would suggest. Time code issues are almost always fixed by rewrapping the container. That's exactly what this ffmpeg command does.
    – user3643
    Feb 3, 2019 at 21:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.