video - iOS: AVPlayerItem seekToTime not seeking to exact time requested -
i'm working on app streams video on http. avplayer used play video. using avplayeritem , selectmediaoption method switch between specific video streams (there 3 streams in source).
my problem when switch between media options call seektotime: tolerancebefore: toleranceafter:
skip new video same point in time video switching from. trouble is, doesn't work reliably. video skips point several seconds before requested time, though avplayeritem currenttime property reports time requested. passing kcmtimezero both tolerancebefore , toleranceafter.
something else worth mentioning happens 1 specific media stream. have media stream not exhibit issue.
can 1 suggest might problem here?
it turns out issue didn't have apis or how being used. looks encoder used create video segments creating errors in resulting files.
the errors reported ffprobe like:
[h264 @ 00000249a4348980] decode_slice_header error [h264 @ 00000249a4348980] no frame! [h264 @ 00000249a4348980] non-existing pps 0 referenced
i'm not sure original tool was used create video segments using, i've verified apple's mediafilesegmenter causes errors.
i solved error encoding segments using ffmpeg.
Comments
Post a Comment