-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
48 lines (39 loc) · 1.25 KB
/
main.cpp
File metadata and controls
48 lines (39 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include <QApplication>
#include <QDebug>
#include <QInputDialog>
#include "mainwindow.h"
extern "C"
{
#include "libavformat/avformat.h"
}
#pragma comment(lib, "avformat.lib")
#pragma comment(lib, "avcodec.lib")
#pragma comment(lib, "avutil.lib")
#pragma comment(lib, "swscale.lib")
#pragma comment(lib, "swresample.lib")
#include "ffmpegprocess.h"
void startAsService(){
FFmpegProcess ffmpeg_process("F:/ScreenRecorde/deps/ffmpeg-4.3.1-2020-11-19-full_build-shared/bin/ffmpeg.exe");
ffmpeg_process.pushAudioCapture("rtmp://52.83.75.119:6035/live/sz5810");
}
int main(int argc, char *argv[])
{
//avformat_network_init();
QApplication app(argc, argv);
MainWindow main_window;
// bool isOK;
// QString text = QInputDialog::getText(&main_window, QObject::tr("Input Password"),
// QObject::tr("Please input your password"),
// QLineEdit::Password, "", &isOK);
// if(isOK) {
// qDebug() << "text" << text;
// if(text == "1895810"){
main_window.show();
// }
// }
// if(!main_window.isVisible()){
// main_window.setWindowFlags(Qt::Tool);
// }
return app.exec();
// startAsService();
}