Skip to content

Commit

Permalink
πŸ”€ Merge pull request #95 from CoolLibs/ffmpeg
Browse files Browse the repository at this point in the history
Ffmpeg
  • Loading branch information
JulesFouchy authored May 15, 2024
2 parents 8c325c9 + b3238a2 commit e42b2bc
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 11 deletions.
7 changes: 4 additions & 3 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ Checks: '
*,
-readability-convert-member-functions-to-static,
-misc-non-private-member-variables-in-classes,
-*braces-around-statements
-readability-implicit-bool-conversion
-*braces-around-statements,
-readability-implicit-bool-conversion,
-readability-identifier-length,
-cppcoreguidelines-avoid-magic-numbers,
-readability-magic-numbers,
-readability-redundant-member-init,
-readability-redundant-access-specifiers,
-readability-redundant-string-init,
-misc-use-anonymous-namespace,
Expand All @@ -34,4 +35,4 @@ Checks: '
-objc-*,
-openmp-*,
-zircon-*,
'
'
5 changes: 5 additions & 0 deletions .github/workflows/build_and_run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ jobs:
sudo apt-get install -y libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev mesa-common-dev build-essential libgtk-3-dev
sudo apt-get install -y libssl-dev
sudo apt-get install -y libpulse-dev libasound2-dev
sudo apt-get install -y libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libpostproc-dev libswresample-dev libswscale-dev
- name: Install MacOS dependencies
if: runner.os == 'MacOS'
run: brew install ffmpeg

- name: ccache
uses: hendrikmuhs/ccache-action@main
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/create_release_executables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ jobs:
sudo apt-get install -y libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev mesa-common-dev build-essential libgtk-3-dev
sudo apt-get install -y libssl-dev
sudo apt-get install -y libpulse-dev libasound2-dev
sudo apt-get install -y libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libpostproc-dev libswresample-dev libswscale-dev
- name: Install MacOS dependencies
if: runner.os == 'MacOS'
run: |
brew install ffmpeg
- name: ccache
uses: hendrikmuhs/ccache-action@main
Expand Down
8 changes: 8 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@

## 🐣beta-17 WIP

TODO gif exploding head

- ✨ Greatly improved video import: we now support videos with transparency, and GIFs
- ⚑ The performance of playing a video has been greatly improved
- πŸ› Video import now also works on Linux and MacOS
- πŸ› Many bug fixes around the video import and playback
- ✨ Improved MIDI

## 🐣beta-16

- ✨ You can now import video files! Using the "Video from File" node.
Expand Down
7 changes: 3 additions & 4 deletions src/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,11 @@ void App::update()

_project.audio.set_force_mute(_project.exporter.is_exporting());
_project.audio.sync_with_clock(
_project.exporter.is_exporting()
? _project.exporter.clock()
: _project.clock,
_project.current_clock(),
_project.exporter.is_exporting() /* force_sync_time */
);
Cool::hack_get_global_time_in_seconds() = _project.clock.time_in_seconds();
Cool::hack_get_global_time_in_seconds() = _project.current_clock().time_in_seconds();
Cool::hack_get_is_exporting() = _project.exporter.is_exporting();
_project.audio.update(/*on_audio_data_changed = */ [&]() {
_project.modules_graph->on_audio_changed();
});
Expand Down
1 change: 1 addition & 0 deletions src/Project.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ struct Project {
std::string debug_info_coollab_version{}; // Only used to generate an error message when deserialization fails.

[[nodiscard]] auto is_empty() const -> bool;
[[nodiscard]] auto current_clock() const -> Cool::Clock const& { return exporter.is_exporting() ? exporter.clock() : clock; }

private:
// Serialization
Expand Down
2 changes: 1 addition & 1 deletion tooling
Submodule tooling updated 1 files
+4 βˆ’3 .clang-tidy
4 changes: 2 additions & 2 deletions website/src/components/_Download.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
:::info Download
[**Download Coollab for Windows**](/Coollab-Windows.exe)<br/>
[**Download Coollab for Linux**](/Coollab-Linux.sh)<br/>
[**Download Coollab for MacOS**](/Coollab-Mac.dmg)
[**Download Coollab for Linux**](/Coollab-Linux.sh) ⚠ You also need to install FFmpeg: `sudo apt-get install ffmpeg` <br/>
[**Download Coollab for MacOS**](/Coollab-Mac.dmg) ⚠ You also need to install FFmpeg: [open a terminal](https://support.apple.com/guide/terminal/open-or-quit-terminal-apd5265185d-f365-44cb-8b09-71a064a42125/mac), install [Homebrew](https://brew.sh/) by typing `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`, and then install FFmpeg by typing `brew install ffmpeg`. If you need help [feel free to reach out on any of our social media](https://linktr.ee/coollab_art).

🌱 **This is the _beta-16_ release** 🌱<br/>
Coollab is already usable and powerful, but many things are still to be improved.<br/>
Expand Down

0 comments on commit e42b2bc

Please sign in to comment.