Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
as is customary after writing the very shitty prototype
  • Loading branch information
halworsen committed Mar 11, 2023
1 parent 772c29d commit dbb4819
Show file tree
Hide file tree
Showing 11 changed files with 721 additions and 423 deletions.
7 changes: 5 additions & 2 deletions README.md
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.
28 changes: 28 additions & 0 deletions app.py
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()
5 changes: 5 additions & 0 deletions footgas/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .footgas import Footgas

__all__ = [
'Footgas',
]
Loading

0 comments on commit dbb4819

Please sign in to comment.