Skip to content

Commit a95d151

Browse files
committed
πŸ“ Add documentation for FFprobe
1 parent f03f1af commit a95d151

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ case <-done:
6767
}
6868
```
6969

70+
FFprobe is also available for use and returns a map[string]interface{} of JSON data:
71+
```go
72+
data := fluentffmpeg.Probe("./video.avi")
73+
```
74+
7075
## Credits
7176

7277
This repo was inspired by [node-fluent-ffmpeg](https://github.com/fluent-ffmpeg/node-fluent-ffmpeg) and was built upon the work done by [@bitcodr](https://github.com/bitcodr/) in the https://github.com/bitcodr/gompeg

β€Žexample/probe/probe.goβ€Ž

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package main
2+
3+
import (
4+
"fmt"
5+
6+
fluentffmpeg "github.com/modfy/fluent-ffmpeg"
7+
)
8+
9+
func main() {
10+
data, _ := fluentffmpeg.Probe("./video.avi")
11+
12+
fmt.Println(data["format"])
13+
}

0 commit comments

Comments
Β (0)