valkjsaaa / ffmpeg-smart-trim

Smart trim with FFMPEG
GNU General Public License v3.0
14 stars 2 forks source link

Update probe to not use deprecated pkt_pts_time #1

Closed slycordinator closed 2 years ago

slycordinator commented 2 years ago

pkt_pts_time was renamed as pts_time and pkt_pts_time was deprecated/removed from ffmpeg/ffprobe.

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.

https://trac.ffmpeg.org/ticket/9543