AnsweredAssumed Answered

i.MX6DL Android 7.1.2 高清视频播放问题

Question asked by wanqi on Apr 2, 2018
Latest reply on Apr 11, 2018 by jimmychan

i.MX6DL Android 7.1.2 ,按官网Android User's Guide文档下载、编译。试过播放几个高清视频文件,只有一个能完整播放,也可拖动进度条。其他几个都是播放一段时间就会自己停住,或播放时拖动进度条也会停住,停住后便再无法播放,必须重启程序。

以下是出问题时logcat,是不是没打i.MX Android Extended Codec补丁的原因?请高人帮忙解答下,多谢!

 

04-02 11:21:30.868 1492-1492/com.android.gallery3d D/MediaPlayer: getMetadata
04-02 11:21:33.958 262-315/? I/audio_hw_primary: start_output_stream_primary... -1291504320, device 2
04-02 11:21:33.960 272-272/? D/NuPlayerDriver: start(0xac0aab40), state is 4, eos is 0
04-02 11:21:33.960 272-1731/? I/GenericSource: start
04-02 11:21:34.004 262-315/? W/audio_hw_primary: card 0, port 0 device 0x2
04-02 11:21:34.004 262-315/? W/audio_hw_primary: rate 44100, channel 2 period_size 0xc0
04-02 11:21:34.042 272-1736/? I/MediaPlayerService: MediaPlayerService::getOMX
04-02 11:21:34.044 272-1736/? I/OMXClient: MuxOMX ctor
04-02 11:21:34.044 269-297/? I/OMXMaster: makeComponentInstance(OMX.Freescale.std.video_decoder.avc.v3.hw-based) in mediacodec process
04-02 11:21:34.045 272-1738/? I/MediaPlayerService: MediaPlayerService::getOMX
04-02 11:21:34.046 272-1738/? I/OMXClient: MuxOMX ctor
04-02 11:21:34.046 269-1582/? I/OMXMaster: makeComponentInstance(OMX.Freescale.std.audio_decoder.aac.sw-based) in mediacodec process
04-02 11:21:34.049 269-1582/? I/OMXPlayer: Can't open library: lib_aacplusd_wrap_arm12_elinux_android.so
04-02 11:21:34.049 269-1582/? I/OMXPlayer: dlopen failed: library "lib_aacplusd_wrap_arm12_elinux_android.so" not found
04-02 11:21:34.055 272-1735/? I/MediaCodec: [OMX.Freescale.std.video_decoder.avc.v3.hw-based] setting surface generation to 278538
04-02 11:21:34.064 272-1736/? I/ACodec: Send reorder config(0) to VPU
04-02 11:21:34.065 269-681/? W/OMXNodeInstance: [10d004a:Freescale.std._decoder.avc.v3.hw-based] component does not support metadata mode; using fallback
04-02 11:21:34.066 272-1736/? E/ACodec: [OMX.Freescale.std.video_decoder.avc.v3.hw-based] storeMetaDataInBuffers failed w/ err -1010
04-02 11:21:34.075 269-681/? E/OMXNodeInstance: setParameter(10d004b:Freescale.std._decoder.aac.sw-based, ParamAudioAndroidAacPresentation(0x6f400003)) ERROR: UnsupportedIndex(0x8000101a)
04-02 11:21:34.077 269-681/? I/OMXPlayer: AudioFilter SetParameter OMX_IndexParamAudioOutputConvert
04-02 11:21:34.080 269-1692/? I/OMXPlayer: AudioFilter SetParameter OMX_IndexParamAudioSendFirstPortSettingChanged 0
04-02 11:21:34.084 269-681/? E/OMXNodeInstance: setConfig(10d004b:Freescale.std._decoder.aac.sw-based, ConfigPriority(0x6f800002)) ERROR: UnsupportedIndex(0x8000101a)
04-02 11:21:34.085 272-1738/? I/ACodec: codec does not support config priority (err -1010)
04-02 11:21:34.090 272-1738/? I/MediaCodec: MediaCodec will operate in async mode
04-02 11:21:34.096 269-1692/? E/OMXNodeInstance: getConfig(10d004a:Freescale.std._decoder.avc.v3.hw-based, ConfigCommonOutputCrop(0x700000f)) ERROR: IncorrectStateTransition(0x80001017)
04-02 11:21:34.098 272-1735/? I/MediaCodec: MediaCodec will operate in async mode
04-02 11:21:34.109 269-1741/? I/OMXPlayer: SetupDecoder AAC decoder Wrapper build on Apr 22 2014 09:43:52
04-02 11:21:34.118 272-1736/? D/SurfaceUtils: set up nativeWindow 0xa0c5e808 for 1920x1080, color 0x15, rotation 0, usage 0x8002900
04-02 11:21:34.170 272-1733/? D/AudioTrack: Client defaulted notificationFrames to 11136 for frameCount 22272
04-02 11:21:34.186 272-1731/? D/NuPlayerDriver: notifyListener_l(0xac0aab40), (6, 0, 0), loop setting(0, 0)
04-02 11:21:34.268 269-1739/? I/vpu-lib: Product Info: i.MX6Q/D/S
04-02 11:21:34.297 269-1739/? I/vpu-lib: <gpu> alloc handle: 0xb3c0d340, paddr: 0x306b5000, vaddr: 0xb0339000
04-02 11:21:34.298 269-1739/? I/vpu-lib: <gpu> alloc handle: 0xb3c0d360, paddr: 0x2c6aa000, vaddr: 0xac32e000
04-02 11:21:34.298 269-1739/? I/vpu-lib: bitstreamMode 1, chromaInterleave 1, mapType 0, tiled2LinearEnable 0
04-02 11:21:34.298 269-1739/? W/vpu-lib: VPU iram is less than needed, some parts don't use iram
04-02 11:21:34.300 272-1736/? W/ACodec: ACodec map vpu crop info: output crop: 1080, frameH 1088
04-02 11:21:34.331 272-1736/? D/SurfaceUtils: set up nativeWindow 0xa0c5e808 for 1920x1088, color 0x15, rotation 0, usage 0x8002900
04-02 11:21:34.380 269-1739/? I/vpu-lib: <gpu> alloc handle: 0xb3c0d460, paddr: 0x30eb2000, vaddr: 0xb0b36000
04-02 11:21:34.399 272-1736/? E/ACodec: [OMX.Freescale.std.video_decoder.avc.v3.hw-based]do not dequeue buffer,queued cnt=1
04-02 11:21:34.399 272-1731/? D/NuPlayerDriver: notifyListener_l(0xac0aab40), (5, 1920, 1080), loop setting(0, 0)
04-02 11:21:34.399 272-1731/? D/NuPlayerDriver: notifyListener_l(0xac0aab40), (200, 3, 0), loop setting(0, 0)
04-02 11:21:34.400 1492-1514/com.android.gallery3d W/MediaPlayer: info/warning (3, 0)
04-02 11:21:34.421 272-1736/? E/ACodec: [OMX.Freescale.std.video_decoder.avc.v3.hw-based]do not dequeue buffer,queued cnt=2
04-02 11:21:37.115 272-704/? D/NuPlayerDriver: seekTo(0xac0aab40) 1760 ms at state 5
04-02 11:21:37.115 272-704/? D/NuPlayerDriver: notifyListener_l(0xac0aab40), (7, 0, 0), loop setting(0, 0)
04-02 11:21:37.155 271-271/? D/FslExtractor: HandleSeekOperation do seek index=0
04-02 11:21:37.155 271-271/? D/FslExtractor: HandleSeekOperation index=0,ts=0,flag=2
04-02 11:21:37.178 271-941/? D/FslExtractor: HandleSeekOperation do seek index=1
04-02 11:21:37.178 271-941/? D/FslExtractor: HandleSeekOperation index=1,ts=0,flag=2
04-02 11:21:37.189 272-1737/? I/NuPlayerDecoder: [OMX.Freescale.std.audio_decoder.aac.sw-based] resubmitting CSD
04-02 11:21:37.223 272-1731/? D/NuPlayerDriver: notifyListener_l(0xac0aab40), (4, 0, 0), loop setting(0, 0)
04-02 11:21:37.225 272-1731/? D/NuPlayerDriver: notifyListener_l(0xac0aab40), (6, 0, 0), loop setting(0, 0)
04-02 11:21:37.226 262-315/? D/AudioMixer: previous float ramp hasn't finished, prev:0.266840 set_to:0.000000
04-02 11:21:37.226 262-315/? D/AudioMixer: previous float ramp hasn't finished, prev:0.266840 set_to:0.000000
04-02 11:21:37.228 272-325/? D/NuPlayerDriver: seekTo(0xac0aab40) 2112 ms at state 5
04-02 11:21:37.228 272-325/? D/NuPlayerDriver: notifyListener_l(0xac0aab40), (7, 0, 0), loop setting(0, 0)
04-02 11:21:37.251 271-313/? D/FslExtractor: HandleSeekOperation do seek index=0
04-02 11:21:37.251 271-313/? D/FslExtractor: HandleSeekOperation index=0,ts=2002000,flag=2
04-02 11:21:37.285 271-271/? D/FslExtractor: HandleSeekOperation do seek index=1
04-02 11:21:37.285 271-271/? D/FslExtractor: HandleSeekOperation index=1,ts=1973696,flag=2
04-02 11:21:37.296 272-1737/? I/NuPlayerDecoder: [OMX.Freescale.std.audio_decoder.aac.sw-based] resubmitting CSD
04-02 11:21:37.326 272-1731/? D/NuPlayerDriver: notifyListener_l(0xac0aab40), (6, 0, 0), loop setting(0, 0)
04-02 11:21:37.336 272-1731/? D/NuPlayerDriver: notifyListener_l(0xac0aab40), (4, 0, 0), loop setting(0, 0)
04-02 11:21:37.351 272-325/? D/NuPlayerDriver: seekTo(0xac0aab40) 50344 ms at state 5
04-02 11:21:37.352 272-325/? D/NuPlayerDriver: notifyListener_l(0xac0aab40), (7, 0, 0), loop setting(0, 0)
04-02 11:21:37.372 271-1042/? D/FslExtractor: HandleSeekOperation do seek index=0
04-02 11:21:37.372 271-1042/? D/FslExtractor: HandleSeekOperation index=0,ts=48840458,flag=2
04-02 11:21:37.419 271-313/? D/FslExtractor: HandleSeekOperation do seek index=1
04-02 11:21:37.419 271-313/? D/FslExtractor: HandleSeekOperation index=1,ts=48808344,flag=2
04-02 11:21:37.436 272-1737/? I/NuPlayerDecoder: [OMX.Freescale.std.audio_decoder.aac.sw-based] resubmitting CSD
04-02 11:21:37.464 272-1731/? D/NuPlayerDriver: notifyListener_l(0xac0aab40), (6, 0, 0), loop setting(0, 0)
04-02 11:21:37.470 272-1731/? D/NuPlayerDriver: notifyListener_l(0xac0aab40), (4, 0, 0), loop setting(0, 0)
04-02 11:21:37.494 272-704/? D/NuPlayerDriver: seekTo(0xac0aab40) 123924 ms at state 5
04-02 11:21:37.494 272-704/? D/NuPlayerDriver: notifyListener_l(0xac0aab40), (7, 0, 0), loop setting(0, 0)
04-02 11:21:37.518 271-941/? D/FslExtractor: HandleSeekOperation do seek index=0
04-02 11:21:37.518 271-941/? D/FslExtractor: HandleSeekOperation index=0,ts=123790333,flag=2
04-02 11:21:37.558 271-941/? D/FslExtractor: HandleSeekOperation do seek index=1
04-02 11:21:37.558 271-941/? D/FslExtractor: HandleSeekOperation index=1,ts=123762358,flag=2
04-02 11:21:37.567 272-1737/? I/NuPlayerDecoder: [OMX.Freescale.std.audio_decoder.aac.sw-based] resubmitting CSD
04-02 11:21:37.940 262-315/? I/AudioFlinger: BUFFER TIMEOUT: remove(4098) from active list on thread 0xb2b03480
04-02 11:21:38.449 269-1739/? I/OMXPlayer: LEVEL: 1 FUNCTION: FilterOneBuffer LINE: 3132
04-02 11:21:38.449 269-1739/? I/OMXPlayer: FilterOneBuffer: vpu dec buf failure: ret=0x1
04-02 11:21:38.451 272-1736/? E/ACodec: [OMX.Freescale.std.video_decoder.avc.v3.hw-based] ERROR(0x8000100b)
04-02 11:21:38.451 272-1736/? E/ACodec: signalError(omxError 0x8000100b, internalError -2147483648)
04-02 11:21:38.451 272-1735/? E/MediaCodec: Codec reported err 0x8000100b, actionCode 0, while in state 6
04-02 11:21:38.451 272-1734/? E/NuPlayerDecoder: Decoder (video) reported error : 0x8000100b
04-02 11:21:38.451 272-1731/? E/NuPlayer: received error(0x8000100b) from video decoder, flushing(0), now shutting down
04-02 11:21:38.451 272-1731/? D/NuPlayerDriver: notifyListener_l(0xac0aab40), (100, 1, -2147479541), loop setting(0, 0)
04-02 11:21:38.453 1492-1514/com.android.gallery3d E/MediaPlayer: error (1, -2147479541)
04-02 11:21:38.454 1492-1492/com.android.gallery3d E/MediaPlayer: Attempt to call getDuration in wrong state: mPlayer=0x8e47ce80, mCurrentState=0
04-02 11:21:38.454 1492-1492/com.android.gallery3d E/MediaPlayer: error (-38, 0)
04-02 11:21:38.454 1492-1492/com.android.gallery3d E/MediaPlayer: Error (1,-2147479541)
04-02 11:21:38.454 1492-1492/com.android.gallery3d D/VideoView: Error: 1,-2147479541
04-02 11:21:38.462 269-1739/? I/OMXPlayer: LEVEL: 1 FUNCTION: FilterOneBuffer LINE: 3132
04-02 11:21:38.462 269-1739/? I/OMXPlayer: FilterOneBuffer: vpu dec buf failure: ret=0x1
04-02 11:21:38.463 272-1736/? E/ACodec: [OMX.Freescale.std.video_decoder.avc.v3.hw-based] ERROR(0x8000100b)
04-02 11:21:38.463 272-1736/? E/ACodec: signalError(omxError 0x8000100b, internalError -2147483648)
04-02 11:21:38.463 272-1735/? E/MediaCodec: Codec reported err 0x8000100b, actionCode 0, while in state 0
04-02 11:21:38.463 272-1734/? E/NuPlayerDecoder: failed to flush OMX.Freescale.std.video_decoder.avc.v3.hw-based (err=-38)
04-02 11:21:38.463 272-1731/? E/NuPlayer: received error(0xffffffda) from video decoder, flushing(2), now shutting down
04-02 11:21:38.463 272-1731/? D/NuPlayerDriver: notifyListener_l(0xac0aab40), (100, 1, -38), loop setting(0, 0)
04-02 11:21:38.463 1492-1504/com.android.gallery3d E/MediaPlayer: error (1, -38)
04-02 11:21:38.464 272-1731/? D/NuPlayerDriver: notifyListener_l(0xac0aab40), (4, 0, 0), loop setting(0, 0)
04-02 11:21:38.484 272-1736/? E/Surface: getSlotFromBufferLocked: unknown buffer: 0xaa883e40
04-02 11:21:38.484 272-1736/? W/ACodec: [OMX.Freescale.std.video_decoder.avc.v3.hw-based] can not return buffer 15 to native window
04-02 11:21:38.486 272-1736/? E/Surface: getSlotFromBufferLocked: unknown buffer: 0xaa884200
04-02 11:21:38.486 272-1736/? W/ACodec: [OMX.Freescale.std.video_decoder.avc.v3.hw-based] can not return buffer 14 to native window
04-02 11:21:38.490 272-1736/? E/Surface: getSlotFromBufferLocked: unknown buffer: 0xaa884380
04-02 11:21:38.490 272-1736/? W/ACodec: [OMX.Freescale.std.video_decoder.avc.v3.hw-based] can not return buffer 12 to native window
04-02 11:21:38.493 272-1736/? E/Surface: getSlotFromBufferLocked: unknown buffer: 0xaa884440
04-02 11:21:38.493 272-1736/? W/ACodec: [OMX.Freescale.std.video_decoder.avc.v3.hw-based] can not return buffer 11 to native window
04-02 11:21:38.495 269-269/? I/vpu-lib: <gpu> free handle: 0xb3c0d360, paddr: 0x2c6aa000, vaddr: 0xac32e000
04-02 11:21:38.496 269-269/? I/vpu-lib: <gpu> free handle: 0xb3c0d340, paddr: 0x306b5000, vaddr: 0xb0339000
04-02 11:21:38.496 269-269/? I/vpu-lib: <gpu> free handle: 0xb3c0d460, paddr: 0x30eb2000, vaddr: 0xb0b36000
04-02 11:21:38.511 272-1731/? W/AMessage: failed to post message as target looper for handler 0 is gone.
04-02 11:21:38.527 1492-1492/com.android.gallery3d E/MediaPlayer: Error (-38,0)
04-02 11:21:38.528 1492-1492/com.android.gallery3d D/VideoView: Error: -38,0
04-02 11:21:38.665 1492-1492/com.android.gallery3d E/MediaPlayer: Error (1,-38)
04-02 11:21:38.665 1492-1492/com.android.gallery3d D/VideoView: Error: 1,-38
04-02 11:21:38.688 535-592/system_process D/WifiStateMachine: updateCapabilities for config:TP-LINK_47false,false
04-02 11:21:40.510 262-315/? W/audio_hw_primary: do_out_standby... -1291504320
04-02 11:21:41.739 535-592/system_process D/WifiStateMachine: updateCapabilities for config:TP-LINK_47false,false
04-02 11:21:41.814 262-315/? I/audio_hw_primary: start_output_stream_primary... -1291504320, device 2
04-02 11:21:41.856 262-315/? W/audio_hw_primary: card 0, port 0 device 0x2
04-02 11:21:41.856 262-315/? W/audio_hw_primary: rate 44100, channel 2 period_size 0xc0
04-02 11:21:41.862 272-683/? D/NuPlayerDriver: reset(0xac0aab40) at state 5
04-02 11:21:41.862 272-683/? D/NuPlayerDriver: notifyListener_l(0xac0aab40), (8, 0, 0), loop setting(0, 0)
04-02 11:21:41.887 272-1731/? W/AMessage: failed to post message as target looper for handler 0 is gone.
04-02 11:21:41.889 272-1731/? D/NuPlayerDriver: notifyResetComplete(0xac0aab40)
04-02 11:21:41.892 272-965/? D/NuPlayerDriver: reset(0xac0aab40) at state 0
04-02 11:21:41.894 271-271/? D/FslExtractor: FslMediaSource::~FslMediaSource
04-02 11:21:41.896 271-271/? D/FslExtractor: FslMediaSource::~FslMediaSource
04-02 11:21:41.896 535-546/system_process I/MediaFocusControl: AudioFocus abandonAudioFocus() from uid/pid 10045/1492 clientId=android.media.AudioManager@dd40a99
04-02 11:21:41.897 271-271/? D/FslExtractor: FslExtractor::~FslExtractor
04-02 11:21:42.466 535-856/system_process I/MediaFocusControl: AudioFocus abandonAudioFocus() from uid/pid 10045/1492 clientId=android.media.AudioManager@dd40a99
04-02 11:21:42.470 1492-1492/com.android.gallery3d I/art: Starting a blocking GC Explicit
04-02 11:21:42.538 1492-1492/com.android.gallery3d I/art: Explicit concurrent mark sweep GC freed 2986(220KB) AllocSpace objects, 0(0B) LOS objects, 24% free, 3MB/4MB, paused 960us total 64.934ms
04-02 11:21:42.542 1492-1492/com.android.gallery3d I/art: Starting a blocking GC Explicit
04-02 11:21:42.596 1492-1492/com.android.gallery3d I/art: Explicit concurrent mark sweep GC freed 1994(148KB) AllocSpace objects, 0(0B) LOS objects, 25% free, 2MB/3MB, paused 851us total 52.293ms
04-02 11:21:42.643 1492-1492/com.android.gallery3d E/WindowManager: android.view.WindowLeaked: Activity com.android.gallery3d.app.MovieActivity has leaked window DecorView@64ad572[] that was originally added here
at android.view.ViewRootImpl.<init>(ViewRootImpl.java:418)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:331)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:93)
at android.app.Dialog.show(Dialog.java:329)
at android.app.AlertDialog$Builder.show(AlertDialog.java:1112)
at android.widget.VideoView$5.onError(VideoView.java:530)
at android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:2938)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6121)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:890)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:780)
04-02 11:21:42.646 1492-1492/com.android.gallery3d E/WindowManager: android.view.WindowLeaked: Activity com.android.gallery3d.app.MovieActivity has leaked window DecorView@3183640[] that was originally added here
at android.view.ViewRootImpl.<init>(ViewRootImpl.java:418)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:331)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:93)
at android.app.Dialog.show(Dialog.java:329)
at android.app.AlertDialog$Builder.show(AlertDialog.java:1112)
at android.widget.VideoView$5.onError(VideoView.java:530)
at android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:2938)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6121)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:890)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:780)
04-02 11:21:42.676 535-684/system_process W/WindowManager: Failed looking up window
java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@ba0b5cb does not exist
at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9415)
at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9406)
at com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2387)
at com.android.server.wm.Session.remove(Session.java:193)
at android.view.IWindowSession$Stub.onTransact(IWindowSession.java:242)
at com.android.server.wm.Session.onTransact(Session.java:136)
at android.os.Binder.execTransact(Binder.java:565)
04-02 11:21:42.679 535-547/system_process W/WindowManager: Failed looking up window
java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@698c4c1 does not exist
at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9415)
at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9406)
at com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2387)
at com.android.server.wm.Session.remove(Session.java:193)
at android.view.IWindowSession$Stub.onTransact(IWindowSession.java:242)
at com.android.server.wm.Session.onTransact(Session.java:136)
at android.os.Binder.execTransact(Binder.java:565)

Outcomes