On Sat, 13 Apr 2024 01:36:01 GMT, Alexander Matveev <almat...@openjdk.org> wrote:
> - When video fails to render AVFoundation outputs frame in > `kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange` format which is not > supported. We do force format change after that to > `kCVPixelFormatType_422YpCbCr8`, but AVFoundation does not provides any video > frames after format change. Not sure why it happens. > - When video worked for stream in this issue, then AVFoundation was using > `kCVPixelFormatType_422YpCbCr8` for some reason instead of > `kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange`. > - I tested format fallback from > `kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange` to > `kCVPixelFormatType_422YpCbCr8` manually and many streams I tried works fine, > except one reported in this bug. > - If AVFoundation is initialized with list of formats JavaFX Media rendering > supports, then this issue is no longer reproducible. > - Fixed by providing list of supported formats to AVFoundation. > - Removed unused variable `response`. > - Tested with all streams I have and no issues found. This pull request has now been integrated. Changeset: eb6d55f7 Author: Alexander Matveev <almat...@openjdk.org> URL: https://git.openjdk.org/jfx/commit/eb6d55f7f067469e89402da2bfa46e1ecf11ea02 Stats: 19 lines in 1 file changed: 16 ins; 1 del; 2 mod 8328603: HLS video stream fails to render consistently Reviewed-by: kcr, arapte ------------- PR: https://git.openjdk.org/jfx/pull/1440