Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Commit d2075cd

Browse files
author
Philip Ye
committed
add NbFrames
1 parent f331fbc commit d2075cd

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

ffmpeg/metadata.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ type Streams struct {
4848
DivxPacked string `json:"divx_packed"`
4949
RFrameRrate string `json:"r_frame_rate"`
5050
AvgFrameRate string `json:"avg_frame_rate"`
51+
NbFrames string `json:"nb_frames"`
5152
TimeBase string `json:"time_base"`
5253
DurationTs int `json:"duration_ts"`
5354
Duration string `json:"duration"`
@@ -264,6 +265,11 @@ func (s Streams) GetAvgFrameRate() string {
264265
return s.AvgFrameRate
265266
}
266267

268+
//GetNbFrames ...
269+
func (s Streams) GetNbFrames() string {
270+
return s.NbFrames
271+
}
272+
267273
//GetTimeBase ...
268274
func (s Streams) GetTimeBase() string {
269275
return s.TimeBase

metadata.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ type Streams interface {
4646
GetDivxPacked() string
4747
GetRFrameRrate() string
4848
GetAvgFrameRate() string
49+
GetNbFrames() string
4950
GetTimeBase() string
5051
GetDurationTs() int
5152
GetDuration() string

0 commit comments

Comments
 (0)