Video: Improve transcoding logs #703

This commit is contained in:
Michael Mayer 2021-02-15 23:40:14 +01:00
parent d9b204a268
commit 4c2a991a66

View file

@ -382,7 +382,7 @@ func (c *Convert) ToAvc(f *MediaFile, codecName string) (file *MediaFile, err er
avcName = fs.FileName(f.FileName(), c.conf.SidecarPath(), c.conf.OriginalsPath(), fs.AvcExt)
fileName := f.RelName(c.conf.OriginalsPath())
log.Infof("converting %s to %s", fileName, fs.FormatAvc)
log.Infof("converting %s to %s (%s)", fileName, fs.FormatAvc, codecName)
event.Publish("index.converting", event.Data{
"fileType": f.FileType(),
@ -423,6 +423,8 @@ func (c *Convert) ToAvc(f *MediaFile, codecName string) (file *MediaFile, err er
err = errors.New(stderr.String())
}
log.Debugf("ffmpeg: %s", err.Error())
if codecName != DefaultAvcCodec {
return c.ToAvc(f, DefaultAvcCodec)
} else {