mirror of
https://github.com/u2takey/ffmpeg-go.git
synced 2026-04-22 22:57:08 +08:00
15 lines
302 B
Go
15 lines
302 B
Go
package ffmpeg_go
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestCompileWithOptions(t *testing.T) {
|
|
out := Input("dummy.mp4").Output("dummy2.mp4")
|
|
cmd := out.Compile(SeparateProcessGroup())
|
|
assert.Equal(t, cmd.SysProcAttr.Pgid, 0)
|
|
assert.True(t, cmd.SysProcAttr.Setpgid)
|
|
}
|