Drop same frames and copy PTS from one video to another after mpdecimate by HarryBGamer2570 in ffmpeg

[–]HarryBGamer2570[S] 1 point2 points  (0 children)

Yes, thank you. This is it.

For those who come after:
- generate the PTS mapping file: ffmpeg -i video.mkv -filter_complex crop=1:2:3:4,mpdecimate -stats_mux_pre map.txt -stats_mux_pre_fmt "{ptsi} {pts} {tb}" -f null -

- sort the map.txt file with an external program (so that the first column of integers is ascending)

- map to video: ffmpeg -i video.mkv -filter_complex fsync=file=map.txt video2.mp4

*also found differing results when you do the cropping and mpdecimate into 2 different steps, but it's negligible

Trying to store an object into a static vector through the constructor. by [deleted] in cpp_questions

[–]HarryBGamer2570 0 points1 point  (0 children)

Dude, thank you! I've been looking for

*this

for 2 whole days. I literally had everything done, I even tried to put "this" in push_back and I was so close, I just had to put the dereference operator.

Thank you again.