824 Commits

Author SHA1 Message Date
Jonathan Thomas
508753a390 Merge pull request #206 from OpenShot/release-20190320
Merge release branch into master
v0.2.3
2019-03-20 16:50:12 -05:00
Jonathan Thomas
abe44ade73 Bumping version to 0.2.3 (SO 17) 2019-03-15 13:14:52 -05:00
Jonathan Thomas
3f17601db6 Invalid SetMaxSize Logic and Invalid CRF q settings in FFmpegWriter (#198)
* Limit max size of preview to the timeline size (this renders very small profiles correctly)

* Fixing CRF quality setting to allow "low" quality without breaking
2019-03-09 13:19:07 -06:00
Jonathan Thomas
8f385c112a Improved Keyframe Performance (#197)
* Refactor of Coorindate and Keyframe optimized for performance (much faster than previously). Also refactored FrameMapper to not use a Keyframe, and to only process frame mapping when needed... speeding up Json loading of project files.

* Fixing FrameMapper linear calculation to match existing Keyframe calculation

* Fixing Keyframe to pass original unit tests, and correctly calculate the Keyframe repeat fractions and deltas.

* Small refactor of time mapped logic in Clip.cpp
2019-03-06 15:35:03 -06:00
Jonathan Thomas
728e0022a2 MP3 Special Handling & Missing Frame Refactor (#196)
* Handle MP3 files with special logic, since they typically only have 1 frame of video

* Better support for missing frames (handling of missing audio and missing video data separated), and fixed a missing audio regression.
2019-02-27 23:25:54 -06:00
Jonathan Thomas
62fa7176a4 Update README and INSTALL files (including build instructions) (#194)
* Update README.md
* Create INSTALL.md
* Delete InstallationGuide.pdf
* Create INSTALL-LINUX.md
* Create INSTALL-MAC.md
* Create INSTALL-WINDOWS.md
2019-02-08 15:30:56 -06:00
Jonathan Thomas
1bf3e37567 Refactor FFmpegWriter Open() and PrepareStreams() methods, so that SetOption() is can be called between them, and allowed to adjust the codecs bit_rate and options before we call open_video(). This was primarily to allow CRF options to work. (#193) 2019-01-28 12:28:35 -06:00
Jonathan Thomas
eeeec31675 Add git log file with commits up to the previous release (#192) 2019-01-26 22:15:18 -06:00
Jonathan Thomas
f66ccb11c4 Set video bit rate to 0 if an invalid bit rate detected (which happens when using crf) (#191) 2019-01-26 17:56:15 -06:00
Jonathan Thomas
0587ada6dc Integrate Constant Rate Factor (CRF) for FFmpegWriter (#186)
* First implementation of CRF (Constant Rate Factor)

* Include AV1 in the codecs that can use crf

* First version that uses SetOption to set crf quality

* Clarify comments

* Delete setting the bitrate for crf in SetVideoOption because it
is not needed, it is set later with SetOptions.
2019-01-25 00:15:07 -06:00
Frank Dana
c4321f3f8e Some polishing for the cmake ReSVG discovery (#187)
* Search for libresvg.so in RESVGDIR also

This means that RESVGDIR can be pointed to the `target/release` dir 
where resvg was built, and both `libresvg.so` and `include/resvg.h` will 
be found.

* ReSVG: Fix up discovery module

`find_package_handle_standard_args` is supposed to set the `_FOUND` 
variable automatically (as the comment right above it says), as well as 
handling things like REQUIRED, QUIETLY, etc. It should always be run at 
the end of a module, for this reason.

This change removes the conditionals around the call, lets it handle 
what it's meant to handle, and defines a custom failure message for 
discovery that replaces the one in `src/CMakeList.txt`. 

In addition, the `REQRUIRED` is removed from `tests/CMakeLists.txt`, 
since it's _supposed_ to mark the module as required (which ReSVG is 
not), and was only working due to the aforementioned improper 
conditional wrapping of the module's cleanup.

* FindRESVG.cmake does not set RESVG_DEFINITIONS

Remove the comment that claims it does.
2019-01-24 13:43:40 -06:00
Jonathan Thomas
f009b0f46c Fix default sizes on readers without MAX_WIDTH and MAX_HEIGHT settings (#188) 2019-01-22 22:14:30 -06:00
Jonathan Thomas
7b6eb9c21b Integration of resvg SVG library (optional during build) (#185)
* Integration of libresvg SVG library (optional during build)

* Major refactor of max_width and max_height for preview optimization

* Fixed many bugs related to preview resizing, with regards to cached frames

* Updating gitlab CI to find RESVGDIR correctly for windows, and adding svgz support

* Updating cmake findresvg module to search for windows locations first, to prevent an issue on our windows builders and updating some CMake output.

* Removing folder path from resvg header, since it could be installed in different named folders. This is an attempt to fix Windows include issues.

* Making call to AV_FREE_FRAME conditional for non windows systems (because it crashes on Windows for seemingly no reason). Needs more investigation.
2019-01-19 02:18:52 -06:00
Jonathan Thomas
64a53283c9 Adding condition before calling av_frame_free (in AV_FREE_FRAME macro) (#184) 2019-01-15 14:58:01 -06:00
Jeff Shillitto
828990b103 Update readme to use markdown and update copyright to 2019 (#94)
* Update readme to use markdown and update copyright to 2018

Add md extension to render in Github

Wrap commercial details with horizontal rules

Updating correct file and deleting duplicate

* Update dates to 2019
2019-01-14 15:40:07 -06:00
Frank Dana
a49979ebf8 tests/CMakeLists: Use same dependencies as src/ (#163)
* tests/CMakeFiles: Use FFMpeg like src/

* Use system jsoncpp in tests, too

The tests/ build needs to use the same jsoncpp as the src/ build,
or tests in Clip_Tests.cpp can fail.

* Don't show FFMpeg version messages in tests/

Displaying the version-number messages twice seems like overkill
2019-01-14 15:25:33 -06:00
Frank Dana
c56b5bf532 Remove Eclipse files and add to gitignore (#178) 2019-01-14 15:10:57 -06:00
Jonathan Thomas
cf4f12cfa5 Merge pull request #183 from OpenShot/new-settings-class
New Settings Class to be used for changing realtime settings used by libopenshot
2019-01-09 17:05:57 -06:00
Jonathan Thomas
13bd272ead Adding new settings class to be used for changing realtime settings used by libopenshot, such as scaling mode for preview vs final render, or hardware decode, etc... 2019-01-09 16:50:40 -06:00
Jonathan Thomas
e0ec603965 Fixing Scale Mode (None) in previews (#182)
* Handle SCALE_NONE mode when optimized for previews (previews are often smaller than the project size)

* Fixing 2 memory leaks (thanks PeterM)
2019-01-09 00:56:49 -06:00
Jonathan Thomas
a8f75a5b67 Merge pull request #179 from OpenShot/fixing-cache-performance
Improving cache performance by preventing the cache from getting behind
2018-12-14 14:58:10 -06:00
Jonathan Thomas
4ed7847fa9 Improving cache performance by preventing the cache from getting behind the currently displaying frame # 2018-12-14 14:38:33 -06:00
Jonathan Thomas
31e9e7b656 Merge pull request #172 from OpenShot/exclude-git-tags-from-builds
Exclude git tags from kicking off GitLab builds (for libopenshot)
2018-09-22 18:04:55 -05:00
Jonathan Thomas
de9f816f25 Exclude git tags from kicking off GitLab builds (for libopenshot) 2018-09-22 17:41:56 -05:00
Jonathan Thomas
171815216d Merge pull request #171 from OpenShot/master
Merge master back into develop (for release 0.2.2)
2018-09-22 15:09:14 -05:00