mirror of
				https://github.com/owncast/owncast.git
				synced 2025-11-01 02:44:31 +08:00 
			
		
		
		
	Update to Go 1.20 + run better align (#2927)
* chore(go): update go version to 1.20. Closes #2185 * chore(go): run better align against project To optimize struct field order. Closes #2870 * chore(go): update CI jobs to use Go 1.20 * fix(go): linter warnings for Go 1.20 update
This commit is contained in:
		| @ -22,37 +22,40 @@ var _commandExec *exec.Cmd | ||||
|  | ||||
| // Transcoder is a single instance of a video transcoder. | ||||
| type Transcoder struct { | ||||
| 	input                string | ||||
| 	stdin                *io.PipeReader | ||||
| 	segmentOutputPath    string | ||||
| 	codec Codec | ||||
|  | ||||
| 	stdin *io.PipeReader | ||||
|  | ||||
| 	TranscoderCompleted  func(error) | ||||
| 	playlistOutputPath   string | ||||
| 	variants             []HLSVariant | ||||
| 	appendToStream       bool | ||||
| 	ffmpegPath           string | ||||
| 	segmentIdentifier    string | ||||
| 	internalListenerPort string | ||||
| 	codec                Codec | ||||
| 	input                string | ||||
| 	segmentOutputPath    string | ||||
| 	variants             []HLSVariant | ||||
|  | ||||
| 	currentStreamOutputSettings []models.StreamOutputVariant | ||||
| 	currentLatencyLevel         models.LatencyLevel | ||||
| 	appendToStream              bool | ||||
| 	isEvent                     bool | ||||
|  | ||||
| 	TranscoderCompleted func(error) | ||||
| } | ||||
|  | ||||
| // HLSVariant is a combination of settings that results in a single HLS stream. | ||||
| type HLSVariant struct { | ||||
| 	index int | ||||
| 	audioBitrate string // The audio bitrate | ||||
|  | ||||
| 	videoSize          VideoSize // Resizes the video via scaling | ||||
| 	framerate          int       // The output framerate | ||||
| 	videoBitrate       int       // The output bitrate | ||||
| 	isVideoPassthrough bool      // Override all settings and just copy the video stream | ||||
| 	videoSize VideoSize // Resizes the video via scaling | ||||
| 	index     int | ||||
|  | ||||
| 	audioBitrate       string // The audio bitrate | ||||
| 	isAudioPassthrough bool   // Override all settings and just copy the audio stream | ||||
| 	framerate    int // The output framerate | ||||
| 	videoBitrate int // The output bitrate | ||||
|  | ||||
| 	cpuUsageLevel      int  // The amount of hardware to use for encoding a stream | ||||
| 	isVideoPassthrough bool // Override all settings and just copy the video stream | ||||
|  | ||||
| 	isAudioPassthrough bool // Override all settings and just copy the audio stream | ||||
|  | ||||
| 	cpuUsageLevel int // The amount of hardware to use for encoding a stream | ||||
| } | ||||
|  | ||||
| // VideoSize is the scaled size of the video output. | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Gabe Kangas
					Gabe Kangas