add: add interlaced detection and bwdif deinterlacing
This commit is contained in:
+2
-2
@@ -82,7 +82,7 @@ func processFile(inputPath string, cfg *types.Config, enc *encoder.Encoder, meta
|
||||
filename := filepath.Base(inputPath)
|
||||
isSeries, imdbID, tvmazeID, season, episode := metadata.ParseFilename(filename)
|
||||
|
||||
width, height, err := enc.GetMediaInfo(inputPath)
|
||||
width, height, interlaced, err := enc.GetMediaInfo(inputPath)
|
||||
if err != nil {
|
||||
log.ErrorFile(inputPath, "Getting media info", err.Error())
|
||||
mover.MoveToFailed(inputPath, cfg.Paths.Failed)
|
||||
@@ -128,7 +128,7 @@ func processFile(inputPath string, cfg *types.Config, enc *encoder.Encoder, meta
|
||||
DeleteOrigin: deleteOrigin,
|
||||
}
|
||||
|
||||
if err := enc.Transcode(inputPath, job, meta); err != nil {
|
||||
if err := enc.Transcode(inputPath, job, meta, interlaced); err != nil {
|
||||
log.ErrorFile(inputPath, "Transcoding", err.Error())
|
||||
mover.MoveToFailed(inputPath, cfg.Paths.Failed)
|
||||
outputPath := filepath.Join(filepath.Dir(inputPath), "output.mkv")
|
||||
|
||||
Reference in New Issue
Block a user