You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to avoid the MediaCodec's initialization when using NoAudioSource?
I am trying to implement the RTSP-Server on a custom Android OS. When I call prepareAudio, I get the following error:
02-1017:34:14.3002593026066IMediaCodec:MediaCodec will operate in async mode
02-1017:34:14.3012593025930EAudioEncoder:CreateAudioEncoder failed.
02-1017:34:14.3012593025930EAudioEncoder: android.media.MediaCodec$CodecException:Error0x8000100102-1017:34:14.3012593025930EAudioEncoder: at android.media.MediaCodec.native_configure(NativeMethod)
02-1017:34:14.3012593025930EAudioEncoder: at android.media.MediaCodec.configure(MediaCodec.java:2176)
02-1017:34:14.3012593025930EAudioEncoder: at android.media.MediaCodec.configure(MediaCodec.java:2092)
02-1017:34:14.3012593025930EAudioEncoder: at com.pedro.encoder.audio.AudioEncoder.prepareAudioEncoder(AudioEncoder.java:95)
02-1017:34:14.3012593025930EAudioEncoder: at com.pedro.library.base.StreamBase.prepareAudio(StreamBase.kt:142)
My stream is video only. For VideoSource, am I using a clone of BitmapSource, but instead of a single image, I am looping through 20 bitmaps.
However, the project works perfectly on a normal mobile AndroidOS (tested on Android 15 on a Samsung and Android 14 on a Pixel5, tested on an Pixel8 emulator - all work). I can connect to them through VLC flawlessly.
Basically I'm trying to disable audio altogether.
Is it possible to avoid the call to prepareAudioEncode ?
The text was updated successfully, but these errors were encountered:
I have no plan to do it because the idea is be able to change the audio source on fly so the audio codec initialization is required to work.
I recommend you use a real value in the prepareAudio parameters instead of set invalid values. Try with samplerate 32000 and bitrate 128000
Is it possible to avoid the MediaCodec's initialization when using
NoAudioSource
?I am trying to implement the RTSP-Server on a custom Android OS. When I call
prepareAudio
, I get the following error:My stream is video only. For VideoSource, am I using a clone of BitmapSource, but instead of a single image, I am looping through 20 bitmaps.
When I init the server, I do
However, the project works perfectly on a normal mobile AndroidOS (tested on Android 15 on a Samsung and Android 14 on a Pixel5, tested on an Pixel8 emulator - all work). I can connect to them through VLC flawlessly.
Basically I'm trying to disable audio altogether.
Is it possible to avoid the call to
prepareAudioEncode
?The text was updated successfully, but these errors were encountered: