tree: 9e0dcb07a0d4ad2bdb8fea81dd86aa1e43640aec [path history] [tgz]
  1. audio-decoder.any.js
  2. audio-encoder.any.js
  3. audio-frame-serialization.any.js
  4. four-colors-flip.avif
  5. four-colors-flip.gif
  6. four-colors-full-range-bt2020-pq-444-10bpc.avif
  7. four-colors.avif
  8. four-colors.gif
  9. four-colors.jpg
  10. four-colors.mp4
  11. four-colors.png
  12. four-colors.webp
  13. h264.mp4
  14. image-decoder-image-orientation-none.html
  15. image-decoder-utils.js
  16. image-decoder.any.js
  17. META.yml
  18. pattern.png
  19. README.md
  20. utils.js
  21. video-decoder.any.js
  22. video-encoder.any.js
  23. video-frame-serialization.any.js
  24. video-frame.any.js
  25. videoFrame-canvasImageSource.html
  26. videoFrame-createImageBitmap.any.js
  27. videoFrame-drawImage.any.js
  28. videoFrame-texImage.any.js
  29. vp9.mp4
  30. webgl-test-utils.js
webcodecs/README.md

WebCodecs Test Files

Instructions

To add, update or remove a test file, please update the list below.

Please provide full reference and steps to generate the test file so that any people can regenerate or update the file in the future.

List of Test Files

four-colors.png

Generated using MSPaint like a true professional.

four-colors.avif

Lossless encoding must be used to ensure colors are perfect.

avifenc -l four-colors.png -o four-colors.avif

four-colors.webp

Lossless encoding must be used to ensure colors are perfect.

ffmpeg -i four-colors.png -lossless 1 -y four-colors.webp

four-colors.gif

High quality encoding must be used to ensure colors are perfect.

cp four-colors.png four-colors2.png
gifski -o four-colors.gif four-colors*.png

four-colors-flip.gif

High quality encoding must be used to ensure colors are perfect.

ffmpeg -i four-colors.png -vf "rotate=PI" four-colors2.png
gifski -o four-colors-flip.gif four-colors*.png

four-colors-flip.avif

ffmpeg -i four-colors-flip.gif -vcodec libaom-av1 -crf 16 four-colors-flip.mp4
mp4box -add-image ref:primary:tk=1:samp=1 -ab avis -ab avif -ab miaf -brand avis four-colors-flip.mp4 -out four-colors-flip.avif

four-colors-full-range-bt2020-pq-444-10bpc.avif

avifenc -r f -d 10 -y 444 -s 0 --nclx 9/16/9 four-colors.png four-colors-full-range-bt2020-pq-444-10bpc.avif

four-colors.jpg

Used Sqoosh.app with MozJPEG compression then used exiftool to add an orientation marker.

exiftool -Orientation=1 -n four-colors.jpg

four-colors.mp4

Used a custom tool to convert four-colors.avif into a .mp4 file.