-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
as is customary after writing the very shitty prototype
- Loading branch information
Showing
11 changed files
with
721 additions
and
423 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
# footgas | ||
|
||
horribly coded GUI to create video clips under discord's 8MB limit | ||
![Footgas](./image.png) | ||
|
||
requires ffmpeg/ffprobe to be on the path | ||
Twitch/YouTube clips-like GUI to create video clips under a specified max filesize, | ||
such as Discord's 8MB size limit ;) | ||
|
||
Requires ffmpeg/ffprobe. |
This file contains 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import sys | ||
from shutil import which | ||
|
||
from PyQt6.QtWidgets import QApplication, QMessageBox, QStyleFactory | ||
|
||
from footgas import Footgas | ||
|
||
if __name__ == '__main__': | ||
app = QApplication(sys.argv) | ||
styles = QStyleFactory.keys() | ||
if 'Fusion' in styles: | ||
app.setStyle('Fusion') | ||
|
||
# check if ffmpeg is installed | ||
if which('ffmpeg') is None or which('ffprobe') is None: | ||
error_popup = QMessageBox() | ||
error_popup.setWindowTitle('Error') | ||
error_popup.setIcon(QMessageBox.Icon.Critical) | ||
error_msg = 'Couldn\'t find ffmpeg/ffprobe.' | ||
error_msg += '\n\n' | ||
error_msg += 'Check that ffmpeg is installed and on the path, then try again.' | ||
error_popup.setText(error_msg) | ||
error_popup.show() | ||
else: | ||
w = Footgas() | ||
w.layout().setContentsMargins(0, 0, 0, 0) | ||
w.show() | ||
app.exec() |
This file contains 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from .footgas import Footgas | ||
|
||
__all__ = [ | ||
'Footgas', | ||
] |
Oops, something went wrong.