openshot-qt icon indicating copy to clipboard operation
openshot-qt copied to clipboard

Files sometimes get clipped in timeline

Open jhankin1 opened this issue 1 year ago • 8 comments

Describe the bug: Sometimes, the last few seconds of the clip disappear when it's imported in the timeline. Here is a link to one of the offending clips.

https://drive.google.com/file/d/1SWt9ha0t2tLputTp4aW7pcrY0TeP8ycO/view?usp=drive_link

Steps to reproduce the behavior:

  1. Import file into OpenShot
  2. Drag file into timeline

Expected behavior: The file should show up with its full length (about one minute and one second).

System Details:

  • OpenShot Version [e.g. 2.4.3]: OpenShot-v3.1.1-dev-daily-12440-9424cc0c-5e9fa273-x86_64
  • Operating System / Distro: Windows 10

Log Files:

libopenshot.log openshot-qt.zip

jhankin1 avatar Jun 11 '24 23:06 jhankin1

Hello @jhankin1

  1. Is this video your source file and not the exported file?
  2. What type of a file is your source file (.mp4? .mov? etc?).
  3. You say that this only happens sometimes? Please elaborate on this. Is it just dragging onto the timeline when it happens? Are thee anything you are doing in OpenShot that might cause this? etc?

Colorjet3 avatar Jun 12 '24 02:06 Colorjet3

  1. It's one of my source files.
  2. It is an MP4 -- the very video you can see.
  3. It seems like only recent dash cam footage is affected, so it's probably the result of a firmware update of some kind. (I think the camera updates itself over the air.) The bug happens without jumping through any hoops. I've actually had issues with BlackVue dash cams in past years -- a few years ago, I submitted a bug report because OpenShot couldn't handle the audio. Even today, I have to convert the audio to a form that OpenShot supports in order to work with it.

jhankin1 avatar Jun 13 '24 22:06 jhankin1

Thank you @jhankin1 for that information.

I know that other advanced audio editors sometimes will analyze imported files and perform the necessary conversion to be able to process them. OpenShot does not have that and thus you must sometimes go through a conversion process. I've seen this happen with .mkv files as well.

The conversion process is the the solution for now. Feel free to close the ticket unless there is something more you need regarding this issue.

Colorjet3 avatar Jun 14 '24 16:06 Colorjet3

Before we ring the bell on this issue, I'd like to point out that your response only addresses the audio, which I presented only as a color detail, not part of the complaint. Did you follow the steps in the original post? When you dragged the video into your timeline, did it show up with the full one minute and one second, or did part of the video not show up, like in my case? If your OpenShot is working, that means I'm going to have to figure out how to re-install with the default settings, and I'm not sure how I would do that. I also doubt it would work.

jhankin1 avatar Jun 16 '24 22:06 jhankin1

Hello @jhankin1 I missed the whole 1 min. and one second so my apologies for that. I just retested with the latest dev daily build #12442 and can replicate your issue.

  1. I downloaded the attached video.
  2. In Windows File Explorer I right click your file and Properties | Detail tab. Video length show as 00:01:00.
  3. I ran it through a converter (ShutterEncoder). Checking the Properties | Detail tab the Video length is now 00:01:01. This is interesting that Windows File Explorer only shows 1:00 on the original file.
  4. Imported both the original and the converted files into Openshot and the original clip Duration (Properties of the clip) is 54.21 and the converted one is 54.22.

Not sure what is going on. I am going to ask the lead developer to look into this.

Colorjet3 avatar Jun 17 '24 00:06 Colorjet3

Hello @jhankin1 I have pinged the lead developer.

Meanwhile I some additional research and found that the mismatch of length can exist with Variable Frame Rate (VFR) videos. Does your camera record in VFR format? If so, and according to literature on the web, VFR videos are recorded at different frames which in turn cause some frames to be displayed longer or shorter.

So, OpenShot most likely is setting the frame rate to match the Profile you have chosen (the default is 30fps). So the duration of the video isn't going to match your original video. This would then mean that you are not missing any frames. It just that all your frames are set to 30fps.

Colorjet3 avatar Jun 17 '24 00:06 Colorjet3

Thank you for researching this. Unfortunately, though, I have checked this, and I am losing frames. I have noticed, though, that some applications can convert the clips to MKV format, then if I import the converted files into OpenShot, they show up with the correct length, and no frames appear to be lost. This is a painfully slow workaround, though, so I hope a genuine fix comes about.

jhankin1 avatar Jun 18 '24 02:06 jhankin1

Yes, I have noticed that some other video editor handle this much gracefully. I am going to flag this as a "Bug" also.

Hopefully, the lead developer will review this at some point and have come up with a solution and implement.

Colorjet3 avatar Jun 18 '24 12:06 Colorjet3