Status: Untriaged
Owner: ----
Labels: Type-Bug Pri-2
Components: libvpx
New issue 1714 by apehr...@
mozilla.com: vp8 encoder integer overflows with high bitrate
https://bugs.chromium.org/p/webm/issues/detail?id=1714I'm a Firefox developer. We use libvpx for encoding in MediaRecorder.
Steps to reproduce:
Prereqs: I had a local build with some WIP patches, and due to issue #1685 it also had libvpx updated to v1.9.0. I'm not sure how this repros on Firefox release channels. The fiddle will ask for 1920x1080, having a screen with a lower resolution or another aspect ratio might affect reproducibility.
1. Open
https://jsfiddle.net/pehrsons/7kgvL48e/ in Firefox
2. Select Video, Screen and Max video bitrate. For max video bitrate enter "100000" for 100Mbps. (this is given to the vp8 encoder as target bitrate)
3. Click Start and approve prompts, selecting the full screen as source.
4. Wait ~30s. Keep fairly static content on screen.
5. Click Stop.
6. Put the video element in fullscreen, it's playing the finished recording.
Expected:
High quality video frames, given the high bitrate.
Actual:
Compression artifacts visible now and then, on key frames.
---
I have a pernosco recording of the above. The problem becomes obvious there. UBSan also highlights it. I'm attaching a screenshot showing the overflow in pernosco, and the output of a UBSan repro of the STR above.
Note in the screenshot that for all key frames but two, `cpi->this_frame_target` becomes negative.
Attachments:
Screenshot_2020-12-18 MediaRecorder inconsistent bitrate, w libvpx 1 9 0 (Pernosco).png 933 KB
--
You received this message because:
1. The project was configured to send all issue notifications to this address
You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings