Skip to content

Commit

Permalink
define pixfm
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikvedvik committed Sep 15, 2023
1 parent 25d0fa9 commit 8130e0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 28 deletions.
26 changes: 0 additions & 26 deletions services/transcode/merge_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package transcode

import (
"fmt"
"github.com/bcc-code/bccm-flows/common"
"github.com/stretchr/testify/assert"
"testing"
)

Expand Down Expand Up @@ -62,27 +60,3 @@ func Test_MergeAudio(t *testing.T) {
},
}, nil)
}

func Test_MergeSubtitles(t *testing.T) {
res, err := MergeSubtitles(common.MergeInput{
Title: "Test",
OutputDir: TestRoot,
WorkDir: TestRoot + "tmp/",
Items: []common.MergeInputItem{
{
Start: 10,
End: 30,
Path: TestRoot + "1.srt",
},
{
Start: 50,
End: 80,
Path: TestRoot + "1.srt",
},
},
})

fmt.Println(res)

assert.Nil(t, err)
}
5 changes: 3 additions & 2 deletions services/transcode/video.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@ func VideoH264(input common.VideoInput, cb ffmpeg.ProgressCallback) (*common.Vid
"-hide_banner",
"-progress", "pipe:1",
"-i", input.Path,
"-vf", "yadif=0:-1:0",
"-c:v", h264encoder,
}
switch h264encoder {
case "libx264":
params = append(params,
"-profile:v", "high",
"-level:v", "1.3",
"-crf", "18",
"-pix_fmt", "yuv420p",
//"-crf", "18",
"-vf", "yadif=0:-1:0",
"-maxrate", input.Bitrate,
)
}
Expand Down

0 comments on commit 8130e0a

Please sign in to comment.