Video: Improve transcoding logs #703
This commit is contained in:
parent
d9b204a268
commit
4c2a991a66
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue