Videos: Log original file name if transcoding failed #1337

This commit is contained in:
Michael Mayer 2021-09-29 11:51:57 +02:00
parent 479e26dccb
commit fce13182e6

View file

@ -467,7 +467,7 @@ func (c *Convert) ToAvc(f *MediaFile, encoderName string) (file *MediaFile, err
}
// Log filename and transcoding time.
log.Warnf("%s: failed transcoding %s [%s]", encoderName, filepath.Base(avcName), time.Since(start))
log.Warnf("%s: failed transcoding %s [%s]", encoderName, fileName, time.Since(start))
if encoderName != DefaultAvcEncoder {
return c.ToAvc(f, DefaultAvcEncoder)