CoreMediaErrorDomain error -12848

Good day.

A video I created via iOS AVAssetWriter with the following settings:

let videoWriterInput = AVAssetWriterInput(
    mediaType: .video,
    outputSettings: [
           AVVideoCodecKey: AVVideoCodecType.hevc,
           AVVideoWidthKey: 1080, AVVideoHeightKey: 1920,
           AVVideoCompressionPropertiesKey: [
                   AVVideoAverageBitRateKey: 2_000_000,
                   AVVideoMaxKeyFrameIntervalKey: 30
           ],
     ]
)

let audioWriterInput = AVAssetWriterInput(
    mediaType: .audio,
    outputSettings: [
        AVFormatIDKey: kAudioFormatMPEG4AAC,
        AVNumberOfChannelsKey: 2,
        AVSampleRateKey: 44100,
        AVEncoderBitRateKey: 128000
    ]
)

When It is split into fMP4 HLS format using ffmpeg, the video is unable to be played in iOS with the following error:

CoreMediaErrorDomain error -12848

However, the video is played normally in Android, Browser HLS players, and also VLC Media Player.

Please assist. Thank you.

Answered by Media Engineer in 893156022

Please file a Feedback Assistant case and attach a sample project with the ffmpeg command, and fMP4 movie file that exhibits this issue.

Please also respond in this thread with the Feedback Assistant number. Thank you.

Where you able to find a solution for this?

Please file a Feedback Assistant case and attach a sample project with the ffmpeg command, and fMP4 movie file that exhibits this issue.

Please also respond in this thread with the Feedback Assistant number. Thank you.

CoreMediaErrorDomain error -12848
 
 
Q