My input is a ts file. And I'm trying to use FFmpeg to extract the timestamp (PTS) from the specific frame index. I have tried the following command ( I have replaced the [FRAME_INDEX] with 5), but it was nothing happend:
ffmpeg -i 0.ts -vf "select=gte(n\, [FRAME_INDEX])" -show_entries frame=pkt_pts_time -v quiet -of csv="p=0" -stats -y output.txt
I would like to see the simple output something like:
pts:15000 or 15000
Does anyone know how to make the right command? Thanks!!