slow motion video playback "ramp-up" stage

In iOS, when I use AVPlayerViewController to play back a slow motion video, it has a "ramp-up" stage at the start and a "ramp-down" stage at the end, and the video plays at the normal speed (i.e. not slow motion) during these stages.

My question is: are these non-slow-motion stages defined in the video file itself? (e.g. some kind of meta data?) Or, is it just a playback approach used by AVPlayerViewController ?

Thanks!

Also have this question. I just can't find information about these "ramp-up" stages anywhere. If I export high fps (>100) video with AVAssetWriter, it just plays with 25% speed and there is no way to set default to 100% from the code

slow motion video playback "ramp-up" stage
 
 
Q