title: ffmpeg extract frame timestamps from video
body: <p>I am using this <a href="https://github.com/WritingMinds/ffmpeg-android-java" rel="nofollow noreferrer">library</a> to use FFmpeg with my Android application. I am extracting frames from a video and then adding them to a crop viewer. So each frame needs to represent some time frame within the video. Here is my current ffmpeg code to extract the frames:</p>
  
  <p><code>ffmpeg -i inputFile -f image2 -ss mySS -r myR frame-%05d.png</code></p>
  
  <p>When using the above command how would I add a timestamp to each frame? So i know for example frame 5 is at 9s within the video.</p>
  
  <p>I dont know if the ffmpeg lib I am using has ffprobe from this <a href="https://superuser.com/questions/841872/how-do-i-extract-the-timestamps-associated-with-frames-ffmpeg-extracts-from-a-vi">link</a>. I have also looked at other links on stackoverflow</p>
  
  <p>any help is appreciated </p>