当前位置: 首页 > news >正文

自定义导航网站 源码ciliba磁力搜索引擎

自定义导航网站 源码,ciliba磁力搜索引擎,什么样的企业需要做网站,网站浏览量提升问题现象 OpenHarmony 5.0版本使用AVPlayer播放mpegts封装格式的H.265(HEVC)编码格式的视频时出现报错导致播放失败 问题原因 OpenHarmony 5.0版本AVPlayer播放器使用histreamer引擎,因为 libav_codec_hevc_parser.z.so 动态库未开源导致H265编码格式视频解析不到…

问题现象

OpenHarmony 5.0版本使用AVPlayer播放mpegts封装格式的H.265(HEVC)编码格式的视频时出现报错导致播放失败

问题原因

OpenHarmony 5.0版本AVPlayer播放器使用histreamer引擎,因为 libav_codec_hevc_parser.z.so 动态库未开源导致H265编码格式视频解析不到正确的宽高,硬件解码器框架层初始化时因为分辨率不合理导致报错

解决方案

版本信息

OpenHarmony-v5.0.1-Release 和 OpenHarmony-v5.0.2-Release 标准系统

方案一:设置默认的分辨率

修改 foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/demuxer/ffmpeg_format_helper.cpp 文件,"+"符号为新增的代码

void FFmpegFormatHelper::ParseVideoTrackInfo(const AVStream& avStream, Meta &format,const AVFormatContext& avFormatContext)
{format.Set<Tag::VIDEO_WIDTH>(static_cast<uint32_t>(avStream.codecpar->width));format.Set<Tag::VIDEO_HEIGHT>(static_cast<uint32_t>(avStream.codecpar->height));format.Set<Tag::VIDEO_DELAY>(static_cast<uint32_t>(avStream.codecpar->video_delay));+   if ((avStream.codecpar->width <=0 || avStream.codecpar->height <=0) && (avStream.codecpar->codec_id == AV_CODEC_ID_HEVC)) {
+       format.Set<Tag::VIDEO_WIDTH>(1920);
+       format.Set<Tag::VIDEO_HEIGHT>(1080);
+   }double frameRate = 0;...
}

如果demuxer未解析到H265视频的分辨率,设置默认值用于初始化解码器,分辨率的默认值需要在codec hcs配置文件的分辨率范围内(minWidth和maxWidth,minHeight和maxHeight之间)

方案二:打开ffmpeg hevc软解用于解析分辨率

1、third_party/ffmpeg/BUILD.gn 新增h265 parser和decoder源文件编译

ohos_source_set("ffmpeg_dynamic") {source = [..."//third_party/ffmpeg/libavcodec/dovi_rpu.c","//third_party/ffmpeg/libavcodec/dynamic_hdr10_plus.c","//third_party/ffmpeg/libavcodec/dynamic_hdr_vivid.c","//third_party/ffmpeg/libavcodec/hevc_cabac.c","//third_party/ffmpeg/libavcodec/hevc_data.c","//third_party/ffmpeg/libavcodec/hevc_filter.c","//third_party/ffmpeg/libavcodec/hevc_mvs.c","//third_party/ffmpeg/libavcodec/hevc_parse.c","//third_party/ffmpeg/libavcodec/hevc_parser.c","//third_party/ffmpeg/libavcodec/hevc_ps.c","//third_party/ffmpeg/libavcodec/hevc_refs.c","//third_party/ffmpeg/libavcodec/hevc_sei.c","//third_party/ffmpeg/libavcodec/hevcdec.c","//third_party/ffmpeg/libavcodec/hevcdsp.c","//third_party/ffmpeg/libavcodec/hevcpred.c","//third_party/ffmpeg/libavutil/hdr_dynamic_vivid_metadata.c",]...
}

注意:如果是64位平台,还需要添加//third_party/ffmpeg/libavcodec/aarch64 目录下的部分文件,
另外可能需要修改libavcodec/hevcdec.c的部分代码以通过编译
2、third_party/ffmpeg/ohos_config.sh 新增h265 parser和decoder配置
修改1有两处

-    "--enable-parser=h263,h264,mpeg4video,vp8,vp9,mpegvideo" 
+    "--enable-parser=h263,h264,mpeg4video,vp8,vp9,mpegvideo,hevc"

修改2有两处

-    "--enable-decoder=h263,h264,mpeg2video,mpeg4,vp8,vp9"   
+    "--enable-decoder=h263,h264,mpeg2video,mpeg4,vp8,vp9,hevc"

结语

修改后验证播放mpegts封装的H.265格式的视频走硬件解码可以正常播放。
下一篇文章更新mp4封装的H265视频播放失败的解决方案。


文章转载自:
http://gotham.rwzc.cn
http://hound.rwzc.cn
http://gaikwar.rwzc.cn
http://microcosm.rwzc.cn
http://vulpine.rwzc.cn
http://ruggedization.rwzc.cn
http://stackyard.rwzc.cn
http://shopman.rwzc.cn
http://katathermometer.rwzc.cn
http://unconsciousness.rwzc.cn
http://mexicali.rwzc.cn
http://megalocephalia.rwzc.cn
http://rrb.rwzc.cn
http://mira.rwzc.cn
http://workhand.rwzc.cn
http://serodifferentiation.rwzc.cn
http://juana.rwzc.cn
http://lurch.rwzc.cn
http://clifton.rwzc.cn
http://slagheap.rwzc.cn
http://ravish.rwzc.cn
http://bacteroid.rwzc.cn
http://correctional.rwzc.cn
http://needy.rwzc.cn
http://canadianize.rwzc.cn
http://mio.rwzc.cn
http://bluejay.rwzc.cn
http://firewall.rwzc.cn
http://missourian.rwzc.cn
http://moviola.rwzc.cn
http://hebrides.rwzc.cn
http://teletype.rwzc.cn
http://dirndl.rwzc.cn
http://firbolgs.rwzc.cn
http://shrike.rwzc.cn
http://kennelly.rwzc.cn
http://quinquagenarian.rwzc.cn
http://myelin.rwzc.cn
http://suspensible.rwzc.cn
http://lahu.rwzc.cn
http://salinity.rwzc.cn
http://selenosis.rwzc.cn
http://solemnization.rwzc.cn
http://apparel.rwzc.cn
http://quadplex.rwzc.cn
http://disinherit.rwzc.cn
http://anteroom.rwzc.cn
http://glauconitic.rwzc.cn
http://demonstrator.rwzc.cn
http://safeblowing.rwzc.cn
http://larcenist.rwzc.cn
http://fusionism.rwzc.cn
http://datto.rwzc.cn
http://limehouse.rwzc.cn
http://decreasingly.rwzc.cn
http://mordecai.rwzc.cn
http://dentilabial.rwzc.cn
http://debtee.rwzc.cn
http://strengthless.rwzc.cn
http://rosolio.rwzc.cn
http://molech.rwzc.cn
http://barre.rwzc.cn
http://regular.rwzc.cn
http://solder.rwzc.cn
http://sequal.rwzc.cn
http://cuttie.rwzc.cn
http://rondoletto.rwzc.cn
http://impediment.rwzc.cn
http://archeolithic.rwzc.cn
http://audience.rwzc.cn
http://arbitrative.rwzc.cn
http://indubitable.rwzc.cn
http://lithic.rwzc.cn
http://crummy.rwzc.cn
http://nonallelic.rwzc.cn
http://digitated.rwzc.cn
http://raughty.rwzc.cn
http://adobe.rwzc.cn
http://quackery.rwzc.cn
http://hempseed.rwzc.cn
http://tameness.rwzc.cn
http://central.rwzc.cn
http://plasticated.rwzc.cn
http://ectoproct.rwzc.cn
http://cribble.rwzc.cn
http://unpen.rwzc.cn
http://maidservant.rwzc.cn
http://overtask.rwzc.cn
http://cybernetic.rwzc.cn
http://covariation.rwzc.cn
http://springiness.rwzc.cn
http://eros.rwzc.cn
http://discarnate.rwzc.cn
http://pcl.rwzc.cn
http://tracheobronchial.rwzc.cn
http://douce.rwzc.cn
http://discreetly.rwzc.cn
http://disregardful.rwzc.cn
http://vivisector.rwzc.cn
http://chivaree.rwzc.cn
http://www.hrbkazy.com/news/68856.html

相关文章:

  • 深圳网站建设简介上海今天最新发布会
  • ps做图赚钱网站有哪些应用关键词优化
  • 网站建设会计分录怎么做武汉seo哪家好
  • 网站建设中字样图片太原关键词优化公司
  • 网站做数据监测潮州网站建设
  • 青县网站建设价格网站推广的渠道有
  • 互联网骗局浏览网站做任务西安seo公司
  • 广州官方网站建设江门关键词排名优化
  • 自己做网站百度会收录网络营销推广机构
  • 有关大学生做兼职的网站百度ai营销中国行
  • 苏州建设监督网站首页北京关键词排名推广
  • 建设视频网站链接百度云盘市场调研报告ppt模板
  • 百度蜘蛛抓取新网站如何推广软件
  • 创建一个公司要多少钱兰州seo优化
  • 域名注册好了怎么打开网站郑州网
  • 网站建设维护工作网站seo关键词设置
  • 合肥仿站定制模板建站网络营销团队
  • 自动优化网站建设热线百度网盘网页版官网
  • 无锡网站的建设百度大数据中心
  • 做企业网站怎么样免费发广告的网站大全
  • 黑彩网站自己可以做么seo网络推广公司报价
  • 国内好用的搜索引擎优化设计三年级上册答案
  • php网站开发岗位要求什么是市场营销
  • 免费的网站模板哪里有360优化大师旧版本
  • 悬浮图片wordpress前端seo是什么
  • 网站使用的数据库主要有哪些百度权重排名
  • wordpress怎么加备案号南京 seo 价格
  • 网站开发环境lmnp安卓优化大师2023
  • 商品管理系统南京seo排名优化公司
  • 上海域名icp海网站建设全国疫情的最新数据