[FFmpeg-user] Incorrect pkt_duration shown by ffprobe

Pieter VanWyk pieter.vanWyk at avigilon.com
Sat Apr 7 01:35:20 EEST 2018


Hi all,

I am analyzing a video stream which streams at 13 frames per second. In its summary (fps and tbr), ffprobe however indicates that the frame rate is 1 fps.

What is confusing is that the pts, dts and best_effort_timestamp values all indicate a frame rate of 13, which is the correct frame rate, but the pkt_duration values indicate a frame rate of 1 fps.

Please see ffprobe output below.

So my question is, what exactly does the pkt_duration values represent? Is it the difference between pts values of the frames or is it something else?

Thanks!



ffprobe.exe rtsp://administrator:@10.42.112.66/defaultPrimary-0?streamType=u -analyzeduration 6000000 -show_frames -allowed_media_types video -print_format compact
ffprobe version 3.2 Copyright (c) 2007-2016 the FFmpeg developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.100 / 57. 64.100
  libavformat    57. 56.100 / 57. 56.100
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
Input #0, rtsp, from 'rtsp://administrator:@10.42.112.66/defaultPrimary-0?streamType=u':
  Metadata:
    title           : Live
  Duration: N/A, start: -0.440056, bitrate: N/A
    Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], 1 fps, 1 tbr, 90k tbn, 2 tbc
frame|media_type=video|stream_index=0|key_frame=1|pkt_pts=-39605|pkt_pts_time=-0.440056|pkt_dts=-39605|pkt_dts_time=-0.440056|best_effort_timestamp=-39605|best_effort_timestamp_time=-0.440056|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=47212|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=9895|pkt_pts_time=0.109944|pkt_dts=9895|pkt_dts_time=0.109944|best_effort_timestamp=9895|best_effort_timestamp_time=0.109944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=6164|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=1|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=16645|pkt_pts_time=0.184944|pkt_dts=16645|pkt_dts_time=0.184944|best_effort_timestamp=16645|best_effort_timestamp_time=0.184944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=6443|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=2|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=23395|pkt_pts_time=0.259944|pkt_dts=23395|pkt_dts_time=0.259944|best_effort_timestamp=23395|best_effort_timestamp_time=0.259944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=5890|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=3|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=30145|pkt_pts_time=0.334944|pkt_dts=30145|pkt_dts_time=0.334944|best_effort_timestamp=30145|best_effort_timestamp_time=0.334944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=5844|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=4|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=36895|pkt_pts_time=0.409944|pkt_dts=36895|pkt_dts_time=0.409944|best_effort_timestamp=36895|best_effort_timestamp_time=0.409944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=5293|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=5|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=43645|pkt_pts_time=0.484944|pkt_dts=43645|pkt_dts_time=0.484944|best_effort_timestamp=43645|best_effort_timestamp_time=0.484944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=5139|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=6|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=50395|pkt_pts_time=0.559944|pkt_dts=50395|pkt_dts_time=0.559944|best_effort_timestamp=50395|best_effort_timestamp_time=0.559944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=5101|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=7|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=57145|pkt_pts_time=0.634944|pkt_dts=57145|pkt_dts_time=0.634944|best_effort_timestamp=57145|best_effort_timestamp_time=0.634944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=5276|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=8|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=63895|pkt_pts_time=0.709944|pkt_dts=63895|pkt_dts_time=0.709944|best_effort_timestamp=63895|best_effort_timestamp_time=0.709944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=4914|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=9|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=70645|pkt_pts_time=0.784944|pkt_dts=70645|pkt_dts_time=0.784944|best_effort_timestamp=70645|best_effort_timestamp_time=0.784944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=4908|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=10|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=77395|pkt_pts_time=0.859944|pkt_dts=77395|pkt_dts_time=0.859944|best_effort_timestamp=77395|best_effort_timestamp_time=0.859944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=4955|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=11|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=84145|pkt_pts_time=0.934944|pkt_dts=84145|pkt_dts_time=0.934944|best_effort_timestamp=84145|best_effort_timestamp_time=0.934944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=4970|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=12|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=90895|pkt_pts_time=1.009944|pkt_dts=90895|pkt_dts_time=1.009944|best_effort_timestamp=90895|best_effort_timestamp_time=1.009944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=4982|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=13|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=97645|pkt_pts_time=1.084944|pkt_dts=97645|pkt_dts_time=1.084944|best_effort_timestamp=97645|best_effort_timestamp_time=1.084944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=4913|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=14|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=104395|pkt_pts_time=1.159944|pkt_dts=104395|pkt_dts_time=1.159944|best_effort_timestamp=104395|best_effort_timestamp_time=1.159944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=4747|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=15|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=111145|pkt_pts_time=1.234944|pkt_dts=111145|pkt_dts_time=1.234944|best_effort_timestamp=111145|best_effort_timestamp_time=1.234944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=4671|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=16|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=117895|pkt_pts_time=1.309944|pkt_dts=117895|pkt_dts_time=1.309944|best_effort_timestamp=117895|best_effort_timestamp_time=1.309944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=4714|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=17|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=124645|pkt_pts_time=1.384944|pkt_dts=124645|pkt_dts_time=1.384944|best_effort_timestamp=124645|best_effort_timestamp_time=1.384944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=4650|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=18|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=131395|pkt_pts_time=1.459944|pkt_dts=131395|pkt_dts_time=1.459944|best_effort_timestamp=131395|best_effort_timestamp_time=1.459944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=4657|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=19|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=138145|pkt_pts_time=1.534944|pkt_dts=138145|pkt_dts_time=1.534944|best_effort_timestamp=138145|best_effort_timestamp_time=1.534944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=4516|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=20|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=144895|pkt_pts_time=1.609944|pkt_dts=144895|pkt_dts_time=1.609944|best_effort_timestamp=144895|best_effort_timestamp_time=1.609944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=4855|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=21|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=151645|pkt_pts_time=1.684944|pkt_dts=151645|pkt_dts_time=1.684944|best_effort_timestamp=151645|best_effort_timestamp_time=1.684944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=5078|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=22|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=158395|pkt_pts_time=1.759944|pkt_dts=158395|pkt_dts_time=1.759944|best_effort_timestamp=158395|best_effort_timestamp_time=1.759944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=4976|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=23|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=165145|pkt_pts_time=1.834944|pkt_dts=165145|pkt_dts_time=1.834944|best_effort_timestamp=165145|best_effort_timestamp_time=1.834944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=4959|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=24|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=171895|pkt_pts_time=1.909944|pkt_dts=171895|pkt_dts_time=1.909944|best_effort_timestamp=171895|best_effort_timestamp_time=1.909944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=4860|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=25|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
frame|media_type=video|stream_index=0|key_frame=0|pkt_pts=178645|pkt_pts_time=1.984944|pkt_dts=178645|pkt_dts_time=1.984944|best_effort_timestamp=178645|best_effort_timestamp_time=1.984944|pkt_duration=90000|pkt_duration_time=1.000000|pkt_pos=N/A|pkt_size=4794|width=3840|height=2160|pix_fmt=yuvj420p|sample_aspect_ratio=1:1|pict_type=P|coded_picture_number=26|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0



More information about the ffmpeg-user mailing list