Commit Graph

2636 Commits

Author SHA1 Message Date
Jonathan Thomas
32a89cfce9 Add lock to new Clear() method to prevent crashes 2022-10-06 21:59:11 -05:00
Jonathan Thomas
934ca786ed Adding new Clear() method to Timeline, to delete all allocated clips, effects, and frame mapeprs (freeing memory). Also, keep track of allocated clips and effects on timeline (when using SetJson to create them), so we can clean them up correctly on Clear() or RemoveClip()/RemoveEffect(). Added new test case for Clear(). 2022-10-06 15:07:31 -05:00
Jonathan Thomas
8ac1589b2d Optimizing caching thread to exclude frames where no clips exist, and simplify some of the caching loop logic 2022-10-04 18:35:16 -05:00
Jonathan Thomas
23da61bf84 Merge pull request #851 from OpenShot/fix-hasvideo-override
Refactor of Packet tracking & EOF detection
2022-09-27 17:59:06 -05:00
Jonathan Thomas
ec79c92f12 Refactor of packet counting and EOF detection. Instead of tracking overall packets read & decoded, we now track per stream (video and audio), so we can more accurately know when a packet is still pending for one of those streams (i.e. async decoding) 2022-09-26 19:06:03 -05:00
Jonathan Thomas
01900819bb Merge pull request #849 from OpenShot/fix-hasvideo-override
Fixing infinite loop caused by override of has_video/has_audio
2022-09-24 15:06:48 -05:00
Jonathan Thomas
5f6998d933 Fixing whitespace 2022-09-24 14:49:53 -05:00
Jonathan Thomas
906a5af9b0 Increasing max_attempts to prevent failures on Seeking from far away positions 2022-09-24 14:36:26 -05:00
Jonathan Thomas
285b4952fe Fixing behavior of manual override of has_video or has_audio, to remove unused packets, and not get stuck in an endless loop due to 1 or 2 pending packets that are no longer needed after the override. 2022-09-24 14:06:36 -05:00
JacksonRG
87da5db84a Merge pull request #848 from OpenShot/multi-line-captions
Allow intentional line breaks
2022-09-22 16:03:27 -05:00
Jonathan Thomas
239444ac4a Merge pull request #847 from OpenShot/improved-caching
Improved Caching Support (libopenshot)
2022-09-22 14:43:28 -05:00
jackson
c023d29bed Allow intentional line breaks 2022-09-22 01:30:06 -05:00
Jonathan Thomas
969a2015bf Increasing max video cache frames, moving percentage-ahead caching to a setting, fixing a calculation error on bytes per frame 2022-09-20 16:55:07 -05:00
Jonathan Thomas
16dc5408cc Fixing white space issue 2022-09-16 10:34:30 -05:00
Jonathan Thomas
95100f2ac4 Fixing white space issue 2022-09-16 10:32:38 -05:00
Jonathan Thomas
6ecc8b8998 Fixing white space issue 2022-09-16 10:21:54 -05:00
Jonathan Thomas
5d6441542b Fixing white space issue 2022-09-16 10:12:48 -05:00
Jonathan Thomas
8c7b463e38 Improvements to the ClearAllCache() function, allowing both shallow and deep clearing. Lots of bug fixes in VideoCacheThread, to correctly pre-roll and cache the correct frames, and a new method of disabling/enabling the cache thread. 2022-09-15 18:33:06 -05:00
Jonathan Thomas
8a3e2eb2d0 Refactor of cache code, and fixed a crash generating Json from an empty cache object. 2022-09-15 18:29:43 -05:00
Jonathan Thomas
7c2a205d5e Adding new settings, to control how video caching works, and how many frames to pre-roll and cache 2022-09-15 17:53:44 -05:00
JacksonRG
5b6d3ce891 Merge pull request #846 from OpenShot/correct-timeline-frame-numbers
Frame Numbers: subtract the start value from the timeline frame number.
2022-09-15 17:12:34 -05:00
jackson
af1117b244 Subtract the start value from the timeline frame number. 2022-09-14 13:37:20 -05:00
Jonathan Thomas
cfca6e77f7 Merge pull request #845 from OpenShot/invalid-number-frames
Detect video length (i.e. # of video frames) from Video Metadata
2022-09-02 23:07:07 -05:00
Jonathan Thomas
5f692f18d6 Protect video_length from being overwritten if CheckFPS overwrites it first 2022-09-02 09:36:06 -05:00
Jonathan Thomas
60805beec3 Adding support for detecting video_length (i.e. # of video frames) from the metadata, instead of calculating from duration * fps. This is occasionally different by a small amount, and in my testing, the metadata is more accurate. 2022-09-02 01:09:00 -05:00