I am trying to extract the timestamps of mp4 video using ffmpeg.
With ffprobe it is like following.
command: ffprobe -v quiet -f lavfi -print_format json -i "movie=test.mp4" -show_frames -show_entries frame=pkt_pts_time
Following is the output with ffprobe but same I need using ffmpeg:
{
"frames": [
{
"pkt_pts_time": "0.000000"
},
{
"pkt_pts_time": "0.033367"
},
{
"pkt_pts_time": "0.066733"
}
]
}
I need using ffmpeg because I have to use ffmpeg.js(https://github.com/Kagami/ffmpeg.js) lib at browser side where requirement is to extract timestamp of frames.