M3U8文件中的Andr​​oid模拟器不打 [英] m3u8 file not playing in Android Emulator

查看:1045
本文介绍了M3U8文件中的Andr​​oid模拟器不打的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在播放Android模拟器一个M3U8文件。
http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8

这是无法播放的视频,但音频声。结果
我收到以下错误 E / OMXNodeInstance(39):OMX_GetExtensionIndex失败

我跟踪的电话,我看到了视频去codeR为正确实例,结果
我发现, OMXNodeInstance :: enableGraphicBuffers 获取调用和通话,结果
OMX_ERRORTYPE ERR = OMX_GetExtensionIndex(...,const_cast<OMX_STRING>(\"OMX.google.android.index.enableAndroidNativeBuffers\"),...);

那么这是调用 OMX_ERRORTYPE SoftOMXComponent :: getExtensionIndex ,结果
但此功能没有实现。结果
它只是返回UndefinedError(code以下)

  OMX_ERRORTYPE SoftOMXComponent :: getExtensionIndex(为const char *名称,OMX_INDEXTYPE *指数)
{
返回OMX_ErrorUndefined;
}

有人可以帮我解决这个GetExtentionIndex失败。
登录以下

  / ChromiumHTTPDataSource(39):连接到http://devimages.apple.com/iphone/samples/bipbop/gear4/prog_index.m3u8 @ 0
V / NuPlayer(39):扫描源haveAudio = 0,haveVideo = 0
V / NuPlayer(39):在693音频instantiateDe codeR = 0
V / NuPlayer(39):在693音频instantiateDe codeR = 1
I / ESQueue(39):发现AAC codeC配置(22050赫兹,1频道)
I / avc_utils(39):发现AVC codeC配置(192×144,基线瞩目水平1.1)
V / MediaPlayer的(583):在getCurrentPosition为:425
V / MediaPlayerService(39):getCurrentPosition
V / MediaPlayerService(39):[1] getCurrentPosition = 0
V / NuPlayer(39):扫描源haveAudio = 0,haveVideo = 0
V / NuPlayer(39):在instantiateDe codeR 701哑剧=视频/ AVC
V / A codeC(39):现在未初始化
V / A codeC(39):现在未初始化
V / A codeC(39):onAllocateComponent
I / MediaPlayerService(39):MediaPlayerService :: getOMX()
V / SoftOMXPlugin(39):makeComponentInstance'OMX.google.h264.de codeR'
V / SoftOMXPlugin(39):makeComponentInstance在106
V / A codeC(39):onAllocateComponent
I / MediaPlayerService(39):MediaPlayerService :: getOMX()
V / SoftOMXPlugin(39):makeComponentInstance 128
V / SoftOMXPlugin(39):makeComponentInstance'OMX.google.aac.de codeR'
V / SoftOMXPlugin(39):makeComponentInstance在106
V / SoftOMXPlugin(39):makeComponentInstance 128
V / A codeC(39):OMX.google.h264.de codeR]现在被装载
V / A codeC(39):onConfigureComponent
V / A codeC(39):870配置codeC
V / A codeC(39):在1400 setupVideoDe codeR
V / A codeC(39):在1402哑剧setupVideoDe codeR =视频/ AVC
V / A codeC(39):在1406 setupVideoDe codeR
V / A codeC(39):在1414 setupVideoDe codeR
V / A codeC(39):在1421 setupVideoDe codeR
V / A codeC(39):在1429 setupVideoDe codeR
V / A codeC(39):在1437 setupVideoDe codeR
V / A codeC(39):initNativeWindow在1962年
V / A codeC(39):initNativeWindow在1967
E / OMXNodeInstance(39):OMX_GetExtensionIndex失败
V / OMXNodeInstance(39):301 OMX_GetExtensionIndex enableGraphicBuffers返回2147487745
V / A codeC(39):在onStart
V / A codeC(39):OMX.google.h264.de codeR]现在与装载时GT;闲置


解决方案

  E / OMXNodeInstance(39):OMX_GetExtensionIndex失败
V / OMXNodeInstance(39):301 OMX_GetExtensionIndex enableGraphicBuffers返回2147487745

调用 OMX_GetExtensionIndex 土地成SoftOMXComponent(<一个href=\"http://androidxref.com/4.2.2_r1/xref/frameworks/av/media/libstagefright/omx/SoftOMXComponent.cpp\"相对=nofollow>这里),这仅仅是一个存根函数,总是返回 OMX_ErrorUndefined 这导致了失败的 enableGraphicBuffers

I am trying to playback a m3u8 file in Android Emulator. http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8

It's not able to playback the video but audio is heard.
I get the following error E/OMXNodeInstance( 39): OMX_GetExtensionIndex failed.

I traced the calls and I see that the video decoder is not instantiated properly,
I find that OMXNodeInstance::enableGraphicBuffers is getting called and that calls,
OMX_ERRORTYPE err = OMX_GetExtensionIndex(...,const_cast<OMX_STRING>("OMX.google.android.index.enableAndroidNativeBuffers"),...);
which is then calling OMX_ERRORTYPE SoftOMXComponent::getExtensionIndex,
but there is no implementation for this function.
It just returns UndefinedError (code below)

OMX_ERRORTYPE SoftOMXComponent::getExtensionIndex(const char *name, OMX_INDEXTYPE *index)
{
return OMX_ErrorUndefined;
}

Can somebody please help me to overcome this GetExtentionIndex failure. Log Below

/ChromiumHTTPDataSource( 39): connect to http://devimages.apple.com/iphone/samples/bipbop/gear4/prog_index.m3u8 @0
V/NuPlayer( 39): scanning sources haveAudio=0, haveVideo=0
V/NuPlayer( 39): in instantiateDecoder at 693 audio = 0 
V/NuPlayer( 39): in instantiateDecoder at 693 audio = 1 
I/ESQueue ( 39): found AAC codec config (22050 Hz, 1 channels)
I/avc_utils( 39): found AVC codec config (192 x 144, Baseline-profile level 1.1)
V/MediaPlayer( 583): in getCurrentPosition at : 425
V/MediaPlayerService( 39): getCurrentPosition
V/MediaPlayerService( 39): [1] getCurrentPosition = 0
V/NuPlayer( 39): scanning sources haveAudio=0, haveVideo=0
V/NuPlayer( 39): in instantiateDecoder at 701 mime = video/avc
V/ACodec ( 39): Now uninitialized
V/ACodec ( 39): Now uninitialized
V/ACodec ( 39): onAllocateComponent
I/MediaPlayerService( 39): MediaPlayerService::getOMX()
V/SoftOMXPlugin( 39): makeComponentInstance 'OMX.google.h264.decoder'
V/SoftOMXPlugin( 39): makeComponentInstance at 106 
V/ACodec ( 39): onAllocateComponent
I/MediaPlayerService( 39): MediaPlayerService::getOMX()
V/SoftOMXPlugin( 39): makeComponentInstance at 128 
V/SoftOMXPlugin( 39): makeComponentInstance 'OMX.google.aac.decoder'
V/SoftOMXPlugin( 39): makeComponentInstance at 106 
V/SoftOMXPlugin( 39): makeComponentInstance at 128 
V/ACodec ( 39): [OMX.google.h264.decoder] Now Loaded
V/ACodec ( 39): onConfigureComponent
V/ACodec ( 39): configureCodec at 870 
V/ACodec ( 39): setupVideoDecoder at 1400 
V/ACodec ( 39): setupVideoDecoder at 1402 mime = video/avc 
V/ACodec ( 39): setupVideoDecoder at 1406 
V/ACodec ( 39): setupVideoDecoder at 1414 
V/ACodec ( 39): setupVideoDecoder at 1421 
V/ACodec ( 39): setupVideoDecoder at 1429 
V/ACodec ( 39): setupVideoDecoder at 1437 
V/ACodec ( 39): initNativeWindow at 1962 
V/ACodec ( 39): initNativeWindow at 1967 
E/OMXNodeInstance( 39): OMX_GetExtensionIndex failed
V/OMXNodeInstance( 39): enableGraphicBuffers at 301 OMX_GetExtensionIndex returned 2147487745
V/ACodec ( 39): onStart
V/ACodec ( 39): [OMX.google.h264.decoder] Now Loaded->Idle

解决方案

E/OMXNodeInstance( 39): OMX_GetExtensionIndex failed
V/OMXNodeInstance( 39): enableGraphicBuffers at 301 OMX_GetExtensionIndex returned 2147487745

the call to OMX_GetExtensionIndex lands into SoftOMXComponent(here) which is just a stubbed function and always returns OMX_ErrorUndefined which leads to failing of enableGraphicBuffers

这篇关于M3U8文件中的Andr​​oid模拟器不打的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆