wujianGit123
wujianGit123
> 我遇到的错误是Uncaught (in promise) RuntimeError: abort(RuntimeError: abort(both async and sync fetching of the wasm failed) at Error 我没报这个错,但是我在官方demo(http://open.tsingsee.com/sdk/easyplayer/#player)上播放H265的flv,情况跟我自己集成的一样
> > > 我遇到的错误是Uncaught (in promise) RuntimeError: abort(RuntimeError: abort(both async and sync fetching of the wasm failed) at Error > > > > > > 我没报这个错,但是我在官方demo([http://open.tsingsee.com/sdk/easyplayer/#player)上播放H265的flv,情况跟我自己集成的一样](http://open.tsingsee.com/sdk/easyplayer/#player%EF%BC%89%E4%B8%8A%E6%92%AD%E6%94%BEH265%E7%9A%84flv%EF%BC%8C%E6%83%85%E5%86%B5%E8%B7%9F%E6%88%91%E8%87%AA%E5%B7%B1%E9%9B%86%E6%88%90%E7%9A%84%E4%B8%80%E6%A0%B7) > > 这个wasm文件是要放在和打包出来的dist文件夹同目录下么?我用的是vue-cli打包项目的 应该是,如果不确定可以在几个位置都放,就不会有问题
> > > > > 我遇到的错误是Uncaught (in promise) RuntimeError: abort(RuntimeError: abort(both async and sync fetching of the wasm failed) at Error > > > > > > > > >...
> 我遇到的错误是Uncaught (in promise) RuntimeError: abort(RuntimeError: abort(both async and sync fetching of the wasm failed) at Error 你是用flv还是hls或者rtmp播放h265报这个错?我的根本就不加载wasm就好像播放的不是H265码流一样
> > 如题,有知道怎么解决的大佬吗? > > 请问修复好了吗大佬,遇到了同样的问题 没有解决,之前旧版的EasyPlayer.js可以播放H265,但是效果不是很好好,经常有小卡顿,现在集成新版本之后完全播放不了了
> hevc中的4K buffer只用来保存vps、sps、pps 好的,那应该是我的用法错误,把这个issue关掉吧,谢谢。
> 初始化这个结构体可以看:mpeg4_hevc_decoder_configuration_record_load 、 mpeg4_hevc_decoder_configuration_record_save > > 具体使用可以看看h265_annexbtomp4、h265_mp4toannexb 这两个函数 好的,谢谢。可能是流数据本身有问题,收到的pps帧的数据有一百多KB,然后传进h265_annexbtomp4函数造成内存越界
> 数据保存了吗? 上传文件我分析下。 没有呢,这种情况极少发生(可能跑一个月都不出现一次),我设定将大小超过1KB的VPS、SPS、PPS帧都当作是错误帧,这样后面就不会产生这个问题了
> 这个函数内部有长度检查,还记得崩溃的大致位置吗? 没有长度检查吧,发生在mpeg4_hevc_add函数memcpy(hevc->nalu[hevc->numOfArrays].data, nalu, bytes);语句,我看off成员变量的值是很大的数值,明显是内存越界拷贝将off的数值冲掉了
第三次调用mpeg4_hevc_add的时候bytes是1百多KB,但是nalu数组前两个成员的bytes都是很小的数值,加起来只有几十,到了第三次调用mpeg4_hevc_add,off的数值就很大(大到明显是错误的)