6,515 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
62
views
AVPlayer audio duration is shorter / playback stops early for remote audio, while video works fine
I’m using AVPlayer / AVPlayerItem to play both video and audio.
Video playback works perfectly: correct duration, full playback, no early stop.
However, for remote audio files (mp3/aac over HTTP), ...
3
votes
1
answer
88
views
CMReadySampleBuffer.copyPCMData() fails with -12731 (kCMSampleBufferError_RequiredParameterMissing) error
I'm trying to figure out how to use the new outputProvider API on AVAssetReader. Specifically, I want to open a media file (video or audio), extract its audio, and write it back out as PCM. I have the ...
3
votes
1
answer
105
views
Troubleshooting memory leak / retain cycle in Apple's camera app tutorial
I'm following along this camera tutorial from Apple: https://developer.apple.com/tutorials/sample-apps/capturingphotos-camerapreview
I have a DataModel:
final class DataModel: ObservableObject {
...
2
votes
1
answer
85
views
How can we disable iOS ducking feature completely during our video call app?
we have a problem in our video calling app (built in react native) where we want to play background music locally (we are using react-native-sound) and we are using daily react native sdk for video ...
0
votes
1
answer
105
views
How to dynamically update an existing AVComposition when users add a new custom video clip?
I’m building a macOS video editor that uses AVComposition and AVVideoComposition.
Initially, my renderer creates a composition with some default video/audio tracks:
@Published var composition: ...
2
votes
1
answer
133
views
iOS Picture-in-Picture stops unexpectedly despite using AVPlayerLooper - How to keep PiP running continuously?
I'm building a teleprompter app that uses iOS Picture-in-Picture (PiP) to display scrolling text while users record videos with the camera app. The text is rendered into a video which plays in PiP ...
3
votes
1
answer
117
views
Update Custom AVVideoCompositing in real time based on the project updates
I am trying to replicate how professional video editing apps like final cut pro shows and update the video player in real time based on user configuration in the editing settings. For example, I am ...
1
vote
0
answers
78
views
How to switch between AAC and AC-3 audio groups in HLS dynamically (AVPlayer, tvOS/iOS)
I’m playing an HLS stream on tvOS/iOS using AVPlayer.
The master playlist has two independent AUDIO groups: one for AAC (stereo) and one for AC-3 (5.1). Example:
# AUDIO groups
#EXT-X-MEDIA:TYPE=AUDIO,...
0
votes
1
answer
130
views
LockedCameraCaptureExtension and Sharing User Preferences
I have the main app that saves preferences to UserDefaults.standard. So I have this one preference that the user is able to toggle - isRawOn
UserDefaults.standard.set(self.isRawOn, forKey: "...
2
votes
1
answer
98
views
AVAssetExportSession ignores frameDuration 60fps and exports at 30fps, but AVPlayer playback is correct
I'm stuck on a really frustrating AVFoundation problem. I'm building a video editor that uses a custom AVVideoCompositor to add effects, and I need the final output to be 60 FPS.
So basically, I ...
5
votes
1
answer
215
views
AVFoundation Custom Video Compositor Skipping Frames During AVPlayer Playback Despite 60 FPS Frame Duration
I'm building a video editor in Swift using AVFoundation with a custom video compositor. I've set my
AVVideoComposition.frameDuration to 60 FPS, but when I log the composition times in my startRequest ...
1
vote
2
answers
119
views
How to solve issue with Vision framework in Swift showing too much background
I am working on a feature for a Photo Booth app in Swift to do background replacement using the Vision framework and AVFoundation. However, I am having an issue where the original background is ...
3
votes
2
answers
152
views
Seek to the actual first frame of a video whose timestamps don’t start at zero (AVPlayer / AVAsset)
I’m working on an iOS app that loads videos using AVPlayer, and I’ve run into a common issue: some videos have timestamps that don’t start at zero, so when I seek to zero I get a black or transparent ...
1
vote
1
answer
97
views
LockedCameraCapture Does Not Launch The App from Lock Screen
My implementation of LockedCameraCapture does not launch my app when tapped from locked screen. But when the same widget is in the Control Center, it launches the app successfully.
Standard Xcode ...
1
vote
0
answers
106
views
AVCaptureDevice - Getting a List of Cameras Including Ones with Virtual 2x Crop
So using AVCaptureDevice.DiscoverySession gets you each dedicated camera nowadays.
let devices = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInWideAngleCamera], mediaType: .video, position: ....