0

I wonder if can find the nearest iframes from certain position(might be certain seconds) in Video file with ffprobe or ffmpeg.

Is it possible? The result what I want is seconds unit position of frames.

My command is ffprobe -show_frames -select_streams v -print_format json=c=1 Z63902_5_130719.ts | grep "I" | grep "\"pkt_dts_time\"". Since there is only a capital 'I' in that json, I grep only "I". My problem is that this is too slow. My final goal is get iframe positions from RTSP protocol and make list. If it goes to RTSP, it will be much slower than now.

How can I solve this?

Canadian Luke
  • 24,640

0 Answers0