Timeline for How do I extract the timestamps associated with frames ffmpeg extracts from a video with the -r option?
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 24, 2014 at 6:33 | vote | accept | Srini | ||
Nov 21, 2014 at 4:18 | comment | added | dstob | @Srinivas Suresh Quite often stream information is incorrect. You can use -show_frames and do a little parsing yourself or use -count_frames and the native framerate to calculate the duration. Since the correspondence seems so flexible then you'll have to do any final extraction yourself. Fun question btw, you might look at increasing verbosity during the ffmpeg run to get timestamp values as ffmpeg is choosing to duplicate/drop frames. Maybe combine this with ffrobe -show_frames to make your desired correspondence? | |
Nov 19, 2014 at 20:19 | comment | added | slhck | @dstob The timestamps associated with frames are the presentation timestamps of the input video, i.e. when each frame should be shown, relative to the start of the video. | |
Nov 19, 2014 at 20:14 | answer | added | slhck | timeline score: 16 | |
Nov 19, 2014 at 6:36 | history | edited | Srini | CC BY-SA 3.0 |
added 367 characters in body
|
Nov 18, 2014 at 21:41 | comment | added | dstob | ffprobe can give you the timestamp information from the mp4 video stream. Are you asking as if frames may be duplicated or dropped then what is the correspondence to the original mp4 timestamps? In that case I would explore increasing the verbosity settings to see if you can get the frame by frame during execution. Could you expand on what you mean by "timestamps associated with frames". | |
Nov 18, 2014 at 20:19 | comment | added | llogan |
Please include the complete ffmpeg console output from your command.
|
|
Nov 18, 2014 at 19:06 | comment | added | Srini | Sure the JPEG doesn't have the metadata, but the mp4 might. Can I direct ffmpeg to pull it along with the frames which it later encodes as JPEGS and dump the time stamps in a file? | |
Nov 18, 2014 at 19:04 | comment | added | Rajib |
As what? AFAIK jpeg has no such metadata. The EXIF timestamp is for capture time.
|
|
Nov 18, 2014 at 18:58 | review | First posts | |||
Nov 18, 2014 at 19:02 | |||||
Nov 18, 2014 at 18:57 | history | asked | Srini | CC BY-SA 3.0 |