spydroid可在手机上运行,但不能再开发板上运行
星秋乘风 2016-01-06 04:31:22 正在做导师的一个传实时视频的项目,用的开源项目spydroid,将应用运行在手机上,电脑端使用VLC播放器可以实时播放(使用RTSP服务),但是相同的应用运行在开发板上,就无法运行。log信息大致如下:
01-06 09:56:52.475: E/RtspServer(1609): OPTIONS rtsp://10.108.169.179:8086
01-06 09:56:52.485: E/RtspServer(1609): DESCRIBE rtsp://10.108.169.179:8086
01-06 09:56:53.295: E/OMXMaster(1609): A component of name 'OMX.LUMEVideoDecoder' already exists, ignoring this one.
01-06 09:56:53.295: E/OMXMaster(1609): A component of name 'OMX.LUMEVideoDecoder' already exists, ignoring this one.
01-06 09:56:53.295: E/OMXMaster(1609): A component of name 'OMX.LUMEVideoDecoder' already exists, ignoring this one.
01-06 09:56:53.305: E/SoftAVCEncoder(1609): internalSetParameter: StoreMetadataInBuffersParams.nPortIndex not zero!
01-06 09:56:53.305: E/OMXNodeInstance(1609): OMX_SetParameter() failed for StoreMetaDataInBuffers: 0x80001001
01-06 09:56:53.305: E/ACodec(1609): [OMX.google.h264.encoder] storeMetaDataInBuffers (output) failed w/ err -2147483648
01-06 09:56:53.315: E/SoftAVCEncoder(1609): Failed to initialize the encoder: -8
01-06 09:56:53.325: E/ACodec(1609): [OMX.google.h264.encoder] ERROR(0x80001001)
01-06 09:56:53.325: E/MediaCodec(1609): Codec reported an error. (omx error 0x80001001, internalError -2147483648)
01-06 09:56:53.575: E/OMXMaster(1609): A component of name 'OMX.LUMEVideoDecoder' already exists, ignoring this one.
01-06 09:56:53.575: E/OMXMaster(1609): A component of name 'OMX.LUMEVideoDecoder' already exists, ignoring this one.
01-06 09:56:53.575: E/OMXMaster(1609): A component of name 'OMX.LUMEVideoDecoder' already exists, ignoring this one.
01-06 09:56:53.585: E/SoftAVCEncoder(1609): internalSetParameter: StoreMetadataInBuffersParams.nPortIndex not zero!
01-06 09:56:53.585: E/OMXNodeInstance(1609): OMX_SetParameter() failed for StoreMetaDataInBuffers: 0x80001001
01-06 09:56:53.585: E/ACodec(1609): [OMX.google.h264.encoder] storeMetaDataInBuffers (output) failed w/ err -2147483648
01-06 09:56:53.595: E/SoftAVCEncoder(1609): Failed to initialize the encoder: -8
01-06 09:56:53.595: E/ACodec(1609): [OMX.google.h264.encoder] ERROR(0x80001001)
01-06 09:56:53.595: E/MediaCodec(1609): Codec reported an error. (omx error 0x80001001, internalError -2147483648)
01-06 09:56:53.775: E/ACodec(1609): [OMX.ingenic.x264.encoder] storeMetaDataInBuffers (output) failed w/ err -2147483648
01-06 09:56:54.565: E/OMXMaster(1609): A component of name 'OMX.LUMEVideoDecoder' already exists, ignoring this one.
01-06 09:56:54.565: E/OMXMaster(1609): A component of name 'OMX.LUMEVideoDecoder' already exists, ignoring this one.
01-06 09:56:54.565: E/OMXMaster(1609): A component of name 'OMX.LUMEVideoDecoder' already exists, ignoring this one.
01-06 09:56:55.395: E/ACodec(1609): [OMX.ingenic.x264.encoder] storeMetaDataInBuffers (output) failed w/ err -2147483648
01-06 09:56:56.175: E/OMXMaster(1609): A component of name 'OMX.LUMEVideoDecoder' already exists, ignoring this one.
01-06 09:56:56.175: E/OMXMaster(1609): A component of name 'OMX.LUMEVideoDecoder' already exists, ignoring this one.
01-06 09:56:56.175: E/OMXMaster(1609): A component of name 'OMX.LUMEVideoDecoder' already exists, ignoring this one.
01-06 09:56:56.705: E/EncoderDebugger(1609): No usable encoder were found on the phone for resolution 640x480
01-06 09:56:56.705: E/H264Stream(1609): Resolution not supported with the MediaCodec API, we fallback on the old streamign method.
01-06 09:56:56.985: E/MediaRecorder(1609): start failed: -19
01-06 09:56:56.995: E/MediaRecorder(1609): stop called in an invalid state: 0
01-06 09:56:56.995: E/RtspServer(1609): start failed.
01-06 09:56:59.825: E/RtspServer(1609): OPTIONS rtsp://10.108.169.179:8086
01-06 09:57:09.015: E/AndroidProtocolHandler(1609): Unable to open content URL: content://com.google.android.gms.ads.adinfo/any.gif?zx=2n6hpt23i5gd
01-06 09:57:09.015: E/ActivityThread(1609): Failed to find provider info for com.google.android.gms.ads.adinfo
另:下面是RTSPP服务器的log信息
01-06 09:52:12.995: I/RtspServer(1609): RTSP server listening on port 8086
01-06 09:53:08.945: I/RtspServer(1609): Connection from 10.108.170.229
01-06 09:53:08.945: E/RtspServer(1609): OPTIONS rtsp://10.108.169.179:8086
01-06 09:53:08.975: D/RtspServer(1609): RTSP/1.0 200 OK
01-06 09:53:08.975: D/RtspServer(1609): Server: MajorKernelPanic RTSP Server
01-06 09:53:08.975: D/RtspServer(1609): Cseq: 2
01-06 09:53:08.975: D/RtspServer(1609): Content-Length: 0
01-06 09:53:08.975: D/RtspServer(1609): Public: DESCRIBE,SETUP,TEARDOWN,PLAY,PAUSE
01-06 09:53:08.985: E/RtspServer(1609): DESCRIBE rtsp://10.108.169.179:8086
01-06 09:53:13.935: I/RtspServer(1609): Connection from 10.108.170.229
01-06 09:53:13.955: E/RtspServer(1609): OPTIONS rtsp://10.108.169.179:8086
01-06 09:53:13.975: D/RtspServer(1609): RTSP/1.0 200 OK
01-06 09:53:13.975: D/RtspServer(1609): Server: MajorKernelPanic RTSP Server
01-06 09:53:13.975: D/RtspServer(1609): Cseq: 1
01-06 09:53:13.975: D/RtspServer(1609): Content-Length: 0
01-06 09:53:13.975: D/RtspServer(1609): Public: DESCRIBE,SETUP,TEARDOWN,PLAY,PAUSE
01-06 09:53:14.005: I/RtspServer(1609): Client disconnected
01-06 09:53:16.965: E/RtspServer(1609): start failed.
01-06 09:53:16.965: D/RtspServer(1609): RTSP/1.0 500 Internal Server Error
01-06 09:53:16.965: D/RtspServer(1609): Server: MajorKernelPanic RTSP Server
01-06 09:53:16.965: D/RtspServer(1609): Cseq: 3
01-06 09:53:16.965: D/RtspServer(1609): Content-Length: 0
01-06 09:53:17.635: I/RtspServer(1609): Client disconnected
可能的问题:
1.开发板不支持分辨率、帧速度等。但是我试了所有的分辨率、速度也不行。
2.错误信息说无法初始化编码器,但是开发板自己录像时是使用H264编码的,说明编码器可用。这个不知道问题在哪儿了
3.错误信息说不支持640*480,但是我使用的是320*240,也有这个错误。额。
4.RTSPlog信息说是内部服务器错误,也没有找到错误。
5.导师说会不会是开发板电压不足,不支持同时连接wifi,同时录制传输视频。这个就操蛋了。