App Descrtiption : Speedometer. It has a needle and an animated needle as an overlay on the video. I output the needle animation to the video through post-processing. I use AVAssetExportSession and create an AVComposition containing my animated layers, as well as video and audio tracks from the video. It works great. Videos, animated needles.
Currently, to play the animation during post-processing, I have saved all speed changes over time, since the "recording" of the video began. During postprocessing, I then start the timer based on the saved time / speed data so that I can animate the needle at the next speed.
Problem . The resulting video / animation pair is not completely accurate, and often there is a mismatch between the speed displayed when shooting video, as well as during playback and composition. (usually a needle is preceded by a video) due to the fact that composition / compression during export is not necessary in real time.
Question . Is there a way to include speed information in the video stream and then access it when exporting it so that the video and speedometer are consistent in time?
It would be nice to get a callback at a specific time during the export that contains speed data.
As always ... thanks!
source
share