mirror of
https://github.com/u2takey/ffmpeg-go.git
synced 2025-10-04 07:36:28 +08:00
15 lines
277 B
Go
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")
|
|
}
|