Questions tagged [avassetwriterinput]
37 questions
0
votes
1 answer
Is there any waitUntil operator or something similar in RXSwift to wait a value?
I am using RXSwift to handle with a lot of async AVAssetWriterInput write operations, but I need to wait for isReadyForMoreMediaData before writing more buffers inside the file, how can I handle this?
Basically, the observable receives a lot of…

Matheus Weber
- 194
- 2
- 3
- 14
0
votes
1 answer
Audio (`AVAssetWriterInput` & `AVAudioRecorder`) Optimal settings
I'm currently building an app with video and audio recording (foreground and background).
There are some reports from my clients that some of the recordings are failing, now I've checked with their logs and it seems that on some devices the…

YYfim
- 1,402
- 1
- 9
- 24
0
votes
1 answer
AVAssetWiter status failed when appending audio sample buffer to AVAssetwriterInput - OSX, Swift
I am trying to record screen with audio in OSX with AVFoundation, When i record video is working perfectly. But when adding audio input and appending it to AVAssetWriterInput, the asset writer status changes to .failed.
if let sampleBuffer =…

Somesh Karthik
- 498
- 4
- 7
0
votes
0 answers
Failed to write video with AVAssetWriter
I am using AVAssetWriter to save screen recoding to mp4 (Withd H.264 video and aac audio encoding). Everything works perfectly as expected but some users complained about the 0KB video size issue, that is no data is being written to the output…

Mirza Bilal
- 891
- 11
- 34
0
votes
0 answers
iOS - AVassetWriter outputting file of 0 size and not giving errors
I'm still very new to swift (and programming) and I'm trying to output the CVPixelbuffer I get from ARFrame to a video in realtime (without the AR stuff on top).
I've set up the AVAssetWriter and Input and on each frame I try to append the…
0
votes
0 answers
AVAssetWriter - an unknown error code=-16351
I`m using AVAssetWriter to write raw video data (H264/Mpeg4) stream into a file without re-encoding. After first two chunks of data successfully written I get an error:
let isAppended = videoInput!.append(sampleBuffer!)
Error…

JULIIncognito
- 1,875
- 2
- 15
- 15
0
votes
0 answers
AVAssetWriter live video recording with 48 KHz audio
I am using to record live video on iOS using AVAssetWriter as demonstrated in RosyWriter. The problem I have is if I set AVAudioSession preferredSampleRate to 48000 Hz, it gives lot of troubles such as audio out of sync with video. Is there a way to…

Deepak Sharma
- 5,577
- 7
- 55
- 131