-
Notifications
You must be signed in to change notification settings - Fork 0
/
VLCConfig.hpp
executable file
·83 lines (68 loc) · 2.02 KB
/
VLCConfig.hpp
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/**
* Author: Matthias Goldhoorn ([email protected])
* Company: Deutsches Forschungszentrum für Künstliche Intelligenz - Robotics Innovation Center (DFKI RIC)
* Year 2014
* Desc:
*
*/
#ifndef VLCCONFIG_H
#define VLCCONFIG_H
#include <string>
namespace video_streamer_vlc
{
struct Config{
/*
* image width in pixel, default 640
*/
unsigned int frame_width;
/*
* image height in pixel, default 480
*/
unsigned int frame_height;
/*
* Frames per second, default 30
*/
unsigned int fps;
/*
* bitrate of encoded video stream, default 500
*/
unsigned int bitrate;
/*
* Raw configuraion, if set all other config values are overridden.
* The string then is constructed from:
* # #transcode{vcodec=MJPG, vb=500}:std{access=http{mime=multipart/x-mixed-replace; boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=127.0.0.1:8080/video.mjpg}"
*/
std::string raw_config;
/*
* Video codec decoding information, default MJPEG
*/
std::string vcodec;
/*
* Used Muxer, default mpjpeg
*/
std::string mux;
/*
* Destination url for stream, default http://127.0.0.1:8080/video.mjpg
*/
std::string dst;
/*
* Destination access, see vlc documentation
*/
std::string access;
Config(){
frame_width = 640;
frame_height = 480;
fps = 30;
vcodec = std::string("MJPG");
bitrate = 500;
mux = std::string("mpjpeg");
dst = std::string("127.0.0.1:8080/video.mjpg");
access = std::string("http{mime=multipart/x-mixed-replace; boundary=--7b3cc56e5f51db803f790dad720ed50a}");
}
};
struct PortConfig{
Config config;
std::string port_name;
};
};
#endif