I have an MP4 file containing H264 video (25 FPS). Some timestamps are not correct (for reasons...). Can I process the file and have only the timestamps regenerated without reencoding? I've tried this
ffmpeg -r 25 -i infile -c copy outfile
but the timestamps in outfile are still like in the original even though the documentation for"-r" says:
As an input option, ignore any timestamps stored in the file and instead generate timestamps assuming constant frame rate fps.
I've also tried the suggestion mentioned here at the bottom:
ffmpeg -fflags +genpts -i infile -c copy outfile
This also doesn't change the timestamps in the outfile. Any other way to perform this task? Timestamps are kind of metadata, so I think it should be possible somehow.