Skip to content

Commit a004bd2

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into remove-ancient-ffmpeg-encode
2 parents 174d095 + 414a2cd commit a004bd2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+720
-326
lines changed

.github/labeler.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Add 'build' label to CMake changes
2+
build:
3+
- /**/CMakeList.txt
4+
- /cmake/**/*.cmake

.github/workflows/label.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# This workflow will triage pull requests and apply a label based on the
2+
# paths that are modified in the pull request.
3+
#
4+
# To use this workflow, you will need to set up a .github/labeler.yml
5+
# file with configuration. For more information, see:
6+
# https://github.com/actions/labeler/blob/master/README.md
7+
8+
name: Labeler
9+
on: [pull_request]
10+
11+
jobs:
12+
label:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/labeler@v2
18+
with:
19+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ linux-builder:
2727
except:
2828
- tags
2929
tags:
30-
- linux
30+
- linux-bionic
3131

3232
mac-builder:
3333
stage: build-libopenshot
@@ -43,7 +43,7 @@ mac-builder:
4343
- unzip artifacts.zip
4444
- export LIBOPENSHOT_AUDIO_DIR=$CI_PROJECT_DIR/build/install-x64
4545
- mkdir -p build; cd build;
46-
- cmake -DCMAKE_CXX_FLAGS=-I\ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -D"CMAKE_INSTALL_PREFIX:PATH=$CI_PROJECT_DIR/build/install-x64" -DCMAKE_CXX_COMPILER=/usr/local/opt/gcc@8/bin/g++-8 -DCMAKE_C_COMPILER=/usr/local/opt/gcc@8/bin/gcc-8 -DCMAKE_PREFIX_PATH=/usr/local/qt5/5.5/clang_64 -DPYTHON_INCLUDE_DIR=/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -DPYTHON_LIBRARY=/Library/Frameworks/Python.framework/Versions/3.6/lib/libpython3.6.dylib -DPYTHON_MODULE_PATH=python -DPython_FRAMEWORKS=/Library/Frameworks/Python.framework/ -D"CMAKE_BUILD_TYPE:STRING=Release" -D"CMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk" -D"CMAKE_OSX_DEPLOYMENT_TARGET=10.9" -D"CMAKE_INSTALL_RPATH_USE_LINK_PATH=1" -D"ENABLE_RUBY=0" ../
46+
- cmake -DCMAKE_EXE_LINKER_FLAGS="-stdlib=libc++" -DCMAKE_SHARED_LINKER_FLAGS="-stdlib=libc++" -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -D"CMAKE_INSTALL_PREFIX:PATH=$CI_PROJECT_DIR/build/install-x64" -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_PREFIX_PATH=/usr/local/qt5.15.X/qt5.15/5.15.0/clang_64/ -DPYTHON_INCLUDE_DIR=/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -DPYTHON_LIBRARY=/Library/Frameworks/Python.framework/Versions/3.6/lib/libpython3.6.dylib -DPYTHON_MODULE_PATH=python -DPython_FRAMEWORKS=/Library/Frameworks/Python.framework/ -D"CMAKE_BUILD_TYPE:STRING=Release" -D"CMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk" -D"CMAKE_OSX_DEPLOYMENT_TARGET=10.9" -D"CMAKE_INSTALL_RPATH_USE_LINK_PATH=1" -D"ENABLE_RUBY=0" ../
4747
- make
4848
- make install
4949
- echo -e "CI_PROJECT_NAME:$CI_PROJECT_NAME\nCI_COMMIT_REF_NAME:$CI_COMMIT_REF_NAME\nCI_COMMIT_SHA:$CI_COMMIT_SHA\nCI_JOB_ID:$CI_JOB_ID" > "install-x64/share/$CI_PROJECT_NAME"

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ option(ENABLE_IWYU "Enable 'Include What You Use' scanner (CMake 3.3+)" OFF)
7777
option(ENABLE_TESTS "Build unit tests (requires UnitTest++)" ON)
7878
option(ENABLE_DOCS "Build API documentation (requires Doxygen)" ON)
7979
option(APPIMAGE_BUILD "Build to install in an AppImage (Linux only)" OFF)
80+
option(ENABLE_MAGICK "Use ImageMagick, if available" ON)
8081

8182
# Legacy commandline override
8283
if (DISABLE_TESTS)
@@ -129,9 +130,9 @@ add_feature_info("Coverage" ENABLE_COVERAGE "analyze test coverage and generate
129130
# -DDEBUG for debug builds. We'll do this for all OSes, even
130131
# though only MacOS requires it.
131132
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG")
132-
# Make sure we've picked some build type, default to debug
133+
# Make sure we've picked some build type, default to release
133134
if(NOT DEFINED CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "")
134-
set(CMAKE_BUILD_TYPE "Debug")
135+
set(CMAKE_BUILD_TYPE "Release")
135136
endif()
136137

137138
############## PROCESS src/ DIRECTORIES ##############

README.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
OpenShot Video Library (libopenshot) is a free, open-source C++ library dedicated to
2-
delivering high quality video editing, animation, and playback solutions to the
3-
world.
1+
OpenShot Video Library (libopenshot) is a free, open-source C++ library
2+
dedicated to delivering high quality video editing, animation, and playback
3+
solutions to the world.
44

55
## Build Status
66

@@ -15,7 +15,8 @@ world.
1515
* Time Mapping (Curve-based Slow Down, Speed Up, Reverse)
1616
* Audio Mixing & Resampling (Curve-based)
1717
* Audio Plug-ins (VST & AU)
18-
* Audio Drivers (ASIO, WASAPI, DirectSound, CoreAudio, iPhone Audio, ALSA, JACK, and Android)
18+
* Audio Drivers (ASIO, WASAPI, DirectSound, CoreAudio, iPhone Audio,
19+
ALSA, JACK, and Android)
1920
* Telecine and Inverse Telecine (Film to TV, TV to Film)
2021
* Frame Rate Conversions
2122
* Multi-Processor Support (Performance)
@@ -27,19 +28,21 @@ world.
2728

2829
## Install
2930

30-
Detailed instructions for building libopenshot and libopenshot-audio for each OS. These instructions
31-
are also available in the /docs/ source folder.
31+
Detailed instructions for building libopenshot and libopenshot-audio for
32+
each OS. These instructions are also available in the `/docs/` source folder.
3233

3334
* [Linux](https://github.com/OpenShot/libopenshot/wiki/Linux-Build-Instructions)
3435
* [Mac](https://github.com/OpenShot/libopenshot/wiki/Mac-Build-Instructions)
3536
* [Windows](https://github.com/OpenShot/libopenshot/wiki/Windows-Build-Instructions)
3637

3738
## Hardware Acceleration
3839

39-
OpenShot now supports experimental hardware acceleration, both for encoding and
40-
decoding videos. When enabled, this can either speed up those operations or slow
41-
them down, depending on the power and features supported by your graphics card.
42-
Please see [doc/HW-ACCELL.md](doc/HW-ACCEL.md) for more information.
40+
OpenShot now supports experimental hardware acceleration, both for encoding
41+
and decoding videos. When enabled, this can either speed up those operations
42+
or slow them down, depending on the power and features supported by your
43+
graphics card.
44+
45+
Please see [`doc/HW-ACCEL.md`](doc/HW-ACCEL.md) for more information.
4346

4447
## Documentation
4548

@@ -51,10 +54,11 @@ make doc
5154

5255
## Developers
5356

54-
Are you interested in becoming more involved in the development of
55-
OpenShot? Build exciting new features, fix bugs, make friends, and become a hero!
56-
Please read the [step-by-step](https://github.com/OpenShot/openshot-qt/wiki/Become-a-Developer)
57-
instructions for getting source code, configuring dependencies, and building OpenShot.
57+
Are you interested in becoming more involved in the development of OpenShot?
58+
Build exciting new features, fix bugs, make friends, and become a hero!
59+
Please read the [step-by-step](https://github.com/OpenShot/openshot-qt/wiki/Become-a-Developer)
60+
instructions for getting source code, configuring dependencies, and building
61+
OpenShot.
5862

5963
## Report a bug
6064

@@ -72,7 +76,7 @@ https://github.com/OpenShot/libopenshot/issues
7276

7377
### License
7478

75-
Copyright (c) 2008-2019 OpenShot Studios, LLC.
79+
Copyright (c) 2008-2020 OpenShot Studios, LLC.
7680

7781
OpenShot Library (libopenshot) is free software: you can redistribute it
7882
and/or modify it under the terms of the GNU Lesser General Public License

cmake/Modules/FindZMQ.cmake

Lines changed: 0 additions & 24 deletions
This file was deleted.

include/CacheDisk.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
#include "Frame.h"
3939
#include "Exceptions.h"
4040
#include <QDir>
41-
#include <QString>
42-
#include <QTextStream>
4341

4442
namespace openshot {
4543

include/ChunkReader.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
#include <iostream>
3838
#include <fstream>
3939
#include <omp.h>
40-
#include <QtCore/qdir.h>
41-
#include <stdio.h>
40+
#include <cstdio>
4241
#include <cstdlib>
4342
#include <memory>
43+
#include <QtCore/QDir>
4444
#include "Json.h"
4545
#include "CacheMemory.h"
4646
#include "Exceptions.h"

include/ChunkWriter.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,19 @@
3434
#include "ReaderBase.h"
3535
#include "WriterBase.h"
3636
#include "FFmpegWriter.h"
37+
#include "CacheMemory.h"
38+
#include "Exceptions.h"
39+
#include "Json.h"
3740

3841
#include <cmath>
3942
#include <ctime>
4043
#include <iostream>
4144
#include <fstream>
42-
#include <omp.h>
43-
#include <QtCore/qdir.h>
44-
#include <stdio.h>
45+
#include <cstdio>
4546
#include <sstream>
4647
#include <unistd.h>
47-
#include "CacheMemory.h"
48-
#include "Exceptions.h"
49-
#include "Json.h"
48+
#include <omp.h>
49+
#include <QtCore/QDir>
5050

5151

5252
namespace openshot

include/Clip.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ namespace openshot {
169169
/// Return the list of effects on the timeline
170170
std::list<openshot::EffectBase*> Effects() { return effects; };
171171

172+
/// Look up an effect by ID
173+
openshot::EffectBase* GetEffect(const std::string& id);
174+
172175
/// @brief Get an openshot::Frame object for a specific frame number of this timeline.
173176
///
174177
/// @returns The requested frame (containing the image)
@@ -253,8 +256,6 @@ namespace openshot {
253256
openshot::Keyframe has_audio; ///< An optional override to determine if this clip has audio (-1=undefined, 0=no, 1=yes)
254257
openshot::Keyframe has_video; ///< An optional override to determine if this clip has video (-1=undefined, 0=no, 1=yes)
255258
};
259+
} // namespace
256260

257-
258-
}
259-
260-
#endif
261+
#endif // OPENSHOT_CLIP_H

0 commit comments

Comments
 (0)