Renamed SRT input and output to SubRip to prevent confusion with TSSRT
This commit is contained in:
parent
9d295cd9af
commit
9cd08e3a77
6 changed files with 16 additions and 8 deletions
|
@ -483,7 +483,7 @@ makeInput(Folder folder)#LTS
|
|||
makeInput(Playlist playlist)#LTS
|
||||
makeInput(Balancer balancer)#LTS
|
||||
makeInput(RTSP rtsp)#LTS
|
||||
makeInput(SRT srt)#LTS
|
||||
makeInput(SubRip srt)#LTS
|
||||
makeInput(SDP sdp)
|
||||
|
||||
if(SRT_LIB)
|
||||
|
@ -559,7 +559,7 @@ makeOutput(AAC aac http)
|
|||
makeOutput(MP3 mp3 http)
|
||||
makeOutput(H264 h264 http)
|
||||
makeOutput(HDS hds http)
|
||||
makeOutput(SRT srt http)
|
||||
makeOutput(SubRip srt http)
|
||||
makeOutput(JSON json http)
|
||||
option(WITH_JPG "Build JPG thumbnailer output support")
|
||||
if (WITH_JPG)
|
||||
|
|
|
@ -545,6 +545,14 @@ int main_loop(int argc, char **argv){
|
|||
continue;
|
||||
}
|
||||
|
||||
if ((*it)["connector"].asStringRef() == "SRT"){
|
||||
edit = true;
|
||||
JSON::Value newSubRip = *it;
|
||||
newSubRip["connector"] = "SubRip";
|
||||
newVal.append(newSubRip);
|
||||
continue;
|
||||
}
|
||||
|
||||
if ((*it)["connector"].asStringRef() == "CMAF"){foundCMAF = true;}
|
||||
newVal.append(*it);
|
||||
}
|
||||
|
|
|
@ -4,9 +4,9 @@ namespace Mist{
|
|||
|
||||
InputSrt::InputSrt(Util::Config *cfg) : Input(cfg){
|
||||
vtt = false;
|
||||
capa["name"] = "SRT";
|
||||
capa["name"] = "SubRip";
|
||||
capa["decs"] =
|
||||
"This input allows streaming of SRT and WebVTT subtitle files as Video on Demand.";
|
||||
"This input allows streaming of SubRip (SRT and WebVTT) subtitle files as Video on Demand.";
|
||||
capa["source_match"].append("/*.srt");
|
||||
capa["source_match"].append("/*.vtt");
|
||||
capa["priority"] = 9;
|
||||
|
|
|
@ -14,7 +14,7 @@ inputs = [
|
|||
{'name' : 'Playlist', 'format' : 'playlist'},
|
||||
{'name' : 'Balancer', 'format' : 'balancer'},
|
||||
{'name' : 'RTSP', 'format' : 'rtsp'},
|
||||
{'name' : 'SRT', 'format' : 'srt'},
|
||||
{'name' : 'SubRip', 'format' : 'srt'},
|
||||
{'name' : 'SDP', 'format' : 'sdp'},
|
||||
{'name' : 'AAC', 'format' : 'aac'},
|
||||
{'name' : 'FLAC', 'format' : 'flac'},
|
||||
|
|
|
@ -10,7 +10,7 @@ outputs = [
|
|||
{'name' : 'MP3', 'format' : 'mp3', 'extra': ['http']},
|
||||
{'name' : 'H264', 'format' : 'h264', 'extra': ['http']},
|
||||
{'name' : 'HDS', 'format' : 'hds', 'extra': ['http']},
|
||||
{'name' : 'SRT', 'format' : 'srt', 'extra': ['http']},
|
||||
{'name' : 'SubRip', 'format' : 'srt', 'extra': ['http']},
|
||||
{'name' : 'JSON', 'format' : 'json', 'extra': ['http']},
|
||||
{'name' : 'TS', 'format' : 'ts', 'extra': ['ts']},
|
||||
{'name' : 'HTTPTS', 'format' : 'httpts', 'extra': ['http', 'ts']},
|
||||
|
|
|
@ -10,8 +10,8 @@ namespace Mist{
|
|||
|
||||
void OutSRT::init(Util::Config *cfg){
|
||||
HTTPOutput::init(cfg);
|
||||
capa["name"] = "SRT";
|
||||
capa["friendly"] = "SubRip/WebVTT over HTTP";
|
||||
capa["name"] = "SubRip";
|
||||
capa["friendly"] = "SubRip (SRT/WebVTT) over HTTP";
|
||||
capa["desc"] = "Pseudostreaming in SubRip Text (SRT) and WebVTT formats over HTTP";
|
||||
capa["url_match"].append("/$.srt");
|
||||
capa["url_match"].append("/$.vtt");
|
||||
|
|
Loading…
Add table
Reference in a new issue