Bug 258060 - The quality of video encode by VideoEncoder of Webcodecs on mac safari is poor
Summary: The quality of video encode by VideoEncoder of Webcodecs on mac safari is poor
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari 16
Hardware: Mac (Intel) Unspecified
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-06-13 20:57 PDT by chillin editor
Modified: 2023-10-12 16:19 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chillin editor 2023-06-13 20:57:55 PDT
I just use VideoEncoder of Webcodecs API provided by Safari 16.4 to encode video, The quality of the encoded video is poor on Mac Safari but it is normal on other platforms such as Mac Chrome, iOS Chrome, iOS Safari, and Android Chrome.

Video samples:
https://chillin.online/images/webcodec-sample-mac-safari.mp4
https://chillin.online/images/webcodec-sample-mac-chrome.mp4

More Details:
The quality of video seems to decay over time, I find this bug on mac based on Intel chip, The VideoEncoder config is 
const config = {
  codec: 'avc1.640034',
  width: 1280,
  height: 720,
  framerate: 30,
  hardwareAcceleration: 'prefer-software' as const,
  avc: { format: 'avc' as const }
};

Looking forward to your feedback on this bug, my email is chillineditor@gmail.com.
Comment 1 Radar WebKit Bug Importer 2023-06-15 23:48:00 PDT
<rdar://problem/110884113>
Comment 2 Ahmad Saleem 2023-10-12 16:19:20 PDT
Can you share reproducible test case so we can try to reproduce this issue in newer versions? Please can also share if this is fixed in Safari Technology Preview?