ffmpeg - Why PTS and DTS are same in my stream? -


i testing mp4 file h264 video using ffprobe. using following command frame information.

ffprobe -i <input_mp4_file> -show_frames -select_streams v 

i following output.

[frame] media_type=video stream_index=0 key_frame=1 pkt_pts=0 pkt_pts_time=0.000000 pkt_dts=0 pkt_dts_time=0.000000 best_effort_timestamp=0 best_effort_timestamp_time=0.000000 pkt_duration=512 pkt_duration_time=0.033333 pkt_pos=48 pkt_size=513516 width=1920 height=1920 pix_fmt=yuv420p 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] [frame] media_type=video stream_index=0 key_frame=0 pkt_pts=512 pkt_pts_time=0.033333 pkt_dts=512 pkt_dts_time=0.033333 best_effort_timestamp=512 best_effort_timestamp_time=0.033333 pkt_duration=512 pkt_duration_time=0.033333 pkt_pos=513564 pkt_size=3299 width=1920 height=1920 pix_fmt=yuv420p 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] [frame] media_type=video stream_index=0 key_frame=0 pkt_pts=1024 pkt_pts_time=0.066667 pkt_dts=1024 pkt_dts_time=0.066667 best_effort_timestamp=1024 best_effort_timestamp_time=0.066667 pkt_duration=512 pkt_duration_time=0.033333 pkt_pos=823989 pkt_size=40971 width=1920 height=1920 pix_fmt=yuv420p sample_aspect_ratio=1:1 pict_type=b coded_picture_number=4 display_picture_number=0 interlaced_frame=0 top_field_first=0 repeat_pict=0 [/frame] [frame] media_type=video stream_index=0 key_frame=0 pkt_pts=1536 pkt_pts_time=0.100000 pkt_dts=1536 pkt_dts_time=0.100000 best_effort_timestamp=1536 best_effort_timestamp_time=0.100000 pkt_duration=512 pkt_duration_time=0.033333 pkt_pos=784312 pkt_size=38785 width=1920 height=1920 pix_fmt=yuv420p sample_aspect_ratio=1:1 pict_type=b coded_picture_number=3 display_picture_number=0 interlaced_frame=0 top_field_first=0 repeat_pict=0 [/frame] [frame] media_type=video stream_index=0 key_frame=0 pkt_pts=2048 pkt_pts_time=0.133333 pkt_dts=2048 pkt_dts_time=0.133333 best_effort_timestamp=2048 best_effort_timestamp_time=0.133333 pkt_duration=512 pkt_duration_time=0.033333 pkt_pos=516886 pkt_size=267344 width=1920 height=1920 pix_fmt=yuv420p 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] 

my mp4 file has i, p , b frames. understand dts decode time stamp , in incrementing order in decoder input stream. pts presentation time stamp , in incrementing order in decoder output stream.

i not understand why getting same pts , dts values frames. think should different when b frames present in stream.

somebody please me in understanding this?

the values not dts/pts expect, note pkt_ prefix. see here.

pkt_pts

pts copied avpacket decoded produce frame.

pkt_dts

dts copied avpacket triggered returning frame.

if -show_packets should see different values.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -