-
-
Notifications
You must be signed in to change notification settings - Fork 311
implemented export modified video issue #337 #339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mmulet
wants to merge
26
commits into
sindresorhus:main
Choose a base branch
from
mmulet:export_video2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 19 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
b0e2ca9
implemented export modified video (without audio for now)
mmulet 862ee4f
add app group back in
mmulet 23d08fd
export audio, plus fixes
mmulet 5487cf6
implemented requested changes
mmulet cc2c721
Update Utilities.swift
sindresorhus f41ebc5
implemented requested changes
mmulet 51f8990
Merge remote-tracking branch 'origin/main' into export_video2
mmulet 0853bcc
Merge branch 'export_video2' of https://github.com/mmulet/Gifski into…
mmulet 5ff5f76
added the warning on export if the video has audio
mmulet 3a4124c
fix bug where it stop exports if you start when another alert was active
mmulet 3bfb5de
more simplified
mmulet 2cf84de
Update EditScreen.swift
sindresorhus 8fa4535
implemtned requested changes
mmulet 2640165
Show progress only when video is longer than 20 seconds
mmulet b17c902
move Export Modified Video State out of Export Modified video
mmulet dfc2e49
move audioWarning out of ExportModifiedVideoState
mmulet 2117c67
implemented requested changes
mmulet d2e2928
added more support for prefferredTransform
mmulet 7907b7c
Update App.swift
sindresorhus 1bc794c
Merge branch 'main' of https://github.com/sindresorhus/Gifski into ex…
mmulet 4053aac
Update Gifski/Components/TrimmingAVPlayer.swift
mmulet e9804d6
part 1 of implementing requested changes
mmulet bc7e2bb
Merge branch 'export_video2' of https://github.com/mmulet/Gifski into…
mmulet c0b54f2
Fix speed slider bug
mmulet 8bc78da
simplify
mmulet 4dea67b
style fixes
mmulet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -98,6 +98,7 @@ final class TrimmingAVPlayerViewController: NSViewController { | |||||||||||||
| private let controlsStyle: AVPlayerViewControlsStyle | ||||||||||||||
| private let timeRangeDidChange: ((ClosedRange<Double>) -> Void)? | ||||||||||||||
| private var cancellables = Set<AnyCancellable>() | ||||||||||||||
| private var currentItemDurationRange: ClosedRange<Double>? | ||||||||||||||
|
|
||||||||||||||
| fileprivate var overlay: NSView? { | ||||||||||||||
| didSet { | ||||||||||||||
|
|
@@ -272,9 +273,7 @@ final class TrimmingAVPlayerViewController: NSViewController { | |||||||||||||
|
|
||||||||||||||
| playerView.setupTrimmingObserver() | ||||||||||||||
|
|
||||||||||||||
| if let durationRange = $0.durationRange { | ||||||||||||||
| timeRangeDidChange?(durationRange) | ||||||||||||||
| } | ||||||||||||||
| onNewDurationRange(durationRange: $0.durationRange) | ||||||||||||||
|
|
||||||||||||||
| // This is here as it needs to be refreshed when the current item changes. | ||||||||||||||
| playerView.observeTrimmedTimeRange { [weak self] timeRange in | ||||||||||||||
|
|
@@ -284,6 +283,31 @@ final class TrimmingAVPlayerViewController: NSViewController { | |||||||||||||
| } | ||||||||||||||
| .store(in: &cancellables) | ||||||||||||||
| } | ||||||||||||||
| func onNewDurationRange(durationRange newItemDurationRange: ClosedRange<Double>?) { | ||||||||||||||
| guard let newItemDurationRange else { | ||||||||||||||
| currentItemDurationRange = nil | ||||||||||||||
| return | ||||||||||||||
| } | ||||||||||||||
| defer { | ||||||||||||||
| currentItemDurationRange = newItemDurationRange | ||||||||||||||
| } | ||||||||||||||
| guard let timeRange, | ||||||||||||||
| let currentItemDurationRange else { | ||||||||||||||
|
||||||||||||||
| guard let timeRange, | |
| let currentItemDurationRange else { | |
| guard | |
| let timeRange, | |
| let currentItemDurationRange | |
| else { |
Contributor
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mmulet marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
mmulet marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


Uh oh!
There was an error while loading. Please reload this page.