Skip to content

Commit

Permalink
Use genpts
Browse files Browse the repository at this point in the history
  • Loading branch information
zoriya committed Aug 21, 2024
1 parent bf40557 commit 5350991
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions transcoder/src/keyframes.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ func getVideoKeyframes(path string, video_idx uint32, kf *Keyframe) error {
"-loglevel", "error",
"-select_streams", fmt.Sprintf("V:%d", video_idx),
"-show_entries", "packet=pts_time,flags",
// some avi files don't have pts, we use this to ask ffmpeg to generate them (it uses the dts under the hood)
"-fflags", "+genpts",
"-of", "csv=print_section=0",
path,
)
Expand Down

0 comments on commit 5350991

Please sign in to comment.