-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
20 lines (18 loc) · 718 Bytes
/
main.cpp
File metadata and controls
20 lines (18 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "ui/mainwindow.h"
#ifdef VLD_ENABLE
#include <vld.h>
#endif
// demux_thread_network = new DemuxThread(url_.c_str());
// ret = demux_thread_network->Init();
// rtsp://admin:15935746jk@Liu@172.18.107.147:554/h264/ch1/main/av_stream
// rtmp://8.134.146.151/live/camera
// 服务器推流 ffmpeg -i "rtsp://admin:15935746jk@Liu@172.18.107.147:554/h264/ch1/main/av_stream" -c:v copy -c:a copy -f flv "rtmp://8.134.146.151/live/camera"
// 本地摄像头推流 ffmpeg -f dshow -i video="USB Camera" -vcodec libx264 -preset veryfast -f flv rtmp://8.134.146.151/live/camera
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}