Jonathan Thomas
4d3aab8206
Merge remote-tracking branch 'origin/caching-timing-improvements' into caching-timing-improvements
...
# Conflicts:
# src/Qt/PlayerPrivate.cpp
2022-01-17 14:55:25 -06:00
Jonathan Thomas
84eb008109
Using more aggressive adjustment increment, and adding DEBUG output
2022-01-17 14:53:39 -06:00
jackson
a42f82b7a9
add logging file
2022-01-15 02:14:38 -06:00
Jonathan Thomas
a5f35fb42a
Refactoring the VideoCacheThread to check every frame before requesting it. Adding a new method: Contains() to our cache objects, to facilitate this. Removing cache clearning experimental code from Timeline (causing playback issues). Refactoring PrivatePlayer playback timing code, to calculate an average # of frame difference between audio and video threads, and slowly adjust back towards zero when needed.
2022-01-14 15:16:04 -06:00
jackson
951215e569
Simplify math, add max sleep time.
...
- Simplified to one formula.
- Removed additional case for skipping frames.
2022-01-03 21:22:09 -06:00
jackson
f6942b28a8
Re-included debug statement
2021-12-30 01:16:59 -06:00
jackson
a180209f3b
Better comment, tune the timing
...
- Spent time tuning the function so it keeps the error (video/audio difference) low
- Broke up the code, and added comments to improve readability.
2021-12-30 01:08:19 -06:00
jackson
28fb27840c
skip frames when over a frame_duration behind
2021-12-29 01:27:56 -06:00
jackson
8a9c00d3f6
- Searched for word 'millisecond' replaced with 'microsecond'
...
- Simplify timing correction with the cube of the difference between audio and video times.
- If the correction is longer than it took to generate a frame. skip frames until under a frame behind.
2021-12-27 19:14:33 -06:00
Jonathan Thomas
3c8dc71bf2
Merge pull request #719 from OpenShot/audio-devices
...
New audio device [type] switching + Audio sync improvements
2021-12-07 16:36:51 -06:00
Jonathan Thomas
91c47eb98b
Removing debug output, and adding some improved handling of audio/video sync conditions
2021-12-07 13:37:29 -06:00
Jonathan Thomas
089b30f7c5
Switch from milli seconds to micro seconds, for added precision. For example, instead of sleeping for 0.041666667 seconds... due to milliseconds, we were only sleeping 0.41. This would de-sync the audio and video pretty quickly, over a few seconds, causing stuttering
2021-12-06 17:30:45 -06:00
Jonathan Thomas
f3e7208df6
Adding some additional logging
2021-12-06 15:47:32 -06:00
Jonathan Thomas
09bcf2ab15
Fix sleep time calculation to change when the project profile is changed (big bug), and add some additional logging/debugging statements
2021-12-03 15:21:11 -06:00
Jonathan Thomas
4a52941708
Experimental logging to detect delay on Windows playback
2021-12-03 00:43:13 -06:00
Jonathan Thomas
ac3762923d
Updating licensing for reuse compliance
2021-12-02 22:10:08 -06:00
Jonathan Thomas
9eda757885
Merge branch 'develop' into audio-devices
...
# Conflicts:
# src/AudioBufferSource.cpp
# src/AudioReaderSource.cpp
# src/AudioReaderSource.h
# src/Clip.cpp
# src/Frame.cpp
# src/Qt/AudioPlaybackThread.h
# src/audio_effects/Compressor.h
# src/audio_effects/Delay.h
# src/audio_effects/Echo.h
# src/audio_effects/Expander.h
2021-12-02 22:05:19 -06:00
Jonathan Thomas
7b19fa2169
Merge pull request #782 from dankamongmen/dankamongmen/constify
...
constify some AVCodecIDs, necessary for new ffmpeg
2021-12-02 16:59:34 -06:00
nick black
99034feb4e
constify some AVCodecIDs, necessary for new ffmpeg
...
Signed-off-by: nick black <dankamongmen@gmail.com >
2021-11-22 00:09:08 -05:00
Jonathan Thomas
18bdad4342
Merge pull request #781 from OpenShot/missing-memory-include
...
Resolve a build failure for missing <memory> include
2021-11-18 16:36:15 -06:00
Jonathan Thomas
520c8c5be3
Resolve a build failure for missing <memory> include. This is needed for shared_ptr to build on certain compilers.
2021-11-18 16:19:33 -06:00
Frank Dana
e7ed3b3717
CacheBase: Add missing include ( #780 )
2021-11-15 06:13:29 -05:00
Jonathan Thomas
c96691808f
Merge pull request #778 from ferdnyc/new-docs
...
(Second attempt) Switch from UseDoxygen to doxygen_add_docs
2021-11-11 14:15:55 -06:00
Jonathan Thomas
dec6b04442
Merge pull request #771 from ferdnyc/move-magick-code
...
Move ImageMagick code out of Frame class
2021-11-11 14:15:21 -06:00
Frank Dana
0c1e9d0700
tests/Fraction: Approx() floating-point for 32bit ( #777 )
2021-11-11 08:20:07 -05:00