fix: preserve stream language metadata using ffprobe and -map_metadata -1
This commit is contained in:
+6
-1
@@ -89,6 +89,11 @@ func processFile(inputPath string, cfg *types.Config, enc *encoder.Encoder, meta
|
||||
return err
|
||||
}
|
||||
|
||||
streamLangs, err := enc.GetStreamLanguages(inputPath)
|
||||
if err != nil {
|
||||
log.ErrorFile(inputPath, "Getting stream languages", err.Error())
|
||||
}
|
||||
|
||||
mediaType := watcher.DetectMediaType(width, height)
|
||||
crf := cfg.Encoding.DVD.CRF
|
||||
preset := cfg.Encoding.DVD.Preset
|
||||
@@ -128,7 +133,7 @@ func processFile(inputPath string, cfg *types.Config, enc *encoder.Encoder, meta
|
||||
DeleteOrigin: deleteOrigin,
|
||||
}
|
||||
|
||||
if err := enc.Transcode(inputPath, job, meta, interlaced); err != nil {
|
||||
if err := enc.Transcode(inputPath, job, meta, interlaced, streamLangs); 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