Skip to content

Commit 2be7c55

Browse files
committed
- [!] ffcvt enable parallel execution
1 parent 83c4038 commit 2be7c55

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

ffcvt.go

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ const _encodedExt = "_.mkv"
4141
// Global variables definitions
4242

4343
var (
44-
version = "1.8.0"
45-
date = "2022-02-12"
44+
version = "1.8.1"
45+
date = "2022-12-18"
4646

4747
encodedExt string = _encodedExt
4848
totalOrg int64 = 1
@@ -130,7 +130,6 @@ cut_ok:
130130
getDefault()
131131
//fmt.Fprintf(os.Stderr, "Defaults: '%+v'\n", Defaults)
132132

133-
134133
encodedExt = Opts.Ext
135134
// Sanity check
136135
if Opts.WDirectory != "" {
@@ -209,8 +208,8 @@ func appendVideo(fname string) {
209208
if strings.Index(Opts.Exts, fext) < 0 {
210209
// None-video files, dup to dest, hardlink 1st else copy
211210
if Opts.WDirectory != "" {
212-
src := Opts.Directory+ "/" + fname
213-
dst := Opts.WDirectory+ "/" + fname
211+
src := Opts.Directory + "/" + fname
212+
dst := Opts.WDirectory + "/" + fname
214213
err := linkFile(src, dst)
215214
if err != nil {
216215
copyFile(src, dst)
@@ -273,6 +272,12 @@ func transcodeVideos(startTime time.Time) {
273272
videosTotal := len(videos)
274273
for i, inputName := range videos {
275274
videoNdx := i + 1
275+
276+
if Opts.NoClobber && fileExist(getOutputName(inputName)) {
277+
debug("Encoded file exist for: "+inputName, 1)
278+
continue
279+
}
280+
276281
fmt.Printf("\n== Transcoding [%d/%d]: '%s'\n under %s\n",
277282
videoNdx, videosTotal, filepath.Base(inputName), filepath.Dir(inputName))
278283
transcodeFile(inputName)

0 commit comments

Comments
 (0)