AVAssetWriterInputPixelBufferAdaptor and CMTime

后端 未结 2 659
不知归路
不知归路 2021-02-05 15:28

I\'m writing some frames to video with AVAssetWriterInputPixelBufferAdaptor, and the behavior w.r.t. time isn\'t what I\'d expect.

If I write just one frame

2条回答
  •  闹比i
    闹比i (楼主)
    2021-02-05 16:09

    Have you tried using this as your first call

    CMTime t = CMTimeMake(0, 600);
    [videoWriter startSessionAtSourceTime:t];
    [adaptor appendPixelBuffer:pxBuffer withPresentationTime:t];
    

提交回复
热议问题