Files
ffmpeg-go/probe_test.go
wanglei.w 5a1890c3e8 add example; add escape
move sample data
2020-11-11 22:43:19 +08:00

15 lines
277 B
Go

package ffmpeg_go
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/tidwall/gjson"
)
func TestProbe(t *testing.T) {
data, err := Probe(TestInputFile1, nil)
assert.Nil(t, err)
assert.Equal(t, gjson.Get(data, "format.duration").String(), "7.036000")
}