Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#9543 closed defect (invalid)

ffprobe doesn't show 'pkt_pts_time' entries

Reported by: slycordinator Owned by:
Priority: normal Component: ffprobe
Version: unspecified Keywords: pkt_pts_time
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
ffrobe does not show pkt_pts_time entries for frames.
How to reproduce:

% ffprobe -i filename.mp4 -show_frames -show_entries frame=pkt_pts_time
output-
[FRAME]
[/FRAME]
(with above repeated for each frame)
% ffprobe -i filename.mp4 -show_frames
sample output for one frame
[FRAME]
media_type=video
stream_index=0
key_frame=0
pts=627360
pts_time=39.210000
pkt_dts=N/A
pkt_dts_time=N/A
best_effort_timestamp=627360
best_effort_timestamp_time=39.210000
pkt_duration=533
pkt_duration_time=0.033313
pkt_pos=1387208
pkt_size=29
width=852
height=480
pix_fmt=yuv420p
sample_aspect_ratio=N/A
pict_type=P
coded_picture_number=1173
display_picture_number=0
interlaced_frame=0
top_field_first=0
repeat_pict=0
color_range=unknown
color_space=unknown
color_primaries=unknown
color_transfer=unknown
chroma_location=left
[/FRAME]
ffmpeg version N-104716-g96caa01f13 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10 (Debian 10.2.1-6)
configuration: --prefix=/usr/local --extra-libs='-lpthread -lm' --bindir=/usr/local/bin --disable-ffplay --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --enable-libass --enable-libfdk-aac --enable-libaom --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-gnutls --enable-static --enable-gpl --enable-nonfree
libavutil      57.  9.101 / 57.  9.101
libavcodec     59. 14.100 / 59. 14.100
libavformat    59.  9.102 / 59.  9.102
libavdevice    59.  0.101 / 59.  0.101
libavfilter     8. 17.100 /  8. 17.100
libswscale      6.  1.101 /  6.  1.101
libswresample   4.  0.100 /  4.  0.100
libpostproc    56.  0.100 / 56.  0.100

Change History (2)

comment:1 by mkver, 2 years ago

Resolution: invalid
Status: newclosed

Said field has been deprecated in 32c8359093d1ff4f45ed19518b449b3ac3769d27 and removed in 6e30b35b85b81c802e52a1078ec7a3097e353c6d. 44d5e12c8faa1c170ed9b6b0c9e18c7547572144 therefore renamed what ffprobe reported to just "pts" and "pts_time". Notice that the values reported as pkt_pts and pkt_pts_time were already based upon the AVFrame's pts field (whose value agreed with pkt_pts -- this was the reason why pkt_pts was deprecated and remove).
So just use pts_time instead of pkt_pts_time.

in reply to:  1 comment:2 by slycordinator, 2 years ago

Okay. I'll report this to the downstream project I was trying to use that had not been updated.

Thank you.

Replying to mkver:

Said field has been deprecated in 32c8359093d1ff4f45ed19518b449b3ac3769d27 and removed in 6e30b35b85b81c802e52a1078ec7a3097e353c6d. 44d5e12c8faa1c170ed9b6b0c9e18c7547572144 therefore renamed what ffprobe reported to just "pts" and "pts_time". Notice that the values reported as pkt_pts and pkt_pts_time were already based upon the AVFrame's pts field (whose value agreed with pkt_pts -- this was the reason why pkt_pts was deprecated and remove).
So just use pts_time instead of pkt_pts_time.

Note: See TracTickets for help on using tickets.