Is it possible to mux audio and video together from an AVCaptureSession into an MPEG-TS stream? The documentation suggests a delegate for pulling the raw video and audio and then this post suggests that I might be able to do it with an AVAssetWriter, however instantiating
AVAssetWriter(contentType: .mpeg2TransportStream)
results in
[AVAssetWriter initWithContentType:] Invalid file type UTI. Available file types are: public.aiff-audio, public.3gpp, public.aifc-audio, com.apple.m4v-video, com.apple.m4a-audio, com.apple.coreaudio-format, public.mpeg-4, com.microsoft.waveform-audio, com.apple.quicktime-movie, org.3gpp.adaptive-multi-rate-audio'
Is there another path to extracting an MPEG-TS stream?