HLS output - influence fragment time.

Hello,

I'm trying to create HLS output with segment time of 6 seconds, but sync samples (fragments) every 1 second.

I want to have AVAssetWriter write a sync sample / moof header every second.

Am I correct in understanding that I could only achieve this with a pre-fragmented MP4 and use a passthrough rendition with setting preferredOutputSegmentInterval to indefinite and running flushSegment() as needed? Or is there another method using AVFoundation?

Thanks in advance.

HLS output - influence fragment time.
 
 
Q