I'm trying to understand why my recorded video is not smooth. I'm using a USB capture device and OBS/ffmpeg software. OBS Stats doesn't show any skipped/missed frames during recording.
Using this command on the resulting file (H264, mkv)
ffprobe -v quiet -pretty -print_format csv -show_entries "frame=coded_picture_number,pkt_pts,pkt_duration,pict_type," -select_streams v:0 test.mkv > output.csv
I see an output like this one:
frame,33,33,I,0
frame,67,33,P,1
frame,100,33,I,2
frame,133,33,I,3
frame,167,33,P,4
frame,200,33,I,5
frame,233,33,P,6
frame,267,33,I,7
frame,300,33,B,9
frame,333,33,P,8
frame,367,33,I,10
frame,400,33,P,11
frame,433,33,I,12
frame,467,33,B,14
frame,500,33,P,13
frame,533,33,I,15
frame,567,33,P,16
frame,600,33,I,17
frame,633,33,B,19
frame,667,33,P,18
frame,700,33,I,20
frame,733,33,B,22
frame,767,33,P,21
frame,800,33,I,23
frame,833,33,B,25
frame,867,33,P,24
frame,900,33,I,26
frame,933,33,B,28
frame,967,33,P,27
frame,1000,33,I,29
...
If I understood correclty the last number refers to presentation order and the second number is the video relative time. Frame number 9 (type B) is shown at 300 ms while frame number 8 (type P) is shown at 333 ms.
Is it correct? If not, is this the stuttering source and is there a way for fixing the order?