Documentation
¶
Overview ¶
Package ffprobe wraps the go-astiav CGo bindings to inspect media files.
Index ¶
Constants ¶
const ( CodecNameH264 = "h264" CodecNameH265 = "hevc" )
Video codec name constants as reported by ffprobe in StreamInfo.CodecName.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MediaInfo ¶
type MediaInfo struct {
Format string
Duration time.Duration
BitsPerSecond int64
Tags map[string]string
Streams []StreamInfo
}
MediaInfo holds top-level metadata for a media container.
type StreamInfo ¶
type StreamInfo struct {
Index int
CodecName string
CodecType CodecType
BitsPerSecond int64
Tags map[string]string
// Video-only fields (zero for non-video streams).
WidthPixels int
HeightPixels int
FramesPerSecond float64
// Audio-only fields (zero for non-audio streams).
AudioSampleRateHz int
AudioChannelCount int
// HasLFE is true when the audio stream's channel layout includes a dedicated
// Low Frequency Effects (subwoofer) channel. Always false for non-audio streams.
HasLFE bool
}
StreamInfo holds per-stream metadata.