AVFoundation - Reverse an AVAsset and output video file

前端 未结 1 709
甜味超标
甜味超标 2021-01-31 18:25

I\'ve seen this question asked a few times, but none of them seem to have any working answers.

The requirement is to reverse and output a video file (not just play it i

1条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-31 19:08

    Worked on this over the last few days and was able to get it working.

    Source code here: http://www.andyhin.com/post/5/reverse-video-avfoundation

    Uses AVAssetReader to read out the samples/frames, extracts the image/pixel buffer, and then appends it with the presentation time of the mirror frame.

    0 讨论(0)
提交回复
热议问题