TypesettingTools / Aegisub-Motion

Lua plugin for Aegisub auto4 that parses motion tracking data and applies it to selected subtitles.
Other
178 stars 24 forks source link

Trim is outputting off-by-one frames #48

Open GrygrFlzr opened 5 years ago

GrygrFlzr commented 5 years ago

When using A-mo's Trim option, the frame numbers in the file title seem to be as requested, but the resulting image frames are one frame early.

As an example:

L11K commented 4 years ago

Same here. Supposed to be 78 frames and ends up being 77.

petzku commented 4 years ago

I haven't noticed problems like this (using the ffmpeg preset with ffmpeg version git-2020-04-03-52523b6)

Some more information would probably help with debugging. Which encoder/preset/command are you using? Posting files which can reproduce this would probably also help.

petzku commented 4 years ago

Just had this happen using ffmpeg, on a 29.970 fps file. Could this be related to some faulty timestamp/frame conversion math in Aegisub itself, or maybe something wrong with the video file's timestamps? The video file was also behaving strangely in Aegisub (showing an inconsistent frame for a given timestamp).

Remuxing the (mp4) file into mkv seems to have fixed both problems.