I have a H264 video source that was recorded with variable framerate (VFR) and a text file with frame ID, timestamp pairs that looks like this:
frameId,timestamp
1890413473,13792093
1890413474,13792106
1890413475,13792123
1890413476,13792139
...
If I try to playback as is, it defaults to the 25 constant framerate (CFR)
ffmpeg -i stream.h264 -c copy stream.mkv
How do I combine the timestamp data to make a .mkv playing at the appropriate rate? The docs have -vsync vfr
which looks related, but not sure about the input format for the times to sync with.
ffmpeg
to do this or be more attuned to it? For instance if I try to convert the corrected vfr video to another formatffmpeg -i stream_vfr.mp4 -c copy stream.mkv
I get mismatch values betweenpkt_duration
,pkt_dts
from the original fromffprobe -show_frames
– Phoenix Mar 28 '19 at 21:13