Since 1.14, ReplayMod has only supported Fabric, making it difficult for Forge users to install. I will explain how to use a camera mod called CMDCam, which could be an alternative.
*Note
This mod cannot replay the past like ReplayMod; it is strictly a "camera function" mod.
What can it do?
You can smoothly move the camera (view) position, angle, and field of view without manual operation. Because it automatically interpolates movement between points, you can easily create camera movements that are difficult to achieve by hand.
How to install
You can download it from this page. Detailed installation instructions are omitted here.
How to use
Key controls (can be changed in settings)
P key: Set a point at the current position.
U key: Pass through points in the order they were set (play button).
If pressed during playback, it stops playback.
Also, if you perform the following operations before setting a point, you can add angle and field of view information to the point.
G key: Tilt the camera to the left.
J key: Tilt the camera to the right.
V key: Zoom in (narrow the field of view).
N key: Zoom out (widen the field of view).
H key: Reset tilt.
B key: Reset zoom.
By adding information before setting a point, you can also add animations to the angle and field of view.
For example, if you set point 1, rotate the camera 180° with the G key, move, and then set point 2, you can create an animation where the camera moves while rotating.
Commands
/cam add
Sets a point at your current position.
You can do the same with the P key.
/cam set <number>
Overwrites the information of an existing point with your current position.
/cam interpolation <circular/cosine/cubic/hermite/linear>
Changes the interpolation method between points.
/cam show <all/circular/cosine/cubic/hermite/linear>
Displays the camera path using the selected interpolation method.
/cam hide <all/circular/cosine/cubic/hermite/linear>
Hides the camera path displayed using /cam show.
/cam clear
Clears all set points.
/cam remove <number>
Deletes a specific point.
/cam mode <default/outside>
default: Changes to normal camera mode.
outside: Changes to outside mode.
Separates you from the camera, allowing you to film yourself.
/cam target <none/self>
Changes the camera target.
If set to self, you can focus on yourself by using /cam mode outside.
/cam goto <number>
Teleports to the location of the point.
/cam save <name>
Saves all set points with a name.
/cam load <name>
Loads the points saved with /cam save.
/cam start <seconds>
Plays back over the number of seconds entered in <seconds>.
If you enter /cam start 30s, it will travel through the set points over 30 seconds.
/cam stop
Stops playback midway.
How do I save it as a video?
This mod does not have a feature to save as a video.
Therefore, you need to use separate recording software (such as OBS) to record it.
In other words...
Since it does not render video like ReplayMod,
if you want to record in high quality and high frame rate,
you need to set Minecraft to high quality and high fps settings,
and then also set your recording software to high quality and high fps settings to record.