[FFmpeg-trac] #9502(avdevice:new): Intermittent error when opening audio device with avfoundation (mac)
FFmpeg
trac at avcodec.org
Tue Nov 9 01:17:18 EET 2021
#9502: Intermittent error when opening audio device with avfoundation (mac)
----------------------------------+---------------------------------------
Reporter: toots | Type: defect
Status: new | Priority: normal
Component: avdevice | Version: unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+---------------------------------------
We are having intermittent issues when quickly opening/closing
avfoundation.
The error that shows up:
```
[avfoundation @ 0x7f964f032200] audio format is not supported
```
The attached file can be used to reproduce the error. Please note that the
original icecast connection details have been edited out.
Full log:
```
./ffmpeg
Starting ffmpeg connection test..
Input #0, avfoundation, from 'default':
Duration: N/A, start: 324489.404308, bitrate: 2822 kb/s
Stream #0:0: Audio: pcm_f32le, 44100 Hz, stereo, flt, 2822 kb/s
Output #0, mp3, to 'icecast':
Metadata:
TSSE : Lavf58.76.100
Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s32p, 128 kb/s
Reached max time!
[Parsed_astats_1 @ 0x7f964ec41b00] Channel: 1
[Parsed_astats_1 @ 0x7f964ec41b00] RMS level dB: -64.770078
[Parsed_astats_1 @ 0x7f964ec41b00] Channel: 2
[Parsed_astats_1 @ 0x7f964ec41b00] RMS level dB: -64.770078
[Parsed_astats_1 @ 0x7f964ec41b00] Overall
[libmp3lame @ 0x7f964f875000] 4 frames left in the queue on closing
One iteration done..
Input #0, avfoundation, from 'default':
Duration: N/A, start: 324492.892676, bitrate: 2822 kb/s
Stream #0:0: Audio: pcm_f32le, 44100 Hz, stereo, flt, 2822 kb/s
Output #0, mp3, to 'icecast':
Metadata:
TSSE : Lavf58.76.100
Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s32p, 128 kb/s
Reached max time!
[Parsed_astats_1 @ 0x7f964ec5ee40] Channel: 1
[Parsed_astats_1 @ 0x7f964ec5ee40] RMS level dB: -64.933917
[Parsed_astats_1 @ 0x7f964ec5ee40] Channel: 2
[Parsed_astats_1 @ 0x7f964ec5ee40] RMS level dB: -64.933917
[Parsed_astats_1 @ 0x7f964ec5ee40] Overall
[libmp3lame @ 0x7f965100a800] 4 frames left in the queue on closing
One iteration done..
[avfoundation @ 0x7f964f032200] audio format is not supported
errror: Input/output error
One iteration done..
```
Version: 4.4.1
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9502>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list