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

Cannot play local mp4 file with qml video element on Android 8

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.10.1, 5.12.1
    • Multimedia
    • None
    • Android

      An mp4 video encoded on a linux machine from an rtsp source (camera) using this pipeline:

      gst-launch -e <rtsp_url> latency=100 ! queue ! rtph264depay ! h264parse ! mp4mux ! filesink <local_file.mp4>

       

      can't be played locally on Android 8 (tested on Nexus 5x and Huawei Mate 10 lite).

      The behavior can be tested using the qmlvideo example (tested with Qt 5.10.1 and Qt 5.12.1).

       

      On Android 6 and Android 4.4 it works.

       

      Debug messages show these errors:

      D MediaPlayerNative: Action:start, CurrentState:MEDIA_PLAYER_STARTED

      W GrallocMapperPassthrough: buffer descriptor with invalid usage bits 0x2000

      W GrallocMapperPassthrough: buffer descriptor with invalid usage bits 0x2000

      W GrallocMapperPassthrough: buffer descriptor with invalid usage bits 0x2000

      W GrallocMapperPassthrough: buffer descriptor with invalid usage bits 0x2000

      W GrallocMapperPassthrough: buffer descriptor with invalid usage bits 0x2000

      W GrallocMapperPassthrough: buffer descriptor with invalid usage bits 0x2000

      D MediaPlayerNative: Message: MEDIA_ERROR(100), ext1=MEDIA_ERROR_UNKNOWN(1), ext2=0xfffffc10

      E MediaPlayerNative: error (1, -1008)

      D MediaPlayerNative: [notify] : [1204] callback app listenerNotNull=1, send=1

      D MediaPlayerNative: [notify] : [1216] callback application

      D MediaPlayerNative: Message: MEDIA_ERROR(100), ext1=MEDIA_ERROR_UNKNOWN(1), ext2=0xfffffc10

      E MediaPlayerNative: error (1, -1008)

      D MediaPlayerNative: [notify] : [1204] callback app listenerNotNull=1, send=1

      D MediaPlayerNative: [notify] : [1216] callback application

      E MediaPlayer: Error (1,-1008)

      I MediaPlayer: [HSM] stayAwake false uid: 10141, pid: 17583

      I MediaPlayer: [HSM] stayAwake false uid: 10141, pid: 17583

      E MediaPlayer: Error (1,-1008)

      I MediaPlayer: [HSM] stayAwake false uid: 10141, pid: 17583

      D MediaPlayerNative: Message: Unknown MediaEventType(8), ext1=0, ext2=0x0

      D MediaPlayerNative: Action:reset_l, CurrentState:MEDIA_PLAYER_IDLE

       

      The same file is normally played on other platforms (Windows 10) or using other Android players also on Android 8.

       

       

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

            valentyn.doroshchuk Valentyn Doroshchuk
            mralmond Gianluca Bergamo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes