Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add ability to generate PSNR statistics for an encoded video frame

オープン
#937 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@sprangerik がすでに取り組んでいます。

2026年6月1日 から。

  • #938 @sprangerik による — オープン

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か

調査の方向性

まず、VideoEncoderEncodeOptions と EncodedVideoChunkMetadata の WebCodecs 定義を確認し、次に、期待されるセマンティクスについてリンクされている webrtc-stats の PSNR フィールドを確認します。API で PSNR の生成を要求でき、利用可能な場合は Y、U、V の測定値を個別に報告し、エンコーダーがそれらを提供しない場合も best-effort の動作を維持できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Many video encoder implementations include efficient ways to calculate the PSNR of an encoded frame. This can be highly useful for analyzing the generated video quality. This is currently being added to webrtc-stats but is desirable also for WebCodecs.

Some examples of software encoders supporting this functionality include libvpx (VP8/VP9), libaom (AV1) and OpenH264. As for hardware encoders I'm aware of at least D3D12 and VideoToolbox exposing this, assuming the underlying implementation supports it.

There is however no guarantee that it will be available, so it should be generated on a best-effort basis.

I suggest adding a boolean generatePsnr to the VideoEncoderEncodeOptions dictionary (default to false) to request PSNR data from the encoder. If the encoder generated PSNR data, then put it in a new dictionary YuvVideoPsnr (containing separate measurements for the Y, U and V channels) inside the EncodedVideoChunkMetadata dictionary.

主要言語
HTML
スター
1.3k
フォーク
192
平均マージ
3時間 36分
マージ済み PR(30日)
7

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

w3c/webcodecs のほかの issue

w3c/webcodecs の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。