public:it:video

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
public:it:video [2024/04/23 09:46] – [H.264] oakfirepublic:it:video [2025/04/23 10:52] (当前版本) oakfire
行 29: 行 29:
     可参考 [这篇专利文](https://patents.google.com/patent/CN103905927A/zh)     可参考 [这篇专利文](https://patents.google.com/patent/CN103905927A/zh)
 </markdown> </markdown>
 +
 ===== Tools ===== ===== Tools =====
   * 测试视频下载站:   * 测试视频下载站:
行 34: 行 35:
     * [[https://www.libde265.org/downloads-videos/]]     * [[https://www.libde265.org/downloads-videos/]]
   * [[https://www.videohelp.com/software/Codec-Tweak-Tool|Codec-Tweak-Tool]]   * [[https://www.videohelp.com/software/Codec-Tweak-Tool|Codec-Tweak-Tool]]
 +  * chrome 视频调试:''chrome:%%//%%media-internals/''
 ===== 学习 ===== ===== 学习 =====
   * 一个非常好的科普文章,值得翻译:https://github.com/leandromoreira/digital_video_introduction   * 一个非常好的科普文章,值得翻译:https://github.com/leandromoreira/digital_video_introduction
行 42: 行 44:
  
 ===== Container ===== ===== Container =====
 +==== MP4 ====
 +  * [[.:mp4]]
 ==== FLV ==== ==== FLV ====
   * [[.:flv]]   * [[.:flv]]
行 55: 行 59:
 ==== RTSP ==== ==== RTSP ====
   * [[.:rtsp]]   * [[.:rtsp]]
-  * Real Time Streaming Protocol(RTSP):[[http://tools.ietf.org/html/rfc2326|RFC2326]] 
   * rtsp -> hls(m3u8): https://medium.com/androvideo/convert-rtsp-to-hls-using-ffmpeg-2fe2cdf3a0de   * rtsp -> hls(m3u8): https://medium.com/androvideo/convert-rtsp-to-hls-using-ffmpeg-2fe2cdf3a0de
 ==== ONVIF ==== ==== ONVIF ====
   * Official site: [[http://www.onvif.org/|onvif.org]]   * Official site: [[http://www.onvif.org/|onvif.org]]
 ===== Codec ===== ===== Codec =====
-==== H.264 ====+==== H.264/AVC ====
   * [[https://www.itu.int/rec/T-REC-H.264]]   * [[https://www.itu.int/rec/T-REC-H.264]]
     * nal_unit_type 表格: 文档 7.4.1  Table 7-1     * nal_unit_type 表格: 文档 7.4.1  Table 7-1
 +    * SPS PPS 的文档位置: H264 文档(T-REC-H.264-202108-I!!PDF-E.pdf)的 7.3.2.1.1 章节
   * [[https://www.cnblogs.com/TaigaCon/p/5215448.html|h.264语法结构分析]] 这篇讲得不错   * [[https://www.cnblogs.com/TaigaCon/p/5215448.html|h.264语法结构分析]] 这篇讲得不错
   * [[https://blog.csdn.net/amazing_yangle/article/details/49029687|H264 两种format]]   * [[https://blog.csdn.net/amazing_yangle/article/details/49029687|H264 两种format]]
行 88: 行 92:
  
 </WRAP> </WRAP>
 +  * SPS PPS 解析参考:https://blog.51cto.com/u_12204415/3804504
 +    * H264 文档(T-REC-H.264-202108-I!!PDF-E.pdf)的 7.3.2.1.1 章节
 +    * 哥伦布编码 ue se 之类的,代码实现参考 [[https://github.com/latelee/H264BSAnalyzer/blob/72b155b88e5b4e4df65379f47c287bccb50075da/H264BSAnalyzer/bs.h|bs.h]]
 +==== H.265/HEVC ====
 +  * H265 的 nalu type : https://blog.csdn.net/u011003120/article/details/83411445
 +  - ''type = (code & 0x7E) >> 1''  
 +  - ''VPS=32 SPS=33 PPS=34 IDR=19 P=1 B=0''<code bash>
 + ① 00 00 00 01 40 01  ---> (0x40 & 0x7E)>>1 = 32 ---> VPS
 + ② 00 00 00 01 42 01  ---> (0x42 & 0x7E)>>1 = 33 ---> SPS
 + ③ 00 00 00 01 44 01  ---> (0x44 & 0x7E)>>1 = 34 ---> PPS
 + ④ 00 00 00 01 26 01  ---> (0x26 & 0x7E)>>1 = 19 ---> IDR
 +</code>
 +
 +=== 浏览器硬解 HEVC 设置 ===
 +
 +  * 苹果电脑目前 Safari 浏览器都支持 HEVC 硬解;以下针对 Windows PC.
 +
 +  * 首先确保PC拥有可以解码HEVC的显卡,具体可查看
 +    * [[https://bluesky-soft.com/en/dxvac/deviceInfo/decoder/amd.html|AMD GPU Decoder Device Information]]
 +    * [[https://bluesky-soft.com/en/dxvac/deviceInfo/decoder/nvidia.html|NVIDIA GPU Decoder Device Information]]
 +    * [[https://bluesky-soft.com/en/dxvac/deviceInfo/decoder/intel.html|Intel GPU Decoder Device Information]]
 +  * 最好安装适配显卡的最新版本驱动
 +  * 安装支持 HEVC 解码的浏览器,具体版本范围见 https://caniuse.com/?search=hevc ,即 chrome 版本在107及以上, edge 版本在 79 以上
 +  * 如果是笔记本电脑等有双显卡混合支持的,要注意设置浏览器使用哪张显卡,设置方法: win+i 打开设置 - 系统 - 屏幕 - 显示卡 - 添加应用-浏览 - 选择浏览器运行exe - 选项选择节能或高性能
 +    * 注:edge 浏览器也需要新添加选择路径,默认列表的edge不是桌面应用。
 +  * edge 浏览器在  windows 上需要安装 HEVC 视屏扩展插件,windows商店里付费安装, 或[[https://free-codecs.com/.hevc_video_extension_download.htm|免费下载]]安装
 +
 +  * chrome 浏览器: ''chrome:%%//%%gpu'' 查看是否有 hevc
 +  * edge 浏览器:''%%edge://gpu%%'',  查看是否有 hevc
 +    * 如果要在B站上硬解HEVC,还需要在edge 浏览器安装User-Agent Switcher and Manager 插件,把UAC 修改为 Safari .  B站视频右下角齿轮菜单-更多播放设置-选择HEVC; 右键视频信息里有 ''hev'' 字样。
 +
 +
 ==== WebM ==== ==== WebM ====
   * VP8/VP9   * VP8/VP9
行 110: 行 146:
   * [[public:it:ffmpeg]]   * [[public:it:ffmpeg]]
  
 +===== 工业相机 ===== 
 +  * [[public:it:industrial_camera]]
  
  • public/it/video.1713836778.txt.gz
  • 最后更改: 2024/04/23 09:46
  • oakfire