video_streamer_vlc
/build/rock-master-18.09-drivers-orogen-video-streamer-vlc-0.20180208/VLCConfig.hpp
Go to the documentation of this file.
1 
8 #ifndef VLCCONFIG_H
9 #define VLCCONFIG_H
10 
11 #include <string>
12 
13 namespace video_streamer_vlc
14 {
15  struct Config{
16 
17  /*
18  * image width in pixel, default 640
19  */
20  unsigned int frame_width;
21 
22  /*
23  * image height in pixel, default 480
24  */
25  unsigned int frame_height;
26 
27  /*
28  * Frames per second, default 30
29  */
30  unsigned int fps;
31 
32  /*
33  * bitrate of encoded video stream, default 500
34  */
35  unsigned int bitrate;
36 
37  /*
38  * Raw configuraion, if set all other config values are overridden.
39  * The string then is constructed from:
40  * # #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}"
41  */
42  std::string raw_config;
43 
44  /*
45  * Video codec decoding information, default MJPEG
46  */
47  std::string vcodec;
48 
49  /*
50  * Used Muxer, default mpjpeg
51  */
52 
53  std::string mux;
54  /*
55  * Destination url for stream, default http://127.0.0.1:8080/video.mjpg
56  */
57  std::string dst;
58 
59  /*
60  * Destination access, see vlc documentation
61  */
62  std::string access;
63 
64  Config(){
65  frame_width = 640;
66  frame_height = 480;
67  fps = 30;
68  vcodec = std::string("MJPG");
69  bitrate = 500;
70  mux = std::string("mpjpeg");
71  dst = std::string("127.0.0.1:8080/video.mjpg");
72  access = std::string("http{mime=multipart/x-mixed-replace; boundary=--7b3cc56e5f51db803f790dad720ed50a}");
73  }
74  };
75 
76  struct PortConfig{
78  std::string port_name;
79  };
80 };
81 
82 
83 #endif
std::string mux
Definition: VLCConfig.hpp:53
unsigned int bitrate
Definition: VLCConfig.hpp:35
std::string raw_config
Definition: VLCConfig.hpp:42
Definition: Capturer.hpp:9
Config()
Definition: VLCConfig.hpp:64
Definition: VLCConfig.hpp:15
std::string port_name
Definition: VLCConfig.hpp:78
unsigned int fps
Definition: VLCConfig.hpp:30
unsigned int frame_height
Definition: VLCConfig.hpp:25
Definition: VLCConfig.hpp:76
std::string dst
Definition: VLCConfig.hpp:57
Config config
Definition: VLCConfig.hpp:77
std::string access
Definition: VLCConfig.hpp:62
std::string vcodec
Definition: VLCConfig.hpp:47
unsigned int frame_width
Definition: VLCConfig.hpp:20