LigH
14th August 2020, 13:30
Last night I captured a long series of night sky photos, hoping to catch some shooting stars. This worked out pretty well, so I tried to turn this photo series into a time lapse video, using ImageSource and several nested Layers with different blend modes in AviSynth+.
When I watched the encoded material, I noticed heavy glitches for brief intervals in some areas close to the bottom. To ensure that the reason was not already in AviSynth+, I split my complex script into parts and saved intermediate results with Ut Video, reading these AVIs in following scripts. I encoded with x264 to MP4 both in VirtualDub2 and with the CLI encoder. The results differed in details, but in general, they all contained glitches now and then.
Encoding the same video with x265 appeared to be safe, I could not spot any glitches.
So I guess that the motion detection and estimation in x264 may have been fooled by the material. I noticed that it was usually provoked in one scene by a passing-by shooting star or whatever appeared in this frame. The glitches are always in the bottom part of the video.
I am not sure how to provide test material if anyone would be interested, it takes up several GB. I guess if bit accuracy is not necessary, a low CRF x265 or AV1 encode might be suitable as compromise source...
When I watched the encoded material, I noticed heavy glitches for brief intervals in some areas close to the bottom. To ensure that the reason was not already in AviSynth+, I split my complex script into parts and saved intermediate results with Ut Video, reading these AVIs in following scripts. I encoded with x264 to MP4 both in VirtualDub2 and with the CLI encoder. The results differed in details, but in general, they all contained glitches now and then.
Encoding the same video with x265 appeared to be safe, I could not spot any glitches.
So I guess that the motion detection and estimation in x264 may have been fooled by the material. I noticed that it was usually provoked in one scene by a passing-by shooting star or whatever appeared in this frame. The glitches are always in the bottom part of the video.
I am not sure how to provide test material if anyone would be interested, it takes up several GB. I guess if bit accuracy is not necessary, a low CRF x265 or AV1 encode might be suitable as compromise source...