Skip to content

Commit 1fc91df

Browse files
authored
Merge pull request #5639 from OpenShot/recovery-menu
Adding recovery menu to OpenShot for recovering previous auto-save files
2 parents 5ed8300 + f83da8b commit 1fc91df

File tree

7 files changed

+575
-307
lines changed

7 files changed

+575
-307
lines changed

doc/main_window.rst

+1
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ are renamed and/or rearranged.
223223
- :guilabel:`New Project` Create a blank new project.
224224
- :guilabel:`Open Project` Open an existing project.
225225
- :guilabel:`Recent Projects` Access recently opened projects.
226+
- :guilabel:`Recovery` Restore a previously saved version of your current project.
226227
- :guilabel:`Save Project` Save the current project.
227228
- :guilabel:`Import Files` Import media files into the project.
228229
- :guilabel:`Choose Profile` Select a project profile (*i.e. 1080p @ 30fps, 720p @ 24fps, ...*).

doc/playback.rst

+15-5
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,14 @@ multi-threaded CPU, lots of RAM (memory), and a modern GPU. We have listed many
7474
the proxy files, simply copy/paste your `*.osp` project file back into the original folder, and export
7575
the higher quality, original files.
7676
Audio Device If you are still having issues with audio lag or sync, please verify you are using the correct
77-
Audio Device for playback (in the OpenShot Preferences). See :ref:`preferences_preview_ref`. Also,
78-
verify your default audio device (on your operating system) is using the same sample rate. On
79-
certain operating systems (such as Windows), mismatching sample rates can cause severe audio
80-
/ video sync problems. Be sure to restart OpenShot after changing the audio device.
77+
:guilabel:`Playback Audio Device` for playback (in the OpenShot Preferences). See :ref:`preferences_preview_ref`. Verify
78+
your default audio device (on your operating system) is using the same sample rate and all *Audio Enhancements* are disabled. On
79+
certain operating systems (such as Windows), mismatching sample rates or audio enhancements can cause severe audio
80+
/ video sync problems. Lastly, try adjusting the :guilabel:`Playback Audio Buffer Size` (lower values
81+
will playback audio with less delay, higher values will playback audio with a larger delay). OpenShot
82+
defaults to a buffer size of 512, which is reasonable for most systems, however on some systems you
83+
might need to lower (or raise) this value for smooth and lag-free audio playback. Be sure to restart
84+
OpenShot after changing the audio playback settings.
8185
================== ============
8286

8387
Audio Troubleshooting
@@ -95,10 +99,16 @@ your issue, here are some additional troubleshooting steps you can take.
9599
Clean Install See :ref:`preferences_reset_ref` for a clean install
96100
Audio Device Check that the Playback Audio Device is set correctly for your sound output under Preferences
97101
in the Preview tab. Restart OpenShot after changing the settings. You can also try a different
98-
audio device (USB, audio over HDMI from the video card, etc.) to rule out other audio issues.
102+
audio device (USB, audio over HDMI from the video card, headphones, etc.) to rule out other audio issues.
99103
Disable `automatic sound suppression` for voice calls during microphone activity, and disable
100104
`Audio Enhancements` under the advanced settings tab of your audio device (not all audio devices
101105
have these settings). See :ref:`preferences_preview_ref`.
106+
Audio Buffer Size The audio buffer size is the amount of audio samples which must first be buffered in OpenShot before
107+
audio playback can begin. If this value is too low, you might experience audio break-up / crackle / popping.
108+
If this value is too high, you might experience delays or lag before audio playback begins. OpenShot
109+
defaults this value to 512, which is a reasonable default for most systems, which should provide smooth
110+
audio playback with minimal noticeable lag or delay. However, on some systems this value might need
111+
to be adjusted up or down, for in-sync and lag-free audio playback. The range is 128 to 4096.
102112
Sample Rate Ensure that the `Default Audio Sample Rate` and `Default Audio Channels` on the Preview tab of the
103113
Preferences window match your hardware. You can also check these settings in the operating system
104114
control panel (i.e. Windows Sound Control Panel). See :ref:`preferences_preview_ref`.

doc/preferences.rst

+33-10
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ OpenShot comes with 3 standard themes, which change the look and feel of the pro
6464

6565
.. image:: images/themes.jpg
6666

67-
.. _preferences_preview_ref:
68-
6967
Restoring Defaults
7068
""""""""""""""""""
7169
In OpenShot, each preferences category (or tab) in the Preferences window has a **Restore Defaults** button that allows
@@ -84,6 +82,8 @@ to reset certain preferences without affecting others.
8482
**Tip for Beginners:**
8583
- If you're not sure about a change you've made in a particular category, don’t hesitate to use the **Restore Defaults** button. It’s a simple way to undo changes and get back to the default settings for that specific category without affecting your overall setup.
8684

85+
.. _preferences_preview_ref:
86+
8787
Preview
8888
-------
8989

@@ -99,7 +99,8 @@ real-time preview audio settings, for example, which audio device and sample rat
9999
================================ ================== ===========
100100
Setting Default Description
101101
================================ ================== ===========
102-
Default Video Profile HD 720P 30 fps Select the profile for Preview and Export defaults
102+
Default Video Profile HD 720P 30 fps Select the profile for Preview and Export defaults
103+
Playback Audio Buffer Size 512 Adjust how many audio samples must be buffered before audio playback begins. Allowed range of values is 128 to 4096. NOTE: If you are experiencing a large drift or delay in audio playback, try setting this value lower.
103104
Playback Audio Device Default
104105
Default Audio Sample Rate 44100
105106
Default Audio Channels Stereo (2 Channel)
@@ -110,21 +111,43 @@ Autosave
110111

111112
.. image:: images/preferences-3-autosave.jpg
112113

113-
Autosave is a saving function in OpenShot which automatically saves the current changes to your project after
114+
Autosave is a feature in OpenShot which automatically saves the current changes to your project after
114115
a specific number of minutes, helping to reduce the risk or impact of data loss in case of a crash, freeze
115116
or user error.
116117

118+
.. table::
119+
:widths: 30 15
120+
121+
===================================== ==================
122+
Setting Default
123+
===================================== ==================
124+
Enable Autosave Enabled
125+
Autosave Interval (minutes) 3
126+
History Limit (# of undo/redo) 15
127+
Recovery Limit (# of project copies) 30
128+
===================================== ==================
129+
117130
Recovery
118131
""""""""
119132

120-
Before each save, a copy of the current project is created in a recovery folder, to further
133+
**Before each save**, a compressed ``*.zip`` copy of the current project is saved in the recovery folder, to further
121134
reduce the risk of data loss. The recovery folder is located at ``~/.openshot_qt/recovery/`` or
122-
``C:\Users\USERNAME\.openshot_qt\recovery``. If you need to recover a corrupt or broken ``*.osp``
135+
``C:\Users\USERNAME\.openshot_qt\recovery``.
136+
137+
To recover a corrupt or broken ``*.osp`` project file, use the :guilabel:`File->Recovery`
138+
menu on the main window after opening your project. If available, a list of matching project versions from
139+
the recovery folder are listed in chronological order (most recent one at the top). This will
140+
automatically rename your current project file to ``{project-name}-{time}-backup.osp``, and
141+
replace it with the recovery project file. You can repeat this process until you find
142+
the correct recovery project. NOTE: If for some unexpected reason the recovery process fails, you can always rename
143+
the "-backup.osp" file to the original project file name to restore it.
144+
145+
To **manually** recover a corrupt or broken ``*.osp``
123146
project file, please find the most recent copy in the recovery folder, and copy/paste the file
124-
in your original project folder location (i.e. the folder that contains your broken project), and then
125-
**open** this recovered project file in OpenShot. Many versions of each project are stored in the
126-
recovery folder, and if you still have issues with the recovered ``*.osp`` file, you can repeat this
127-
process with older versions contained in the recovery folder.
147+
into your original project folder location (i.e. the folder that contains your broken project).
148+
If the recovery file has been zipped (``*.zip``), you must first extract the ``*.osp``, and then
149+
copy it into your project folder. Recovery files are named ``{time}-{project-name}``. You can also use the
150+
**Date Modified** on the file to select the version you are interested in recovering.
128151

129152
.. _preferences_cache_ref:
130153

0 commit comments

Comments
 (0)