mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-02 05:04:15 -04:00
Use genpts
This commit is contained in:
parent
6d702e3786
commit
ae2cdab9f1
@ -157,6 +157,8 @@ func getVideoKeyframes(path string, video_idx uint32, kf *Keyframe) error {
|
|||||||
"-loglevel", "error",
|
"-loglevel", "error",
|
||||||
"-select_streams", fmt.Sprintf("V:%d", video_idx),
|
"-select_streams", fmt.Sprintf("V:%d", video_idx),
|
||||||
"-show_entries", "packet=pts_time,flags",
|
"-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",
|
"-of", "csv=print_section=0",
|
||||||
path,
|
path,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user