OpenShot / openshot-qt

OpenShot Video Editor is an award-winning free and open-source video editor for Linux, Mac, and Windows, and is dedicated to delivering high quality video editing and animation solutions to the world.
http://www.openshot.org
Other
4.38k stars 548 forks source link

timeline issues #5557

Open jammer699669 opened 5 months ago

jammer699669 commented 5 months ago

when I am using the timeline and I press play for the display window it does not respond to the pause button very well and can take up to 10 secs to stop this is for both the app image and the PPA version of 3.20 -- this does not happen in the previous version. what I am doing and why i need it to be responsive. I am adding png files to the timeline that contain writing and I need them to match up with the soundtrack. so the words on the screen when thy at the end match the soundtrack I use pause and then adjust the size of the png displayed to match that time marker and then progress to the next image... System Details: linux mint 21.3

Colorjet3 commented 4 months ago

Hello @jammer699669.

  1. When you say previous version, do you know which version that was?
  2. Here are a few things to try: a. Version 3.2.1 was just released. Although it does not directly address the issue you are experiencing I would go ahead and give that a try:
    • go to openshot.org and download v3.2.1 AppImage (PPA may not have v3.2.1, yet).
    • make it executable and run it.

b. Change Cache settings in Edit | Preferences

Cache Pre-roll:: Min Frames = 24 <--Change this to 48 Cache Pre-roll:: Max Frames = 48 <--Change this to 96 Cache Ahead (Percent) = .70 <--Don't change this Cache Max Frames = 600 <-- Change this to 1024 (this is the max) Cache Limit (MB) = 512 <-- Change this 2048.

These are experimental at this time. Just because you have lots of RAM doesn't mean to up the "Cache Limit (MB)" value. Making this very large but not having a very high end gaming/video editing computer will really slow things down.

You can bump the "Cache Limit (MB)" to 4096 if you have a powerful computer.

c. Make your preview window smaller.

d. Ultimately, when you Export, the exported file should not exhibit those symptoms.

Note: I have found that as my project gets larger and/or more complex, changing the "Cache Limit (MB)" to 1024-2048 helps while editing (better response) and then 2048-4096 while reviewing (plays smoother). The nice part is you do not have to restart OpenShot when you make this change.

Colorjet3 commented 4 months ago

Hello @jammer699669 Did you get a chance to make the changes I suggested? If yes, what are your results?

jammer699669 commented 4 months ago

Bit of a story I got sick and had to leave australia and back in canada. So just out of the hospital now. I am waiting on monitors so I can set me system up again and after that I will definitely try what you suggested. This crappy old laptop I am using right now lacks the power to use openshot in any real way. But I do thank you for your relies. James

Colorjet3 commented 4 months ago

Hope you are doing better. I look forward to seeing your results based on the changes I suggested.

jammer699669 commented 4 months ago

I downloaded the new appimage and tried the suggestions but it remains the same. it lags when pressing the pause button on the timeline

Colorjet3 commented 4 months ago

Hello @jammer699669 Since those changes did not help with v3.2.1. You can try one more thing whiles editing and that is to change the Profile to something of a lower resolution (this is in conjunction to all the other changes suggested in this thread). You can still change the profile to preview and/or Export using the profile you want to export to.

Next we need to focus on the following:

  1. What are your computer specs: CPU, GPU/RAM, RAM, hard disk type, and how much free space)?
  2. Is your computer a laptop or desktop?
  3. The size and complexity of your project: a. What is the duration of your project? b. Are you using transitions, effects, etc? c. How large are you video/audio files you are importing?
jammer699669 commented 4 months ago

I have been doing the same thing for a long time and do not have the issue in 3.11. All I m trying to do is sync the png image which contains words with the sound track. This has worked for all previous upgrades to get to 3.11. There is an issue or bug with 3.21 that causes the lack of response with with the timeline. It should just stop playing when you press the pause button and it does not. I have no idea as to why but it does the same thing on the laptop as my desktop both running linux mint 21.3

Colorjet3 commented 4 months ago

Hello @jammer699669 I have a Linux Mint running in a virtualbox environment. I just created a new project with small video clip that has adio as well. I then created two image files with a single text line in them (a .SVG and a .PNG). I puth the video/audio file onto Track 4 & both the .svg & .png text onto Track 5 overlaying the audio/video clip. The two image files are snapped together.

I am able to preview and stop the preview without any issues.

Which Theme are you using in OpenShot?

It would also help if you provide the information I asked in my previous response.

  1. What are your computer specs: CPU, GPU/RAM, RAM, hard disk type, and how much free space)?
  2. Is your computer a laptop or desktop?
  3. The size and complexity of your project: a. What is the duration of your project? b. Are you using transitions, effects, etc? c. How large are you video/audio files you are importing?
jammer699669 commented 4 months ago

I think you have missed the point version 3.11 works with out any issues at all. I am doing the same things I have been doing for years. I have tried it on both my laptop and computer. The laptop is really old and barely works so not sure if that counts. Average project size is 15 minutes. Not using transitions etc. audio files ave a max of say 5 minutes vid files ( no audio )a max of 6.5 minutes. CPU AMD BlacK no GPU just a regular vid card 32 GIG memory total of 6 terra space. Theme is Humanity dark. The basic issue is simple why does 3.11 work no problem with the preview start and stop and the newest version does not respond well. I can take a saved project and that is working flawlessly in 3.11 and when I run it on 3.21 I have major issues with the preview stopping when I press the button.

Colorjet3 commented 4 months ago

Hello @jammer699669 Not missing the point. Just trying to gather information and trying to replicate your environment. Like I mentioned, I am unable to replicate your issue in the Linux Mint environment that I have (running as a virtual guest on my Windows 11 host).

I am going to assign this to the lead developer so he can chime in and see what else can be done to troubleshoot.

One last thing to try is this:

  1. Close OpenShot if running.
  2. Make a backup of /home/username/.openshot_qt folder. Keep this around for a bit.
  3. Delete /home/username/.openshot_qt folder.
  4. Run the AppImage, open your project and try again.
jammer699669 commented 4 months ago

ok I will give that a whirl. Still makes no sense to me why it is doing what it is doing. I may also try setting up a virtual OS to test as well

cohnt commented 5 days ago

I'm also facing this bug. The current version from the PPA has the problem, but the version natively available from apt (2.5.1) runs fine. I'm on a variant of Ubuntu 22.04 with an NVidia GPU. Happy to give further system details if you tell me what you need.

Colorjet3 commented 5 days ago

Hello @cohnt

  1. What is the current version from the PPA?
  2. You should not be running v2.x.x & v3.x.x together. The openshot.settings file in /home/username/.openshot_qt folder should not be shared between the 2.x.x & 3.x.x versions. You will definitely experience issues. Additionally, projects created in v2.x.x may not transfer gracefully to v3.x.x. This is all dependent on what features/functionality you are leveraging.

Here is what you should do:

  1. Close OpenShot if running.
  2. Make a backup of /home/username/.openshot_qt folder. You needed to make a backup before you ran v.3.x.x but how would you have known that????
  3. got to openshot.org/download/#daily and download the latest dev daily build available AppImage.
  4. Make the AppImage executable and run it. Note: If OpenShot does not start it is because it needs libfuse2 which can be installed via by running this: sudo apt install libfuse2

Let us know if running the AppImage resolved your issue. If you have old projects that you created using v2.x.x you may want to recreate those projects instead of opening the existing ones.

cohnt commented 4 days ago

I tried installing from the stable PPA, the daily PPA, the daily appimage, and the stable appimage, removing my ~/.openshot_qt folder each time. In all three cases, the timeline was extremely laggy to the point of being unusable, as described in the original issue.

For now, I'm going to freshly install the version I get by default from apt, since that's the only one that's usable on my machine. But I'm happy to help debug the issues with the current version.

Colorjet3 commented 4 days ago

Thank you @cohnt for all that information.

As a reminder, do not mix the .../.openshot_qt folder between the 2.x.x and 3.x.x. Depending on the complexity of your project(s) and your customization, have separate back ups for 2.x.x & 3.x.x.

Since you are having issues with the 3.x.x and you will be running 2.5.1 it will be safe to let 3.x.x create a new copy of .../.openshot_qt folder.

With that said, please do this:

  1. Provide details of your computer. This will help troubleshooting as well. Video editors require lots of resources to run well. a. Is your computer a laptop or desktop? b. What is the CPU, RAM, GPU/RAM, and hard disk drive type? c. Is the GPU integrated or stand alone?

  2. Using the v3.2.1 AppImage please try these Cache settings (I am not sure if you tried these or not):

a. Change Cache settings in Edit | Preferences | Cache tab

Cache Pre-roll:: Min Frames = 24 <--Change this to 48 Cache Pre-roll:: Max Frames = 48 <--Change this to 96 Cache Ahead (Percent) = .70 <--Don't change this Cache Max Frames = 600 <-- Change this to 1024 (this is the max) Cache Limit (MB) = 512 <-- Change this 2048.

These are experimental at this time. Just because you have lots of RAM doesn't mean to up the "Cache Limit (MB)" value. Making this very large but not having a very high end gaming/video editing computer will really slow things down.

You can bump the "Cache Limit (MB)" to 4096 if you have a powerful computer otherwise 2048 should suffice.

Note: What works for me (I have an intermediate gaming desktop and still experience performance issues at times) for the "Cache Limit (MB)" is to set it to 2048 when I am editing. The Cache rebuild happens faster. You might even try 1024 if your project is small and not that complex. And then, when I am ready to preview, I change the value to 2048 or a bit higher, when you are previewing. The good news is that changing the value does NOT require a restart of OpenShot.

c. Make your preview window smaller.

d. Ultimately, when you Export, the exported file should not exhibit those symptoms.

cohnt commented 4 days ago

I have a laptop computer with an i9-12900 CPU, 64GB RAM, a 3080 TI GPU (discrete, 16GB VRAM), and an SSD.

Using these cache settings did not help, nor did making the preview window smaller. I can confirm that the exported video does not have these issues, but it's still very hard to edit with how laggy the timeline is.

Colorjet3 commented 3 days ago

Thank you @cohnt for all that. You definitely have a capable computer so yeah, performance improvements is much needed in OpenShot.

cohnt commented 1 day ago

I should say that I do think this is a bug rather than a performance issue. The preview window renders just fine -- it's the timeline itself that seizes up.