Added support for DVR option in TS input
This commit is contained in:
		
							parent
							
								
									adb76e2cf8
								
							
						
					
					
						commit
						08dc361e06
					
				
					 1 changed files with 13 additions and 0 deletions
				
			
		|  | @ -129,6 +129,19 @@ namespace Mist { | |||
|     capa["codecs"][0u][1u].append("MP2"); | ||||
|     inFile = NULL; | ||||
|     inputProcess = 0; | ||||
| 
 | ||||
|     JSON::Value option; | ||||
|     option["arg"] = "integer"; | ||||
|     option["long"] = "buffer"; | ||||
|     option["short"] = "b"; | ||||
|     option["help"] = "DVR buffer time in ms"; | ||||
|     option["value"].append(50000LL); | ||||
|     config->addOption("bufferTime", option); | ||||
|     capa["optional"]["DVR"]["name"] = "Buffer time (ms)"; | ||||
|     capa["optional"]["DVR"]["help"] = "The target available buffer time for this live stream, in milliseconds. This is the time available to seek around in, and will automatically be extended to fit whole keyframes as well as the minimum duration needed for stable playback."; | ||||
|     capa["optional"]["DVR"]["option"] = "--buffer"; | ||||
|     capa["optional"]["DVR"]["type"] = "uint"; | ||||
|     capa["optional"]["DVR"]["default"] = 50000LL; | ||||
|   } | ||||
| 
 | ||||
|   inputTS::~inputTS() { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Thulinma
						Thulinma