Livepeer transcoding support
This commit is contained in:
parent
753da9bd3f
commit
de4890ac20
12 changed files with 647 additions and 16 deletions
|
@ -23,7 +23,7 @@
|
|||
|
||||
tthread::mutex threadClaimMutex;
|
||||
std::string globalStreamName;
|
||||
TS::Stream liveStream(true);
|
||||
TS::Stream liveStream;
|
||||
Util::Config *cfgPointer = NULL;
|
||||
|
||||
#define THREAD_TIMEOUT 15
|
||||
|
@ -230,6 +230,7 @@ namespace Mist{
|
|||
|
||||
/// Live Setup of TS Input
|
||||
bool inputTS::preRun(){
|
||||
INFO_MSG("Prerun: %s", config->getString("input").c_str());
|
||||
// streamed standard input
|
||||
if (config->getString("input") == "-"){
|
||||
standAlone = false;
|
||||
|
@ -286,6 +287,14 @@ namespace Mist{
|
|||
standAlone = false;
|
||||
return inFile;
|
||||
}
|
||||
//file descriptor input
|
||||
if (config->getString("input").substr(0, 5) == "fd://"){
|
||||
int fd = atoi(config->getString("input").c_str() + 5);
|
||||
INFO_MSG("Opening file descriptor %s (%d)", config->getString("input").c_str(), fd);
|
||||
tcpCon.open(-1, fd);
|
||||
standAlone = false;
|
||||
return tcpCon;
|
||||
}
|
||||
// UDP input (tsudp://[host:]port[/iface[,iface[,...]]])
|
||||
if (config->getString("input").substr(0, 8) == "tsudp://"){
|
||||
standAlone = false;
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace Mist{
|
|||
public:
|
||||
inputTS(Util::Config *cfg);
|
||||
~inputTS();
|
||||
bool needsLock();
|
||||
virtual bool needsLock();
|
||||
|
||||
virtual std::string getConnectedBinHost(){
|
||||
if (tcpCon){return tcpCon.getBinHost();}
|
||||
|
@ -24,8 +24,8 @@ namespace Mist{
|
|||
bool checkArguments();
|
||||
bool preRun();
|
||||
bool readHeader();
|
||||
bool needHeader();
|
||||
void getNext(size_t idx = INVALID_TRACK_ID);
|
||||
virtual bool needHeader();
|
||||
virtual void getNext(size_t idx = INVALID_TRACK_ID);
|
||||
void seek(uint64_t seekTime, size_t idx = INVALID_TRACK_ID);
|
||||
void readPMT();
|
||||
bool openStreamSource();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue