Crash in AVCaptureSession when using muxed input and audio data output
| Originator: | chad515 | ||
| Number: | rdar://10609248 | Date Originated: | 12/20/2011 |
| Status: | Duplicate | Resolved: | No |
| Product: | Mac OS X | Product Version: | 10.7.2 |
| Classification: | Crash | Reproducible: | Always |
Summary: When using AVCaptureSession to capture audio/video, if you try to use an input device that is of type AVMediaTypeMuxed (such as a DV camera) as well as a AVCaptureAudioDataOutput output, the app will crash when you call startRunning on the capture session. Steps to Reproduce: 1) Create an AVCaptureSession 2) Add an audio data output to that session 3) Add an input connected to a muxed input device to that session 4) Start the session Expected Results: The session starts running. Actual Results: The app crashes. Regression: Notes: 1) I'm using the audio data output to monitor audio levels and reflect that in the UI of my app. The sample code does not have this, as the crash happens long before that point. 2) I've only tested this with a DV camcorder hooked up via Firewire. I don't know if the problem would be true for other mixed input devices or not.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Also, I know this is possible as it works in the Apple AVRecorder example with AVMovieFileOutput. However, I'm using AVAssetWriters manually with both an AVVideoDataOutput & an AVAudioDataOutput and it crashes when committing the session change after adding the audio input from the dv cam.
What's annoying is that I this is possible since the AVRecorder does it fine ... so there is some magic insideAVMovieFileOutput going on. I even tried manually creating the AVCaptureConnections to make sure duplicate streams aren't happening but still the same issue. Very frustrating.
Closed as a dup
This bug was just closed as a dup of rdar://9688742
DId you find a way to get this to work? The duplicate is gone and bugreport.apple.com is down. I'm having the same issue and can't find any info anywhere to help resolve it.