Bug 268147

Summary: scaleResolutionDownBy >= 4 will cause video freeze when using H264 Codec
Product: WebKit Reporter: simu <seimor>
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Major CC: webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: Mac (Intel)   
OS: Unspecified   

Description simu 2024-01-26 01:19:19 PST
Reproduce Step:

1. Open webrtc samples: https://webrtc.github.io/samples/src/content/peerconnection/change-codecs/
2. Open dev tools
3. Click start Button
4. Select Codec: H264
5. Click Call
6. Input code:

```javascript
(() => {
  const senders = pc1.getSenders();
  const sender = senders.find(s => s.track.kind === "video");
  const params = sender.getParameters();
  
  params.encodings[0].scaleResolutionDownBy = 6;
  sender.setParameters(params);
})()

```
in dev-tools' console and tap ENTER

You will see the right video(received side) is freezed!
Comment 1 Radar WebKit Bug Importer 2024-02-02 01:20:13 PST
<rdar://problem/122172715>
Comment 2 youenn fablet 2024-02-02 01:59:42 PST
@simu, is it specific to macOS Intel?

I cannot reproduce in my AS device.
Comment 3 youenn fablet 2024-02-02 02:04:44 PST
The issue might be that WebKit on macOS Intel can go as low was 192x108 but no lower at the moment.
Comment 4 youenn fablet 2024-03-10 14:29:23 PDT

*** This bug has been marked as a duplicate of bug 268098 ***