{"id":23976003,"url":"https://github.com/ilei131/android_webrtc_h265","last_synced_at":"2025-10-14T21:11:12.628Z","repository":{"id":262609615,"uuid":"447849331","full_name":"ilei131/android_webrtc_h265","owner":"ilei131","description":"android webrtc h265","archived":false,"fork":false,"pushed_at":"2022-01-17T05:05:31.000Z","size":9788,"stargazers_count":15,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T00:12:31.333Z","etag":null,"topics":["android","h265","hevc","webrtc"],"latest_commit_sha":null,"homepage":"https://www.openwit.net/posts/webrtc/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ilei131.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-14T05:08:11.000Z","updated_at":"2025-02-10T09:34:54.000Z","dependencies_parsed_at":"2024-11-13T11:28:08.640Z","dependency_job_id":null,"html_url":"https://github.com/ilei131/android_webrtc_h265","commit_stats":null,"previous_names":["ilei131/android_webrtc_h265"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilei131%2Fandroid_webrtc_h265","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilei131%2Fandroid_webrtc_h265/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilei131%2Fandroid_webrtc_h265/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilei131%2Fandroid_webrtc_h265/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ilei131","download_url":"https://codeload.github.com/ilei131/android_webrtc_h265/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248799956,"owners_count":21163404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","h265","hevc","webrtc"],"created_at":"2025-01-07T06:55:31.522Z","updated_at":"2025-10-14T21:11:07.584Z","avatar_url":"https://github.com/ilei131.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# android_webrtc_h265\n谷歌的webrtc，默认不支持h265，好在网上有开源的实现，但是想要传输层支持h265需要重新编译生成libjingle_peerconnection_so.so。本篇主要记录一下编译过程。\n[项目github地址:https://github.com/open-webrtc-toolkit/owt-client-native](https://github.com/open-webrtc-toolkit/owt-client-native)\n自己通过虚拟机安装Ubuntu18.04并翻墙，无论如何都无法编译成功，无奈，购买了1个月香港云主机，编译成功！\n\n假设当前路径为`/home/zhanggf`\n### 1.下载代码\n`git clone https://github.com/open-webrtc-toolkit/owt-client-native.git`\n下载完成后，将目录重命名为src\n`mv owt-client-native src`\n### 2.下载depot_tools\n`git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git`\n下载完成后，设置PATH\n`export PATH=$PATH:/home/zhanggf/depot_tools`\n### 3.创建.gclient\n`vi .gclient`\n将以下内容复制到文件中并保存：\n```\nsolutions = [\n  {\n     \"managed\": False,\n     \"name\": \"src\",\n     \"url\": \"https://github.com/open-webrtc-toolkit/owt-client-native.git\",\n     \"custom_deps\": {},\n     \"deps_file\": \"DEPS\",\n     \"safesync_url\": \"\",\n  },\n]\ntarget_os = [\"android\"]\n```\n### 4.gclient sync\n进入src目录`cd src`,执行`gclient sync`，后面就是漫长的等待，视网速情况，需要1-n个小时吧。\n### 5.编译\n进入/src/scripts目录,执行`python build_android.py`开始编译。全部编译完成大概1小时左右吧。\n### 6.out\n最终生成的目标文件在src/out路径下，包括libwebrtc.jar和对应版本的libjingle_peerconnection_so.so。替换当前项目中的相关文件，恭喜你，你的webrtc项目已经支持h265硬编码了。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filei131%2Fandroid_webrtc_h265","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filei131%2Fandroid_webrtc_h265","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filei131%2Fandroid_webrtc_h265/lists"}