513 Commits

Author SHA1 Message Date
Jonathan Thomas
e899cbf39a Fixing Timeline::SetJSON to use a lock, and reopen the reader if already open. This fixes an issue when trying to open another project while the current project is being accessed (i.e. during playback). 2017-05-18 17:04:34 -05:00
Jonathan Thomas
c89ad78e38 Adding additional lock on ClearAllCache method, to prevent crash 2017-05-18 02:48:00 -05:00
Jonathan Thomas
1ed5302835 Fixing a data type issues with max() 2017-05-17 01:29:32 -05:00
Jonathan Thomas
3a884e71dc Big improvement with handling invalid video and audio timestamps, defaulting to more sane values (when huge crazy timestamps are detected). Also fixing a bug when disabling video/audio tracks on FrameMappers. Also adding additional bail-out code when stuck searching for a video/audio packet that probably doesn't exist. Added improved "checked" handling, and once 1 frame is detected as invalid, clean out any other invalid ones as well. 2017-05-17 01:17:42 -05:00
Jonathan Thomas
efecd2b8d6 Fixing unicode path issues when loading a Profile() class. Broke when using unicode home directory on Windows. 2017-05-16 17:07:06 -05:00
Jonathan Thomas
b3ca56b5ab Another attempted fix for audio device management. Moving CloseAudioDevice() call to only invoke when quiting OpenShot, and only initializing the JUCE audio manager 1 time. This fixes a audio freeze in Windows when the preview window launches. 2017-03-26 23:51:03 -07:00
Jonathan Thomas
57dc7bc43a Fixing broken gravity for GRAVITY_BOTTOM_LEFT 2017-03-26 12:49:27 -05:00
Jonathan Thomas
6fe901f359 Refactoring closing of audio devices 2017-03-21 14:38:42 -05:00
Jonathan Thomas
3193ee9701 Wrapping AudioDeviceManager in singleton wrapper, to ensure only a single instance can be created. This solves lots of weird issues with the preview dialog. 2017-03-21 10:56:19 -05:00
Jonathan Thomas
e084f65315 Adding TODO for libopenshot related to audioDeviceManager 2017-03-21 00:45:11 -05:00
Jonathan Thomas
97ec6298ff Adding frame number display options to a clip, which can be super useful when debugging issues. Options include: None, Clip, Timeline, or Both. Also improving missing frame detection, to have less false positives (i.e. flickering 1st frame) 2017-03-15 02:06:53 -05:00
Jonathan Thomas
905fbf42ec Allow Timeline to use smaller frame/image sizes based on MaxSize (huge performance gain for previewing videos) 2017-03-14 11:42:05 -05:00
Jonathan Thomas
210d00c81f Fixing big regression finding the correct starting frame for a clip... oops. 2017-03-11 00:51:43 -06:00
Jonathan Thomas
ec65ca39b3 Fixing invalid cache after editing effect in a clip, and frame accuracy (converting timestamps into frame numbers). This makes frame by frame editing much better. 2017-03-10 00:51:08 -06:00
Jonathan Thomas
bd85f1144d Adding a lock when updating the JSON of a Timeline (or remapping it), so nobody can request frames while everything is changing. Seems much more stable during live preview. 2017-03-05 04:34:32 -06:00
Jonathan Thomas
289e659566 Fixed a bug when caching a mask size (a regression from some of our speed improvements) 2017-02-19 01:29:59 -06:00
Jonathan Thomas
dc25576fab Removing transform handles, since I will instead implement that in Python rather this library. Also, refactoring a bit of the clip transforms, to keep the rotation center correct. 2017-02-04 22:01:06 -06:00
Jonathan Thomas
85ac4bf6d2 Updating references to frame number / position to long int, there were still quite a few old "int" declarations, which limits the length of frame number. Also, updated precision of KeyFrames to use double (instead of float) for higher precision, which fixed lots of issues with very long videos (since our FrameMapper used a KeyFrame object to create a map to new frames) 2017-01-24 18:39:17 -06:00
Jonathan Thomas
f30d7018b6 Fixing small bug with audio PTS detection, when seeking on really long video files (which would reset the last_frame to -1, and then detect a huge # of incorrect missing frames) 2017-01-23 23:53:50 -06:00
Jonathan Thomas
6f28c6f83b Tweaking logic when detecting a final frame, and adding more logging to CheckWorkingFrames 2017-01-19 15:29:46 -06:00
Nelson Ho
2cbb722141 fix logic for location.sample_start and location.frame update, fixes audio gaps 2017-01-07 17:59:00 -05:00
Nelson Ho
c33e6fa2a8 Fix AudioLocation::is_near function to handle a corner case where the two frames have different samples_per_frame, and sample_start is at the samples_per_frame limit. 2017-01-07 17:34:11 -05:00
Nelson Ho
c9b74ec96d Added fixes for audio sample distribution to clean up missing or extra audio samples that were at frame boundaries 2017-01-06 20:48:47 -05:00
Jonathan Thomas
5b7e94bb31 Fixing incorrect placement of a selection handle. 2016-12-29 18:01:20 -06:00
Jonathan Thomas
066d4818a3 Only apply effects for valid frame objects 2016-12-15 03:18:26 -06:00