ffprobe 提取视频关键帧I帧时间戳

ffprobe -loglevel error -skip_frame nokey -select_streams v:0 -show_entries frame=pkt_pts_time -of csv=print_section=0 "video.mp4" > frames_i.txt

结果是:

0.000000

0.967633

1.935267

2.902900

3.870533

4.838167

5.805800

6.773433

7.741067

8.708700

9.676333

10.643967

11.611600

12.579233

13.546867

14.514500

15.482133

16.449767

17.417400

18.385033

19.352667

20.320300

21.287933

22.255567

23.223200

24.190833

25.158467

26.126100

27.093733

28.061367

29.029000

29.996633

30.964267

31.931900

32.899533

33.867167

34.834800

35.802433

36.770067

37.737700

38.705333

39.672967

40.640600

41.608233

42.575867

43.543500

44.511133

45.478767

46.446400

47.414033

48.381667

49.349300

50.316933

51.284567

52.252200

53.219833

54.054000

55.021633

55.989267

56.956900

57.924533

58.892167

59.859800

60.827433

61.795067

62.195467

63.163100

64.130733

65.098367

66.066000

67.033633

68.001267

68.968900

69.936533

70.904167

71.871800

72.839433

73.807067

74.774700

75.742333

76.709967

77.677600

78.645233

79.612867

80.580500

81.548133

82.515767

83.483400

84.451033

85.418667

86.386300

87.353933

88.321567

89.289200

90.256833

91.224467

92.192100

93.159733

93.793700

94.761333

95.528767

96.496400

97.464033

98.431667

99.132367

100.100000

101.067633

101.334567

102.302200

103.269833

103.736967

104.704600

105.672233

106.506400

107.474033

108.441667

109.409300

110.376933

111.344567

112.312200

113.279833

114.247467

115.215100

猜你喜欢

转载自blog.csdn.net/heshuangqiang/article/details/126652103