Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Use your FFProbe binary to gather quality information about your video files

Usage

WARNING: the code below doesn't handle errors for readibility purposes. However you SHOULD!

// Build astiffprobe
var f = astiffprobe.New(astiffprobe.Configuration{BinaryPath: <your binary path>})

// Retrieve format
var fmt astiffprobe.Format
fmt, _ = f.Format(context.Background(), <your input path>)

// Retrieve streams
var streams []astiffprobe.Stream
streams, _ = f.Streams(context.Background(), <your input path>)

// Retrieve frames
var frames []astiffprobe.Frame
frames, _ = f.Frames(context.Background(), <your input path>, <your stream index>)

// Retrieve packets
var packets []astiffprobe.Packet
packets, _ = f.Packets(context.Background(), <your input path>, <your stream index>)

// Retrieve packets ordered by PTS
packets, _ = f.PacketsOrdered(context.Background(), <your input path>, <your stream index>)

About

Use your FFProbe binary to gather quality information about your video files

Topics

Resources

License

Releases

No releases published

Packages

No packages published

Languages