2

I'm new to this and I don't really understand a lot of things yet. The following command tells me which line the video keyframe is on:

ffprobe -select_streams v -show_frames -show_entries frame=pict_type -of csv 720_000000.mp4 > IFrames1.txt

results:

...
[43] frame,B
[44] frame,P
[45] frame,B
[46] frame,B
[47] frame,B
[48] frame,P
[49] frame,B
[50] frame,B
[51] frame,P
[52] frame,I <-------
[53] frame,B
[54] frame,B
[55] frame,B
...

my example above only shows a result with the line where it is, but I would like to know in what second and minute it is, for example:

Iframes     Seconds
1           0
49          2
97          4
145         6
193         8
241         10
289         12
337         14
385         16
433         18
481         20
529         22
577         24
625         26
673         28
721         30
769         32
817         34
865         36
913         38
961         40
1009        42
1057        44
1105        46
1153        48
1201        50
1249        52
1297        54
1345        56
1393        58

maybe all this sounds very silly, I tried to replicate the command from one of the answers on this link, but I just get errors, and my level (account) is too low to respond and ask for details.

iframes positions

I really appreciate any help

1 Answers1

4

Use

ffprobe -select_streams v -show_entries frame=pict_type,pts_time -of csv=p=0 -skip_frame nokey -i INPUT > Iframes.txt

Gyan
  • 38,955