Here’s a solution to the trailing white flash that seems to work for me when converting DnXHD to x264:
ffprobe
The result will have a line like:
> Duration:00:00:08.75 …
When encoding x264 (or other format)
Subtract 0.04 from this time code when passing the -t arg to ffmpeg.
ffmpeg -i -ss 00:00:00.0 -t 00:00:08.71