I'm getting an odd error from MediaPlayer while playing a live stream. The code was working perfectly before I upgraded my Nexus 10 to 5.1 from 5.0.x.
I get the error: error (-2147483648, 0) in the onError handler and have to stop the video. If I put a breakpoint in the error handler, the video plays perfectly on the device, so I don't know why it throws the error nor what it means.
I've tried debugging the MediaPlayer sources, but for some reason the binary on the device does not match the sources I have for 5.1. Either way it seems the error is coming up from the Native code.
I am able to play other media sources with he same code, it seems only the media with no duration information causes the error.
Here is the only useful info I get out of the log:
03-21 23:02:22.365: W/MediaPlayer(26062): info/warning (801, 0)
03-21 23:02:22.401: D/MediaPlayer(26062): getMetadata
03-21 23:02:22.416: W/MediaPlayer(26062): Stream has no duration and is therefore not seekable.
03-21 23:02:22.416: E/MediaPlayer(26062): error (-2147483648, 0)
03-21 23:02:22.427: E/MediaPlayer(26062): Error (-2147483648,0)
03-21 23:02:22.443: D/VideoView(26062): Error: -2147483648,0
03-21 23:02:22.446: W/Tag(26062): Playback error in -2147483648 info: 0
03-21 23:02:22.492: W/MediaPlayer(26062): info/warning (3, 0)
Figured it out. I was calling seekTo() with a zero value on a stream with no duration (live stream). Why it worked before, the 5.1 upgrade, I don't know.
Related
After some troubleshooting with updating the video solution to Android API 30, I have finally ended up with the following Logcat error after having upgraded Exoplayer to 2.12.0 and imported guava:30.0-jre:
[OMX.android.goldfish.h264.decoder] setPortMode on output to DynamicANWBuffer failed w/ err -1010
E/FMQ: grantorIdx must be less than 3
E/FMQ: grantorIdx must be less than 3
E/ion: ioctl c0044901 failed with code -1: Inappropriate ioctl for device
E/FMQ: grantorIdx must be less than 3
I have also replaced SimpleExoPlayerView with PlayerView as it caused Inflating class error as described in my previous thread here: Inflating class error with Exoplayer 2.12.0 on Android
Was just wondering if anyone here had a clue for this one. Thanks in advance.
EDIT: I also receive Emulator: Process finished with exit code -1073741571 (0xC00000FD) every time I try to access the video solution. A colleague tried to replicate the error using Linux and it looked like it worked for him.
EDIT2: It looks like it is mainly due to qemu_system-x86-64.exe stops working, which is mainly a Windows-file, so I conclude with this being a bug in Windows rather than Android.
I have an application (decoding module) which fails to create mediacodec for decoding H264 encoded stream while running on the Nexus 6P. But it perfectly works under Google PIXEL XL phone.
I am also giving a small snap of the error I am getting while I debug it using android studio logcat. Any Help will be highly appreciated.
Error Snap
E/OMX-VDEC-1080P: Failed to call stream on OUTPUT due to HW_OVERLOAD
E/OMX-VDEC-1080P: empty_this_buffer_proxy failure due to HW overload
E/OMX-VDEC-1080P: ERROR: Sending OMX_ErrorInsufficientResources to Client
E/OMX-VDEC-1080P: Failed to qbuf to driver
E/ACodec: [OMX.qcom.video.decoder.avc] ERROR(0x80001000)
E/ACodec: signalError(omxError 0x80001000, internalError -2147483648)
Codec reported err 0x80001000, actionCode 0, while in state 6
E/NuPlayerDecoder: Decoder (video) reported error : 0x80001000
E/NuPlayer: received error(0x80001000) from video decoder, flushing(0), now shutting down
E/MediaPlayer: error (1, -2147479552)
E/MediaPlayer: Error (1,-2147479552)
D/EasyMovieTexture: OnError
E/NuPlayerDecoder: failed to flush OMX.qcom.video.decoder.avc (err=-38)
12-29 20:21:41.075 2737-10644/? E/NuPlayer: received error(0xffffffda) from video decoder, flushing(2), now shutting down
D/NuPlayerDriver: notifyListener_l(0xeed2aae0), (100, 1, -38), loop setting(0, 0)
E/MediaPlayer: Error (1,-38)
D/EasyMovieTexture: OnError
E/OMX-VDEC-1080P: Failed to call stream on OUTPUT
E/OMX-VDEC-1080P: empty_this_buffer_proxy failure
I guess error code -38 is coming because I want to start the mediaplayer in an incorrect state (Here as the codec is giving me an error, mediaplayer is in the ERROR state).
I tested on Google PIXEL XL and Nexus 6P and I am getting this problem for Nexus 6P.
I'm trying to use the
cordova opentok plugin to create a WebRTC app on my android device. I'm able to send both audio and video from my device using the plugin, but I am only able to receive video. I am getting some errors/warnings that seem to be related the audio problems, but I'm not sure how to debug these:
05-12 14:15:53.142: W/AudioRecord(14619): AUDIO_INPUT_FLAG_FAST denied by client
When I try to run the application on Google Glass, both audio input and output are not working, and I get the following warnings:
05-12 12:58:29.950: W/AudioTrack(26682): AUDIO_OUTPUT_FLAG_FAST denied by client
05-12 12:58:31.192: W/AudioRecord(26682): AUDIO_INPUT_FLAG_FAST denied by client
I'm also getting the following error while streaming:
05-12 13:26:23.702: D/audio_hw_primary(183): select_devices: out_snd_device(0: ) in_snd_device(16: handset-mic)
05-12 13:26:23.702: D/(183): Failed to fetch the lookup information of the device 00000004
05-12 13:26:23.702: E/ACDB-LOADER(183): Error: ACDB AudProc vol returned = -19
I've searched these errors and haven't come up with anything useful for debugging this problem. Any suggestions on how to debug these, or where to go from here? Thanks.
when i use MediaPlayer playing .mp3 file,the system will report error log:
Prepare failed.: status=0xFFFFFF8E
but the playing music is normal,there is not exception.
And according to my observations,as if it come out only in relatively high ROM version,such as 4.0,in 2.3 there is no error.
What is the reason, how to solve?
Could not get audio input for record source 1
: ERROR/AuthorDriver(34): Command 14 completed with error -1
ERROR/MediaRecorder(363): start failed: -1
at android.media.MediaRecorder.start(Native Method)
Getting rror Like this Please Help Me.Its Urgent.todays my submission in college.Plz help me.As soon as possible.