Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-125613

Investigate lacking video format support on Android 14 with FFmpeg media player

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 6.8
    • Multimedia
    • None
    • Android
    • fe2f8faf5 (dev), d80e21bdc (6.8), 52956b9f8 (6.7), 44768b5b6 (tqtc/lts-6.5)
    • Multimedia wk 23-24

    Description

      Compared to other platforms, such as Windows and Android 9 x64, the media player on Android 14 x86_x64 has very limited format support. This can be seen in [this failed test run|Coin - Qt CI current status]. Important bits of the log is added below.

      The task is to investigate why FFmpeg can not create a codec context for the specific formats that fail, and if possible, fix the issue.

      agent:2024/05/23 12:32:01 build.go:404: 37: ********* Start testing of tst_qmediaplayerformatsupport *********
      agent:2024/05/23 12:32:01 build.go:404: 37: Config: Using QtTest library 6.8.0, Qt 6.8.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by Android (10552028, +pgo, +bolt, +lto, -mlgo, based on r487747d) Clang 17.0.2 (https://android.googlesource.com/toolchain/llvm-project d9f89f4d16663d5012e5c09495f3b30ece3d2362)), android 14.0
      agent:2024/05/23 12:32:01 build.go:404: 37: PASS   : tst_qmediaplayerformatsupport::initTestCase()
      agent:2024/05/23 12:32:01 build.go:404: 37: PASS   : tst_qmediaplayerformatsupport::play_succeeds_withSupportedContainer(:testdata/containers/supported/container.avi)
      agent:2024/05/23 12:32:01 build.go:404: 37: PASS   : tst_qmediaplayerformatsupport::play_succeeds_withSupportedContainer(:testdata/containers/supported/container.wmv)
      agent:2024/05/23 12:32:01 build.go:404: 37: QCRITICAL: tst_qmediaplayerformatsupport::play_succeeds_withSupportedContainer(:testdata/containers/supported/container.mp4) Unexpected failure detected: QVariant(QMediaPlayer::Error, QMediaPlayer::FormatError ) , QVariant(QString, "Cannot create codec,Failed to open FFmpeg codec context Generic error in an external library")
      agent:2024/05/23 12:32:01 build.go:404: 37: FAIL!  : tst_qmediaplayerformatsupport::play_succeeds_withSupportedContainer(:testdata/containers/supported/container.mp4) 'f.errorOccurred.empty()' returned FALSE. ()
      agent:2024/05/23 12:32:01 build.go:404: 37:    Loc: [/home/qt/work/qt/qtmultimedia/tests/auto/integration/qmediaplayerformatsupport/tst_qmediaplayerformatsupport.cpp(64)]
      agent:2024/05/23 12:32:01 build.go:404: 37: QWARN  : tst_qmediaplayerformatsupport::play_succeeds_withSupportedContainer(:testdata/containers/supported/container.mkv) : AVStream duration -9223372036854775808 is invalid. Taking it from the metadata
      agent:2024/05/23 12:32:01 build.go:404: 37: QCRITICAL: tst_qmediaplayerformatsupport::play_succeeds_withSupportedContainer(:testdata/containers/supported/container.mkv) Unexpected failure detected: QVariant(QMediaPlayer::Error, QMediaPlayer::FormatError ) , QVariant(QString, "Cannot create codec,Failed to open FFmpeg codec context Generic error in an external library")
      agent:2024/05/23 12:32:01 build.go:404: 37: FAIL!  : tst_qmediaplayerformatsupport::play_succeeds_withSupportedContainer(:testdata/containers/supported/container.mkv) 'f.errorOccurred.empty()' returned FALSE. ()
      agent:2024/05/23 12:32:01 build.go:404: 37:    Loc: [/home/qt/work/qt/qtmultimedia/tests/auto/integration/qmediaplayerformatsupport/tst_qmediaplayerformatsupport.cpp(64)]
      agent:2024/05/23 12:32:01 build.go:404: 37: PASS   : tst_qmediaplayerformatsupport::play_succeeds_withSupportedContainer(:testdata/containers/supported/container.mpeg)
      agent:2024/05/23 12:32:01 build.go:404: 37: QCRITICAL: tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_yuv422p.mp4) Unexpected failure detected: QVariant(QMediaPlayer::Error, QMediaPlayer::FormatError ) , QVariant(QString, "Cannot create codec,Failed to open FFmpeg codec context Generic error in an external library")
      agent:2024/05/23 12:32:01 build.go:404: 37: FAIL!  : tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_yuv422p.mp4) 'f.errorOccurred.empty()' returned FALSE. ()
      agent:2024/05/23 12:32:01 build.go:404: 37:    Loc: [/home/qt/work/qt/qtmultimedia/tests/auto/integration/qmediaplayerformatsupport/tst_qmediaplayerformatsupport.cpp(87)]
      agent:2024/05/23 12:32:01 build.go:404: 37: PASS   : tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_yuv420p.mp4)
      agent:2024/05/23 12:32:01 build.go:404: 37: QCRITICAL: tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_yuv444p.mp4) Unexpected failure detected: QVariant(QMediaPlayer::Error, QMediaPlayer::FormatError ) , QVariant(QString, "Cannot create codec,Failed to open FFmpeg codec context Generic error in an external library")
      agent:2024/05/23 12:32:01 build.go:404: 37: FAIL!  : tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_yuv444p.mp4) 'f.errorOccurred.empty()' returned FALSE. ()
      agent:2024/05/23 12:32:01 build.go:404: 37:    Loc: [/home/qt/work/qt/qtmultimedia/tests/auto/integration/qmediaplayerformatsupport/tst_qmediaplayerformatsupport.cpp(87)]
      agent:2024/05/23 12:32:01 build.go:404: 37: QCRITICAL: tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_yuv422p10le.mp4) Unexpected failure detected: QVariant(QMediaPlayer::Error, QMediaPlayer::FormatError ) , QVariant(QString, "Cannot create codec,Failed to open FFmpeg codec context Generic error in an external library")
      agent:2024/05/23 12:32:01 build.go:404: 37: FAIL!  : tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_yuv422p10le.mp4) 'f.errorOccurred.empty()' returned FALSE. ()
      agent:2024/05/23 12:32:01 build.go:404: 37:    Loc: [/home/qt/work/qt/qtmultimedia/tests/auto/integration/qmediaplayerformatsupport/tst_qmediaplayerformatsupport.cpp(87)]
      agent:2024/05/23 12:32:01 build.go:404: 37: QCRITICAL: tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_yuv420p10le.mp4) Unexpected failure detected: QVariant(QMediaPlayer::Error, QMediaPlayer::FormatError ) , QVariant(QString, "Cannot create codec,Failed to open FFmpeg codec context Generic error in an external library")
      agent:2024/05/23 12:32:01 build.go:404: 37: FAIL!  : tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_yuv420p10le.mp4) 'f.errorOccurred.empty()' returned FALSE. ()
      agent:2024/05/23 12:32:01 build.go:404: 37:    Loc: [/home/qt/work/qt/qtmultimedia/tests/auto/integration/qmediaplayerformatsupport/tst_qmediaplayerformatsupport.cpp(87)]
      agent:2024/05/23 12:32:01 build.go:404: 37: QCRITICAL: tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_yuvj444p.mp4) Unexpected failure detected: QVariant(QMediaPlayer::Error, QMediaPlayer::FormatError ) , QVariant(QString, "Cannot create codec,Failed to open FFmpeg codec context Generic error in an external library")
      agent:2024/05/23 12:32:01 build.go:404: 37: FAIL!  : tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_yuvj444p.mp4) 'f.errorOccurred.empty()' returned FALSE. ()
      agent:2024/05/23 12:32:01 build.go:404: 37:    Loc: [/home/qt/work/qt/qtmultimedia/tests/auto/integration/qmediaplayerformatsupport/tst_qmediaplayerformatsupport.cpp(87)]
      agent:2024/05/23 12:32:01 build.go:404: 37: QCRITICAL: tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_yuv444p10.mp4) Unexpected failure detected: QVariant(QMediaPlayer::Error, QMediaPlayer::FormatError ) , QVariant(QString, "Cannot create codec,Failed to open FFmpeg codec context Generic error in an external library")
      agent:2024/05/23 12:32:01 build.go:404: 37: FAIL!  : tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_yuv444p10.mp4) 'f.errorOccurred.empty()' returned FALSE. ()
      agent:2024/05/23 12:32:01 build.go:404: 37:    Loc: [/home/qt/work/qt/qtmultimedia/tests/auto/integration/qmediaplayerformatsupport/tst_qmediaplayerformatsupport.cpp(87)]
      agent:2024/05/23 12:32:01 build.go:404: 37: QCRITICAL: tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_yuv422p10.mp4) Unexpected failure detected: QVariant(QMediaPlayer::Error, QMediaPlayer::FormatError ) , QVariant(QString, "Cannot create codec,Failed to open FFmpeg codec context Generic error in an external library")
      agent:2024/05/23 12:32:01 build.go:404: 37: FAIL!  : tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_yuv422p10.mp4) 'f.errorOccurred.empty()' returned FALSE. ()
      agent:2024/05/23 12:32:01 build.go:404: 37:    Loc: [/home/qt/work/qt/qtmultimedia/tests/auto/integration/qmediaplayerformatsupport/tst_qmediaplayerformatsupport.cpp(87)]
      agent:2024/05/23 12:32:01 build.go:404: 37: QCRITICAL: tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_yuv420p10.mp4) Unexpected failure detected: QVariant(QMediaPlayer::Error, QMediaPlayer::FormatError ) , QVariant(QString, "Cannot create codec,Failed to open FFmpeg codec context Generic error in an external library")
      agent:2024/05/23 12:32:01 build.go:404: 37: FAIL!  : tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_yuv420p10.mp4) 'f.errorOccurred.empty()' returned FALSE. ()
      agent:2024/05/23 12:32:01 build.go:404: 37:    Loc: [/home/qt/work/qt/qtmultimedia/tests/auto/integration/qmediaplayerformatsupport/tst_qmediaplayerformatsupport.cpp(87)]
      agent:2024/05/23 12:32:01 build.go:404: 37: QCRITICAL: tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_bgr0.mp4) Unexpected failure detected: QVariant(QMediaPlayer::Error, QMediaPlayer::FormatError ) , QVariant(QString, "Cannot create codec,Failed to open FFmpeg codec context Generic error in an external library")
      agent:2024/05/23 12:32:01 build.go:404: 37: FAIL!  : tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_bgr0.mp4) 'f.errorOccurred.empty()' returned FALSE. ()
      agent:2024/05/23 12:32:01 build.go:404: 37:    Loc: [/home/qt/work/qt/qtmultimedia/tests/auto/integration/qmediaplayerformatsupport/tst_qmediaplayerformatsupport.cpp(87)]
      agent:2024/05/23 12:32:01 build.go:404: 37: QCRITICAL: tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_yuvj422p.mp4) Unexpected failure detected: QVariant(QMediaPlayer::Error, QMediaPlayer::FormatError ) , QVariant(QString, "Cannot create codec,Failed to open FFmpeg codec context Generic error in an external library")
      agent:2024/05/23 12:32:01 build.go:404: 37: FAIL!  : tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_yuvj422p.mp4) 'f.errorOccurred.empty()' returned FALSE. ()
      agent:2024/05/23 12:32:01 build.go:404: 37:    Loc: [/home/qt/work/qt/qtmultimedia/tests/auto/integration/qmediaplayerformatsupport/tst_qmediaplayerformatsupport.cpp(87)]
      agent:2024/05/23 12:32:01 build.go:404: 37: PASS   : tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_yuvj420p.mp4)
      agent:2024/05/23 12:32:01 build.go:404: 37: QCRITICAL: tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_gray10le.mp4) Unexpected failure detected: QVariant(QMediaPlayer::Error, QMediaPlayer::FormatError ) , QVariant(QString, "Cannot create codec,Failed to open FFmpeg codec context Generic error in an external library")
      agent:2024/05/23 12:32:01 build.go:404: 37: FAIL!  : tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_gray10le.mp4) 'f.errorOccurred.empty()' returned FALSE. ()
      agent:2024/05/23 12:32:01 build.go:404: 37:    Loc: [/home/qt/work/qt/qtmultimedia/tests/auto/integration/qmediaplayerformatsupport/tst_qmediaplayerformatsupport.cpp(87)]
      agent:2024/05/23 12:32:01 build.go:404: 37: PASS   : tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_gray.mp4)
      agent:2024/05/23 12:32:01 build.go:404: 37: QCRITICAL: tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_rgb24.mp4) Unexpected failure detected: QVariant(QMediaPlayer::Error, QMediaPlayer::FormatError ) , QVariant(QString, "Cannot create codec,Failed to open FFmpeg codec context Generic error in an external library")
      agent:2024/05/23 12:32:01 build.go:404: 37: FAIL!  : tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_rgb24.mp4) 'f.errorOccurred.empty()' returned FALSE. ()
      agent:2024/05/23 12:32:01 build.go:404: 37:    Loc: [/home/qt/work/qt/qtmultimedia/tests/auto/integration/qmediaplayerformatsupport/tst_qmediaplayerformatsupport.cpp(87)]
      agent:2024/05/23 12:32:01 build.go:404: 37: QCRITICAL: tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_bgr24.mp4) Unexpected failure detected: QVariant(QMediaPlayer::Error, QMediaPlayer::FormatError ) , QVariant(QString, "Cannot create codec,Failed to open FFmpeg codec context Generic error in an external library")
      agent:2024/05/23 12:32:01 build.go:404: 37: FAIL!  : tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_bgr24.mp4) 'f.errorOccurred.empty()' returned FALSE. ()
      agent:2024/05/23 12:32:01 build.go:404: 37:    Loc: [/home/qt/work/qt/qtmultimedia/tests/auto/integration/qmediaplayerformatsupport/tst_qmediaplayerformatsupport.cpp(87)]
      agent:2024/05/23 12:32:01 build.go:404: 37: PASS   : tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_nv21.mp4)
      agent:2024/05/23 12:32:01 build.go:404: 37: PASS   : tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_nv12.mp4)
      agent:2024/05/23 12:32:01 build.go:404: 37: QCRITICAL: tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_nv16.mp4) Unexpected failure detected: QVariant(QMediaPlayer::Error, QMediaPlayer::FormatError ) , QVariant(QString, "Cannot create codec,Failed to open FFmpeg codec context Generic error in an external library")
      agent:2024/05/23 12:32:01 build.go:404: 37: FAIL!  : tst_qmediaplayerformatsupport::play_succeeds_withSupportedPixelFormats(:testdata/pixel_formats/supported/h264_nv16.mp4) 'f.errorOccurred.empty()' returned FALSE. ()
      agent:2024/05/23 12:32:01 build.go:404: 37:    Loc: [/home/qt/work/qt/qtmultimedia/tests/auto/integration/qmediaplayerformatsupport/tst_qmediaplayerformatsupport.cpp(87)]
      agent:2024/05/23 12:32:01 build.go:404: 37: QWARN  : tst_qmediaplayerformatsupport::play_fails_withUnsupportedContainer(:testdata/containers/unsupported/container.webp) : AVStream duration -9223372036854775808 is invalid. Taking it from the metadata
      agent:2024/05/23 12:32:01 build.go:404: 37: PASS   : tst_qmediaplayerformatsupport::play_fails_withUnsupportedContainer(:testdata/containers/unsupported/container.webp)
      agent:2024/05/23 12:32:01 build.go:404: 37: PASS   : tst_qmediaplayerformatsupport::cleanupTestCase()
      agent:2024/05/23 12:32:01 build.go:404: 37: Totals: 11 passed, 16 failed, 0 skipped, 0 blacklisted, 1620ms
      agent:2024/05/23 12:32:01 build.go:404: 37: ********* Finished testing of tst_qmediaplayerformatsupport ********* 

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mikko.hallamaa Mikko Hallamaa
            johanseg Jøger Hansegård
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes