Changing video frame rate and keeping duration intact
I am trying to segment a video file, transcode each of the segments and
then stitch them all back to one. The process is working but I have noticed
that the final file has a different duration than the original one.
Probably because I am transcoding to a fixed frame rate which is different
from the source frame rate.
I've tried using "-r 30" instead on the filter (-vf), the same result. As
this is a part of a transcoding system I prefer not to check for the input
file fps before transcoding as it can be anything - variable fps too (which
is not so easy to detect)
Is there any way I can keep the duration intact while changing the frame
rate in this type of transcoding flow?