I have a .h264
video file with a separate text file containing timestamps for each frame in timestamp v2
format. Where the starting frame doesn't necessarily start with a timestamp value 0.
I want to containerize both files into a VFR .mp4
container where the PTS frame values are populated from the timestamp text files.
I found this repo https://github.com/nu774/mp4fpsmod that supposedly solves this, but in my case, the timestamps are sometimes duplicated and two consecutive frames have the same PTS value. In this case mp4fpsmod
hangs.
Is there another way to construct the .mp4 with duplicated timestamps? Or if I could somehow be able to drop the duplicated timestamps and corresponding frames in the h264 file.
I did manage to convert to a VPF .mkv file with mkvmerge, but I would need to show the video in a browser, which is not possible with an mkv.