Skip to content

Commit

Permalink
add ffmpeg-helper
Browse files Browse the repository at this point in the history
  • Loading branch information
taseikyo committed Sep 19, 2019
1 parent 5eacb6b commit 975d0fc
Show file tree
Hide file tree
Showing 12 changed files with 607 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ A set of special tools to cope with **my daily tasks**. It's based on [Python 3.
All image resources in this repo are from [iconfont](http://www.iconfont.cn).

### Table of Contents
||||||||||
| :--------: | :---------: | :---------: | :---------: | :---------: | :---------:| :---------:| :---------:| :---------:|
| [Google Translate](#google-translate) | [Bilibili Kit](#bilibili-kit)|[Words Recorder](#words-recorder) | [HUST Electricity Fee](#hust-electricity-fee) |[Missevan Kit](#missevan-kit)| [Lossless Music Box](#lossless-music-box)| [HUST Lib](#hust-lib)| [WordCloud Generator](#wordcloud-generator)|[Cat Calendar](#cat-calendar)|
| :squirrel: | :jack_o_lantern: | :beer: | :fish_cake: | :octocat: |
| ------------------------------ | ------------------------------ | -------------------------------| ------------------------------ | ------------------------------- |
| [Google Translate](#google-translate) | [Bilibili Kit](#bilibili-kit) | [Words Recorder](#words-recorder) | [HUST Electricity Fee](#hust-electricity-fee) | [Missevan Kit](#missevan-kit) |
| [Lossless Music Box](#lossless-music-box) | [HUST Lib](#hust-lib) | [WordCloud Generator](#wordcloud-generator) | [Cat Calendar](#cat-calendar) | [FFmpeg Helper](#ffmpeg-helper) |

### Google Translate
[Google Translate](google-translate) is a translation app using [Google translate api](https://github.com/ssut/py-googletrans).
Expand Down Expand Up @@ -81,6 +82,14 @@ A simple [Cat Calendar](cat-calendar) image generator that uses the "www.dutanga
<img src="images/cat-calendar.gif" alt="Cat Calendar" title="Cat Calendar" />
</div>

### FFmpeg Helper

[FFmpeg Helper](ffmpeg-helper) is a FFmpeg-based tool to cut/merge video.

<div align="center">
<img src="images/ffmpeg-helper.gif" alt="FFmpeg Helper" title="FFmpeg Helper" />
</div>

### Donation
If you think these apps are useful, you can buy me a cup of coffee :P
<div>
Expand Down
14 changes: 14 additions & 0 deletions ffmpeg-helper/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## FFmpeg Helper

a FFmpeg-based tool to cut/merge video

mode:
- DURATION_MODE
- time interval: start_offset ~ start_offset + duration
- ENDTIME_MODE
- time interval: start_offset ~ end_offset

<div align="center">
<img src="../images/ffmpeg-helper.gif" alt="FFmpeg Helper" title="FFmpeg Helper" />
</div>

43 changes: 43 additions & 0 deletions ffmpeg-helper/ffmpeg-helper/ffmpeg-helper.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#-------------------------------------------------
#
# Project created by QtCreator 2019-09-19T16:36:31
#
#-------------------------------------------------

QT += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = ffmpeg-helper
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0

CONFIG += c++11

SOURCES += \
main.cpp \
mwin.cpp

HEADERS += \
mwin.h

FORMS += \
mwin.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
res.qrc
3 changes: 3 additions & 0 deletions ffmpeg-helper/ffmpeg-helper/gen.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pyuic5.exe mwin.ui -o ..\src\mwin.py

pyrcc5.exe res.qrc -o ..\src\res_rc.py
Binary file added ffmpeg-helper/ffmpeg-helper/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions ffmpeg-helper/ffmpeg-helper/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include "mwin.h"
#include <QApplication>

int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MWin w;
w.show();

return a.exec();
}
14 changes: 14 additions & 0 deletions ffmpeg-helper/ffmpeg-helper/mwin.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include "mwin.h"
#include "ui_mwin.h"

MWin::MWin(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MWin)
{
ui->setupUi(this);
}

MWin::~MWin()
{
delete ui;
}
25 changes: 25 additions & 0 deletions ffmpeg-helper/ffmpeg-helper/mwin.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#ifndef MWIN_H
#define MWIN_H

#include <QMainWindow>

namespace Ui {
class MWin;
}

class MWin : public QMainWindow
{
Q_OBJECT

public:
explicit MWin(QWidget *parent = nullptr);
~MWin();

private slots:
void on_duration_check_stateChanged(int arg1);

private:
Ui::MWin *ui;
};

#endif // MWIN_H
Loading

0 comments on commit 975d0fc

Please sign in to comment.