Take the thumbnail image at specified using AVAssetImageGenerator

357 views Asked by At

I was taking thumbnail image using AVAssetImageGenerator by specifying CMTimeMakeWithSeconds as (0.0, 600). It's working fine but I didn't understand the CMTime. I read the documentation but it's still not clear. Suppose I want to take the thumbnail image after 5 seconds or exactly/nearest to 5 seconds. Please explain how to set it. What is the difference between these two:

CMTimeMakeWithSeconds(0.0, 600)
CMTimeMakeWithSeconds(30, 30)

Thanks in advance

0

There are 0 answers