Bug 258060

Summary: The quality of video encode by VideoEncoder of Webcodecs on mac safari is poor
Product: WebKit Reporter: chillin editor <chillineditor>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Major CC: ahmad.saleem792, eric.carlson, jer.noble, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: Mac (Intel)   
OS: Unspecified   

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?