MistServer  2.5.3-Pro-19-gf5e75b1 ( Generic_64)
output_ts_base.h
Go to the documentation of this file.
1 #include <mist/defines.h>
2 #include "output.h"
3 #include "output_http.h"
4 #include <mist/mp4_generic.h>
5 #include <mist/ts_packet.h>
6 
7 #ifndef TS_BASECLASS
8 #define TS_BASECLASS Output
9 #endif
10 
11 namespace Mist {
12 
13  class TSOutput : public TS_BASECLASS {
14  public:
16  virtual ~TSOutput(){};
17  void sendNext();
18  virtual void sendTS(const char * tsData, unsigned int len=188){};
19  void fillPacket(const char * data, const size_t dataLen);
20  protected:
21  std::map<unsigned int, bool> first;
22  std::map<unsigned int, int> contCounters;
23  unsigned int packCounter;
25  bool haveAvcc;
28  /*LTS-START*/
29  bool haveHvcc;
31  /*LTS-END*/
33  long long unsigned int ts_from;
34  long long unsigned int until;
35  long long unsigned int lastVid;
36  };
37 }
#define TS_BASECLASS
Definition: output_ts_base.h:8
MP4::HVCC hvccbox
Definition: output_ts_base.h:30
Definition: mp4_generic.h:132
bool appleCompat
Definition: output_ts_base.h:27
bool haveAvcc
Definition: output_ts_base.h:25
long long unsigned int lastVid
Definition: output_ts_base.h:35
Recording to file.
Definition: input.cpp:13
TS::Packet packData
Definition: output_ts_base.h:24
virtual void sendTS(const char *tsData, unsigned int len=188)
Definition: output_ts_base.h:18
long long unsigned int ts_from
Definition: output_ts_base.h:33
virtual ~TSOutput()
Definition: output_ts_base.h:16
Class for reading and writing TS Streams.
Definition: ts_packet.h:21
unsigned int packCounter
Definition: output_ts_base.h:23
long long unsigned int until
Definition: output_ts_base.h:34
void sendNext()
Definition: output_ts_base.cpp:57
bool haveHvcc
Definition: output_ts_base.h:29
Definition: output_ts_base.h:13
MP4::AVCC avccbox
Definition: output_ts_base.h:26
std::map< unsigned int, bool > first
Definition: output_ts_base.h:21
void fillPacket(const char *data, const size_t dataLen)
Definition: output_ts_base.cpp:15
TSOutput(Socket::Connection &conn)
Definition: output_ts_base.cpp:4
This class is for easy communicating through sockets, either TCP or Unix.
Definition: socket.h:47
Definition: mp4_generic.h:100
bool sendRepeatingHeaders
Definition: output_ts_base.h:32
std::map< unsigned int, int > contCounters
Definition: output_ts_base.h:22