feat: simplify console logs

This commit is contained in:
Gabe Kangas
2023-06-05 08:44:14 -07:00
parent a38acbc523
commit 3ed5a0b7f3
4 changed files with 15 additions and 8 deletions

View File

@ -55,7 +55,6 @@ type HLSVariant struct {
isVideoPassthrough bool // Override all settings and just copy the video stream
isAudioPassthrough bool // Override all settings and just copy the audio stream
}
// VideoSize is the scaled size of the video output.
@ -112,11 +111,13 @@ func (t *Transcoder) Stop() {
}
// Start will execute the transcoding process with the settings previously set.
func (t *Transcoder) Start() {
func (t *Transcoder) Start(shouldLog bool) {
_lastTranscoderLogMessage = ""
command := t.getString()
log.Infof("Video transcoder started using %s with %d stream variants.", t.codec.DisplayName(), len(t.variants))
if shouldLog {
log.Infof("Processing video using codec %s with %d output qualities configured.", t.codec.DisplayName(), len(t.variants))
}
createVariantDirectories()
if config.EnableDebugFeatures {